Re: update the part 1 of Django Tutorial perhaps

55 views
Skip to first unread message

Jirka Vejrazka

unread,
Nov 13, 2012, 4:54:11 PM11/13/12
to Django users
>            The reason is that I should add in the table "django_site" of my database : domain and name, I did it : insert into django_site (domain, name) values ("ncegcolnx270", "mysite");   And it works.   But this point, the Tutorial 1 doesn't say...... How can I perhaps help update the Tutorial 1 of Django?

Hi there,

  this table should have been automatically created once you ran the "manage.py syncdb" command. It is part of the 'django.contrib.sites' application which is enabled by default in your settings.py.

  Maybe you accidentally commented it out of your settings.py?

  HTH

    Jirka

Vibhu Rishi

unread,
Nov 13, 2012, 11:48:55 PM11/13/12
to django...@googlegroups.com
for admin access you also need to uncomment the lines in the installed apps for Admin. 

I agree with Jirka, it should be created by running syncdb. I have been playing around with django for sometime now and the default tutorials work like a charm. 

V.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
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.



--
Simplicity is the ultimate sophistication. - Leonardo da Vinci
Life is really simple, but we insist on making it complicated. - Confucius

XIE Enming

unread,
Nov 14, 2012, 9:27:07 AM11/14/12
to django...@googlegroups.com
But I had already run   "python manage.py syncdb"  before, bizarre.
Thanks for your responses.

Babatunde Akinyanmi

unread,
Nov 14, 2012, 11:35:56 AM11/14/12
to django...@googlegroups.com
Why not manually drop the database for your project and syncdb again.
Also make sure you have the admin app included in your installed apps
settings
> --
> 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/-/lvP58o0ZvhQJ.
> 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.
>
>

--
Sent from my mobile device

XIE Enming

unread,
Nov 15, 2012, 9:12:15 AM11/15/12
to django...@googlegroups.com
Thanks, I will do this next time when I create new project, now it is fine.
Yes, admin app is included in the installed apps settings
Reply all
Reply to author
Forward
0 new messages