Skip to main content

django-defaultsiteSets the Site object in django to something better then example.com.

Project description

Sets the Site object in django to something better then example.com. 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 ‘setup.py 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 settings.py:

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

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

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

Project details


Download files

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

Source Distribution

django-defaultsite-1.1.zip (7.0 kB view details)

Uploaded Source

File details

Details for the file django-defaultsite-1.1.zip.

File metadata

  • Download URL: django-defaultsite-1.1.zip
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-defaultsite-1.1.zip
Algorithm Hash digest
SHA256 a6ce491c18bef8f588a8b11af0616db29c106ce3d245ab8c5f66c6a1b8be151e
MD5 f9ce8d8066f613f81283237faaf91923
BLAKE2b-256 b923bd5fd93891f2eafe31e1d39d2c64978946f68f7d077df5c9595e82369173

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page