Hello Antony, This is the link to the Poll App: https://github.com/alinecrsouza/django-polls-app
The changes I made on the imports (change to polls.models instead of .models), I made directly on my virtualenv, I didn't change the polls app code. I was afraid of losing some of my previous work reinstalling the polls app. Em sexta-feira, 21 de outubro de 2016 03:40:21 UTC-2, Antonis Christofides escreveu: > > Hello, > > Link to the repo: https://github.com/alinecrsouza/django-blog-app > > > that repo only contains the blog app. Could you show us the polls app? > > Regards, > > Antonis Christofideshttp://djangodeployment.com > > On 2016-10-20 22:49, Aline C. R. Souza wrote: > > Hello everybody, > > I am catching an error on trying to deploy my app on heroku. This is the > traceback: > > File "/app/.heroku/python/lib/python3.5/site-packages/polls/admin.py", > line 3, in <module> > 2016-10-20T18:42:46.734824+00:00 app[web.1]: File > "/app/.heroku/python/lib/python3.5/importlib/__init__.py", line 126, in > import_module > 2016-10-20T18:42:46.734830+00:00 app[web.1]: ImportError: No module named > 'models' > 2016-10-20T18:42:46.735201+00:00 app[web.1]: [2016-10-20 18:42:46 +0000] > [7] [INFO] Worker exiting (pid: 7) > 2016-10-20T18:42:46.734826+00:00 app[web.1]: from models import Poll, > Choice, Vote > 2016-10-20T18:42:46.736625+00:00 app[web.1]: [2016-10-20 18:42:46 +0000] > [8] [ERROR] Exception in worker process > > The app runs normally on localhost. > > That is what I tried to do: I went to my virtualenv directory at > site-packages/polls/ and changed all the imports to polls.models instead of > .models. Then, I cleaned the cache of the polls app and the cache of the > blog app (blog app uses polls app). Built my app again and ran it locally. > The app looks fine. So, I tried to push to heroku and run the app, but the > same error occurs. > > Any thoughts? > > Link to the repo: https://github.com/alinecrsouza/django-blog-app > -- > 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 [email protected] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > 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/8704854e-48ab-460e-8ff1-cedc427cb037%40googlegroups.com > > <https://groups.google.com/d/msgid/django-users/8704854e-48ab-460e-8ff1-cedc427cb037%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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 [email protected]. To post to this group, send email to [email protected]. 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/2feb2c1a-f622-4bef-9756-94d10dc2a8e0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

