Monday, May 27, 2013

Django tutorial - The "python manage.py startapp polls" command

The "python manage.py startapp polls" command doesnt create a admin.py file inside polls. I tried creating a admin.py file and running it but i get this error when I try to use it.

DatabaseError at /admin/polls/poll/1/

no such table: django_admin_log

I think the autogenerated code wasnt generated and this is causing some problems. How do I fix it?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment