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 solved the issue.  but i'm a little confused as to why the apps.py 
module is not being created.


On Saturday, November 4, 2017 at 3:01:15 PM UTC-7, Kyle Foley wrote:
>
> 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 
> 
>  setting. 
> The PollsConfig class is in the polls/apps.py file, so its dotted path is 
> 'polls.apps.PollsConfig'.
>
> They haven't told me what the pollsconfig class consists in, nor have they 
> told me to build the apps.py module.  When I run the command line
>
> python manage.py makemigrations polls
>
> ModuleNotFoundError: No module named 'polls.apps.PollsConfig'; 
> 'polls.apps' is not a package
>
>
> So what am I supposed to put in that module?
>
>
>
>

-- 
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+unsubscr...@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/f7e2178b-988c-4e59-b1b2-622ebd151dea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, 2017 at 3:31:58 PM UTC-7, knbk wrote:
>
> 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.
>
> Marten
>
> On Saturday, November 4, 2017 at 11:01:15 PM UTC+1, Kyle Foley wrote:
>>
>> 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 
>> 
>>  setting. 
>> The PollsConfig class is in the polls/apps.py file, so its dotted path 
>> is 'polls.apps.PollsConfig'.
>>
>> They haven't told me what the pollsconfig class consists in, nor have 
>> they told me to build the apps.py module.  When I run the command line
>>
>> python manage.py makemigrations polls
>>
>> ModuleNotFoundError: No module named 'polls.apps.PollsConfig'; 
>> 'polls.apps' is not a package
>>
>>
>> So what am I supposed to put in that module?
>>
>>
>>
>>

-- 
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+unsubscr...@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/43a989b6-e0f9-4257-b808-2b77d6bd7ef9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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.

Marten

On Saturday, November 4, 2017 at 11:01:15 PM UTC+1, Kyle Foley wrote:
>
> 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 
> 
>  setting. 
> The PollsConfig class is in the polls/apps.py file, so its dotted path is 
> 'polls.apps.PollsConfig'.
>
> They haven't told me what the pollsconfig class consists in, nor have they 
> told me to build the apps.py module.  When I run the command line
>
> python manage.py makemigrations polls
>
> ModuleNotFoundError: No module named 'polls.apps.PollsConfig'; 
> 'polls.apps' is not a package
>
>
> So what am I supposed to put in that module?
>
>
>
>

-- 
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+unsubscr...@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/a2b5122d-18c4-4f32-8d97-ca9c1fe87f1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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
experimenting. Try starting again from scratch.

Antonis Christofides
http://djangodeployment.com

On 2017-11-05 00:22, Kyle Foley wrote:
> 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 UTC-7, Kyle Foley wrote:
>
> 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|
> 
> 
>  setting.
> The |PollsConfig| class is in the |polls/apps.py| file, so its dotted path
> is |'polls.apps.PollsConfig'|.
>
> They haven't told me what the pollsconfig class consists in, nor have they
> told me to build the apps.py module.  When I run the command line
>
> python manage.py makemigrations polls
>
> ModuleNotFoundError: No module named 'polls.apps.PollsConfig';
> 'polls.apps' is not a package
>
>
> So what am I supposed to put in that module?
>
>
>
> -- 
> 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+unsubscr...@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/20b5350b-deb3-4656-87a0-f5c5981e79d8%40googlegroups.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+unsubscr...@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/3c23eb80-4490-e616-369b-acfff46995ea%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.


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 UTC-7, Kyle Foley wrote:
>
> 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 
> 
>  setting. 
> The PollsConfig class is in the polls/apps.py file, so its dotted path is 
> 'polls.apps.PollsConfig'.
>
> They haven't told me what the pollsconfig class consists in, nor have they 
> told me to build the apps.py module.  When I run the command line
>
> python manage.py makemigrations polls
>
> ModuleNotFoundError: No module named 'polls.apps.PollsConfig'; 
> 'polls.apps' is not a package
>
>
> So what am I supposed to put in that module?
>
>
>
>

-- 
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+unsubscr...@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/20b5350b-deb3-4656-87a0-f5c5981e79d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 wrote:
> 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|
> 
>  setting.
> The |PollsConfig| class is in the |polls/apps.py| file, so its dotted path
> is |'polls.apps.PollsConfig'|.
>
> They haven't told me what the pollsconfig class consists in, nor have they
> told me to build the apps.py module.  When I run the command line
>
> python manage.py makemigrations polls
>
> ModuleNotFoundError: No module named 'polls.apps.PollsConfig'; 'polls.apps' is
> not a package
>
>
> So what am I supposed to put in that module?
>
>
>
> -- 
> 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+unsubscr...@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/5cd8bacd-dae2-4c87-99b0-c83da4520edf%40googlegroups.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+unsubscr...@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/d9955a9f-69b6-a9e3-f8a2-6e1e0c498f6d%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.


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 

 setting. 
The PollsConfig class is in the polls/apps.py file, so its dotted path is 
'polls.apps.PollsConfig'.

They haven't told me what the pollsconfig class consists in, nor have they 
told me to build the apps.py module.  When I run the command line

python manage.py makemigrations polls

ModuleNotFoundError: No module named 'polls.apps.PollsConfig'; 'polls.apps' 
is not a package


So what am I supposed to put in that module?



-- 
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+unsubscr...@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/5cd8bacd-dae2-4c87-99b0-c83da4520edf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.