What is the error you are getting?

atm
___
Life is short, Live it hard.




On 21 August 2012 12:57, maha <aero.maha.1...@gmail.com> wrote:

> Hi,I am new to django. Right now I am going through the tutorial. I am
> stuck on the creating poll application.
>
> *Here are the settings.py ,*
>
> INSTALLED_APPS = (
>     'django.contrib.auth',
>     'django.contrib.contenttypes',
>     'django.contrib.sessions',
>     'django.contrib.sites',
>     'django.contrib.messages',
>     'django.contrib.staticfiles',
>     # Uncomment the next line to enable the admin:
>     'django.contrib.admin',
>     # Uncomment the next line to enable admin documentation:
>     # 'django.contrib.admindocs',
>    'poll',
> )
>
> *here are the models.py*
>
> from django.db import models
>
> class Poll(models.Model):
>     question = models.CharField(max_length=200)
>     pub_date = models.DateTimeField('date published')
>
> class Choice(models.Model):
>     poll = models.ForeignKey(Poll)
>     choice_text = models.CharField(max_length=200)
>     votes = models.IntegerField()
>
> *here are the urls.py,*
>
> from django.conf.urls import patterns, include, url
>
> # Uncomment the next two lines to enable the admin:
> from django.contrib import admin
> admin.autodiscover()
>
> urlpatterns = patterns('',
>     # Examples:
>     # url(r'^$', 'mysitee.views.home', name='home'),
>     # url(r'^mysitee/', include('mysitee.foo.urls')),
>
>     # Uncomment the admin/doc line below to enable admin documentation:
>     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
>
>     # Uncomment the next line to enable the admin:
>     # url(r'^admin/', include(admin.site.urls)),
> )
>  i got struck, after i was running this command *python manage.py shell,* 
> (i.e)
> while exploring the database in python shell.
>
> do u need to show any other code, which i used.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/V262IvOrL9kJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to