my first post: makemigrations polls App 'polls' could not be found. Is it in INSTALLED_APPS?

24 views
Skip to first unread message

maior marso

unread,
Mar 9, 2019, 8:05:49 AM3/9/19
to django...@googlegroups.com
https://docs.djangoproject.com/en/2.1/intro/tutorial02/
Activating Models
After editing polls/.models.py, and updating mysite/settings.py/installed_apps
 With ‘polls.apps.PollsConfig’, and changing the time_zone,
Ran the python manage.py makemigrations polls
Results: " App 'polls' could not be found. Is it in INSTALLED_APPS? "
And there was no file in the polls/migrations/* __init__.py

Varun Sagar

unread,
Mar 10, 2019, 5:22:05 AM3/10/19
to django...@googlegroups.com
from django.apps import AppConfig

#Add this in your'e apps.py if you haven't
class PollsConfig(AppConfig):
name = 'polls'


--
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...@googlegroups.com.
To post to this group, send email to django...@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/CAF%3D9sHSaUdsGwodZy1roeGBKfv4Sf0Gn3%2B-BxpaqmKSkRwrEcA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages