python - gunicorn running django on virtual env -
i'm next tutorial http://www.marinamele.com/2013/12/how-to-set-django-app-on-heroku-part-i.html , can't pass section foreman -> guicorn configuration. django app in myproject directory.
when i'm trying run command virtualenv, console freeze, django app works in browser - foreman can't work properly
(myenv) ... gunicorn myproject.wsgi but when run:
(myenv) ... gunicorn myproject:wsgi i got failed find application: 'myproject'.
my requirements.txt:
django==1.6.5 argparse==1.2.1 gunicorn==19.0.0 wsgiref==0.1.2
this might of help; https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/gunicorn/
especially below 2 lines
this requires project on python path; simplest way ensure run command same directory manage.py file
python django heroku virtualenv gunicorn
No comments:
Post a Comment