Skip to main content

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’.

Metadata

Release files for django-defaultsite 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-defaultsite 1.1
File Size Uploaded
django-defaultsite-1.1.zip 7.0 kB Details

Release files / django-defaultsite-1.1.zip

Download URL django-defaultsite-1.1.zip
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a6ce491c18bef8f588a8b11af0616db29c106ce3d245ab8c5f66c6a1b8be151e
BLAKE2b-256 checksum
How to use checksums
b923bd5fd93891f2eafe31e1d39d2c64978946f68f7d077df5c9595e82369173
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1 This release

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page