i want to populate django_site table when i run after syncdb initially how can i do that i have one site only
+2
A:
You can either use the admin interface, from the shell, or script it (if you're looking for an automated solution). Here's how to do it from the shell (and what you would put into the script):
[sledge@localhost projects]$ python manage.py shell
>>> from django.contrib.sites.models import Site
>>> newsite = Site(name="Test",domain="test.com")
>>> newsite.save()
Andrew Sledge
2010-10-14 16:38:57