Re: tutorial site refers to a module which does not exist

2017-11-04 Thread Kyle Foley
I called a consultant and he told me to write the following code INSTALLED_APPS = ( 'polls', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', and that

Re: tutorial site refers to a module which does not exist

2017-11-04 Thread Kyle Foley
ok, i redit it from scratch and when i wrote python manage.py startapp polls I was supposed to get polls/ __init__.py admin.py apps.py migrations/ __init__.py models.py tests.py views.py but instead the apps.py did not create On Saturday, November 4,

Re: tutorial site refers to a module which does not exist

2017-11-04 Thread knbk
Hi, What version of Django are you using? Starting in 1.9, the startapp command definitely creates an apps.py with a PollsConfig class, so you're likely using an older version of Django. You can either upgrade Django to 1.11 or use the tutorial for whichever version you have installed.

Re: tutorial site refers to a module which does not exist

2017-11-04 Thread Antonis Christofides
The tutorial does not ask you to put anything in that file because the command "python manage.py startapp polls" automatically puts in that file what is needed. If your apps.py file does not contain anything, the most likely explanation is that you accidentally deleted its contents while you were

Re: tutorial site refers to a module which does not exist

2017-11-04 Thread Kyle Foley
But if you look at the previous page where the apps.py is created https://docs.djangoproject.com/en/1.11/intro/tutorial01/ you'll see that in no case do they ask you to put anything in the apps.py It's blank, there's no pollsconfig in that file. On Saturday, November 4, 2017 at 3:01:15 PM

Re: tutorial site refers to a module which does not exist

2017-11-04 Thread Antonis Christofides
Hello, This is the second part of the tutorial. In the first part, at some point you were told to execute "python manage.py startapp polls". This should have created an appropriate apps.py file. Regards, Antonis Antonis Christofides http://djangodeployment.com On 2017-11-04 23:09, Kyle Foley

tutorial site refers to a module which does not exist

2017-11-04 Thread Kyle Foley
I'm trying to teach myself Django on this site: https://docs.djangoproject.com/en/1.11/intro/tutorial02/ If you look at this sentence: To include the app in our project, we need to add a reference to its configuration class in the INSTALLED_APPS