Monday, February 29, 2016

Re: Error running Django tutorial

Well that's strange... The problem appears to be that your polls.urls file is not getting included in your project's URLConf (since the error message in your first post says that the only URL tried was admin/ ). I'm not sure if adding the app to INSTALLED_APPS is necessary for an app's URLConf to be able to be included, but it's worth a try. In FirstApp/settings.py add 'polls' to the list of INSTALLED_APPS so that it looks something like this:

INSTALLED_APPS = [
   
'django.contrib.admin',
   
'django.contrib.auth',
   
'django.contrib.contenttypes',
   
'django.contrib.sessions',
   
'django.contrib.messages',
   
'django.contrib.staticfiles',
   
'polls.apps.PollsConfig',
]



Otherwise it does seem like it could be a file refresh problem.


On Monday, February 29, 2016 at 4:03:42 PM UTC+1, Mike Kipling wrote:
Jorr,

No, I did not modify the settings.py file, because the tutorial specifically states: 

Note

Ignore the warning about unapplied database migrations for now; we'll deal with the database shortly.


Here is a link to the tutorial: https://docs.djangoproject.com/en/1.9/intro/tutorial01/





--
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/d00ca4a7-856e-4045-bc99-7b03c037b46f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment