Could you post the stack trace of the error?

On Mon, Jun 26, 2017 at 5:35 AM, akhil kumar <[email protected]> wrote:

> this is my polls/urls.py
>
>
> from django.conf.urls import url
> from . import views
>
> urlpatterns=[
>     url(r'^$',views.index,name='index'),
>        ]
>
>
>
> mysite/urls.py
>
>
> from django.conf.urls import include,url
> from django.contrib import admin
>
> urlpatterns = [
>     url(r'^polls/',include('polls.urls',namespace="polls")),
>     url(r'^admin/', admin.site.urls),
>                ]
>
>
>
> settings.py
>
>
>
>
> INSTALLED_APPS = [
>     'polls.apps.PollsConfig'
>     'django.contrib.admin',
>     'django.contrib.auth',
>     'django.contrib.contenttypes',
>     'django.contrib.sessions',
>     'django.contrib.messages',
>     'django.contrib.staticfiles',
> ]
>
>
>
> models.py
>
>
> from django.db import models
>
> # Create your models here.
> class Question(models.Model):
>     question_text=models.CharField(max_length=500)
>     pub_date=models.DateTimeField('date published')
>
> class choice(models.Model):
>     Question=models.ForeignKey(Question,on_delete=models.CASCADE)
>     choice_text=models.CharField(max_length=500)
>     votes=models.IntegerField(default=0)
>
>           --
> 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/ef68772a-877a-482f-9ead-1b69125b23aa%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/ef68772a-877a-482f-9ead-1b69125b23aa%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 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/CALn3ei1N8FrhS85oS5uwA3S0FFN6rhpR4U5b%2Bo9oKpT7GBP0gw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to