Yes I found the error George, I mistakenly typed polss in settings. Now the
code is running fine

On Tue 1 May, 2018, 1:03 AM George Lubaretsi, <[email protected]> wrote:

> Looks like you have a typo somewhere.
>
> Exception says that it can't find a module `polss` while it should be
> `polls`. Check your settings and imports
>
> On Mon, Apr 30, 2018 at 11:29 PM Avitab Ayan Sarmah <[email protected]>
> wrote:
>
>> The code I am using for the models is:
>>
>> from django.db import models
>>
>> class Question(models.Model):
>>     question_text = models.CharField(max_length=200)
>>     pub_date = models.DateTimeField('date published')
>>
>> class Choice(models.Model):
>>    question = models.ForeignKey(Question)
>>    choice_text = models.CharField(max_length=200)
>>    votes = models.IntegerField(default=0)
>>
>> The code i am using for mysite/settings is:
>>
>> INSTALLED_APPS = [
>>     'polls.apps.PollsConfig',
>>     'django.contrib.admin',
>>     'django.contrib.auth',
>>     'django.contrib.contenttypes',
>>     'django.contrib.sessions',
>>     'django.contrib.messages',
>>     'django.contrib.staticfiles',]
>>
>>
>> It would be great if you could point out the error.
>>
>> --
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> 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/434e4e83-13f5-4688-b388-6c4d767a5273%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/434e4e83-13f5-4688-b388-6c4d767a5273%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/zgCUS5eWxOs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> 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/CACAWh81_WY%3Dw%2BNm%3DeCYinFJm01ZHbWk9XE2xdm6ursSb8EEnXw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACAWh81_WY%3Dw%2BNm%3DeCYinFJm01ZHbWk9XE2xdm6ursSb8EEnXw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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 [email protected].
To post to this group, send email to [email protected].
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/CAEx5wm5%3D%3D_nocV1jJ8PgSjvzYJ4TDYRPaaA5C%2BN4cFDw5LaUYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to