Where do I set my site url in django settings?

Derek Organ picture Derek Organ · Aug 21, 2010 · Viewed 8.8k times · Source

Ok I think I must be missing something. In settings.py I don't see the setting for absolute url for the site. I see there is MEDIA_URL.

django-registration references {{ site }} which is defaulting to example.com but I'm not seeing that in any settings.

If I want the dev.mysite.com and mysite.com to work independently, what do I need to put in settings.py?

Answer

Wolph picture Wolph · Aug 21, 2010

The site uses the sites framework. The example.com domain is defined in the database and can be changed with the Django admin.

To use 2 sites simultaneously you will have to change the SITE_ID in the settings and add the extra site in the Django Admin.