Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

django-defaultsiteSets the Site object in django to something better then

Project Description

Sets the Site object in django to something better then So when other apps like pinax use it to construct email links that they actually work.

  1. Installation.

To install either download the source and run ‘ install’ like any other python module or install it from the cheese shop with ‘easy_install django-defaultsite’

Then add ‘defaultsite’ into your INSTALLED_APPS in your django settings.

  1. Configuration (Optional)

By default it will use socket.gethostname() to determine the host name of the site, and ‘defaultsite’ as the human readable version.

If you want to configure it further these settings are available, just put them in your

SITE_ID: The primary key on which Site object to modify. Normally 1.

SITE_DOMAIN: The domain to use to replace ‘’. Defaults to your machine’s hostname.

SITE_NAME: The sites name. Defaults to ‘defaultsite’.

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(7.0 kB) Copy SHA256 Hash SHA256
Source None Apr 16, 2010

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate