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.pyfrom django.db import modelsclass 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 adminadmin.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...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Hello,Got struct means you got any error or don't know what to do after that????Just follow the tutorial, read out each and every line in the document.
>
.don know what to do after that..
--
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/-/m5g03N065jAJ.