The framework is uploaded to python package index to make it simple to install as library. It is recommended that you use virtualenv, but it is not required.
First create a virtualenv and activate it:
virtualenv --no-site-packages testenv source testenv/bin/activateNow install cosmos inside it:
pip install cosmosA console script named
cosmosadmin
has now been created for administration tasks. Run new-project
command from console from any directory to create new project:
cosmosadmin new-project
The app folder is the root of the webserver in the create project by default. Index page is mapped to serve templates/index.html with current_user passed to it. The /service/*
endpoint is mapped to the service handler. You may look into endpoints.py
for other endpoints.
After creating the project change the values in the settings.py
file (or create a new file named local_settings.py nad add it to your .gitignore file- so this settings does not end up in the source repository) for the database and create admin user:
python cosmosmain.py new-adminNow start the project:
python cosmosmain.py start-serviceAnd browse to http://localhost:8080/ to see the start page.
This information is quite useful, I truly enjoyed. Thanks for this blog.
ReplyDeleteAppium Training in Chennai
Mobile Appium course in Chennai
Appium Training in T Nagar
JMeter Training in Chennai
learn JMeter
core java training in chennai
C C++ Training in Chennai
javascript training in chennai
In this blog i noticed new important points, this points are valuable and it is useful for me...
ReplyDeleteDOT NET Training in Bangalore
Dot NET Training in Marathahalli
DOT NET Training Institute in Marathahalli
DOT NET Training Institutes in Bangalore
DevOps Training in Bangalore
PHP Training in Bangalore
.Net training in chennai
dot net course in coimbatore
.net training in coimbatore
DOT NET Course in Chennai
Your work is very good and I appreciate you and hopping for some more informative posts. Thank you for sharing great information to us. PLease visit tiktok downloader
ReplyDelete