Sunday, March 10, 2019

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

from django.apps import AppConfig

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


On Sat, Mar 9, 2019 at 6:35 PM maior marso <maiormarso42@gmail.com> wrote:
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

--
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/CAF%3D9sHSaUdsGwodZy1roeGBKfv4Sf0Gn3%2B-BxpaqmKSkRwrEcA%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/CANPvx49UvCMr%3D%3D6FrV_P-Z%2B85bL4FQSp3RiojNJ3og%2BdkvXbUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment