Django restframework + mongodb

Set up a new project

>django-admin.py startproject tutorial

>cd tutorial

#create a virtual env to isulate our package dependencies locally

>mkvirtualenv myenv

>source/ ‘env/bin/activate’   # if you look mkvirtualenv probably this step

>pip install django 

#check you are inside the virtualenv  (myenv)

pip install django

pip instll django-framework

#create a new app

python manage.py startapp quickstart

pip install django-nonrel

pip instal django-toolbox

pip install mongodb-engine

pip install django_mongodb_engine

para correr el proceso en servidor : sin que se caiga al arrancar 

 nohup python run_service.py runserver ipserver:puerto &

Leave a Reply

Your email address will not be published.