Wednesday, January 31, 2018

Re: wsgi error

Hi, thanks for the response. I was able to solved it. Turns out that my should be in the same directory with manage.py.

On Tue, Jan 30, 2018 at 2:01 PM, Matemática A3K <matematica.a3k@gmail.com> wrote:


On Sat, Jan 27, 2018 at 12:05 AM, tango ward <tangoward15@gmail.com> wrote:
Hi Team,

Not sure if this issue covered here but I am getting an error uploading my pet project in Heroku.

ModuleNotFoundError: No module named 'animals.wsgi'
2018-01-27T02:59:26.637953+00:00 app[web.1]: [2018-01-27 02:59:26 +0000] [8] [INFO] Worker exiting (pid: 8)
2018-01-27T02:59:26.669632+00:00 app[web.1]: [2018-01-27 02:59:26 +0000] [4] [INFO] Shutting down: Master
2018-01-27T02:59:26.669770+00:00 app[web.1]: [2018-01-27 02:59:26 +0000] [4] [INFO] Reason: Worker failed to boot.


my Procfile in my root folder contains this:

web: gunicorn animals.wsgi:application --log-file - --log-level debug

where animals is the name of my project, where my wsgi.py file is residing.

I tried searching this in StackOverflow but most of the answers are saying that it must be "web: gunicorn PROJECT_NAME.wsgi:application --log-file - --log-level debug" which I already did in my Procfile.


Any suggestions?


This is more a Heroku question, you should seek help in their docs, forums / communication channels.

AFAIK, a Procfile with "web: gunicorn animals.wsgi" should be enough and work.

HTH!
 


Regards,
Jarvis

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA6wQLKi4vjKpVByRykvkXoPkpPUBprVq2pvmn-OabzSkAFoyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BFDnhLr9p%3DHnCj-L0u3MXU3VGbwoLE3wNH2uCgZX7c2wqsD-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA6wQLKOd6O1SqzpsZh-RgE%2Buvgy1hHUW2D%2BXJNFdhAXN6xMBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment