Opened 18 years ago

Closed 12 years ago

#2618 closed New feature (wontfix)

[patch] Added the ability for Site objects to have profiles.

Reported by: jay@… Owned by: nobody
Component: contrib.sites Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Someday/Maybe
Has patch: yes Needs documentation: yes
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Added the ability for Site objects to have profiles just like the User objects.

Use this in your settings.py
SITE_PROFILE_MODULE = "yourAppName.yourModel"
and make sure that model has a foreign key to the django.contrib.sites.models.Site model.

Now the Site object gets a get_profile()

This helps with multiple sites where each site had maybe a different zip code, Welcome message, etc. and it can all be edited through the admin site.

Attachments (1)

site_profiles.diff (1.3 KB ) - added by jay@… 18 years ago.

Download all attachments as: .zip

Change History (8)

by jay@…, 18 years ago

Attachment: site_profiles.diff added

comment:1 by Simon G. <dev@…>, 18 years ago

Needs documentation: set
Triage Stage: UnreviewedDesign decision needed

comment:2 by Jacob, 17 years ago

Triage Stage: Design decision neededSomeday/Maybe

comment:3 by Gabriel Hurley, 14 years ago

Component: Contrib appscontrib.sites

comment:4 by Łukasz Rekucki, 14 years ago

Severity: normalNormal
Type: enhancementNew feature

comment:5 by Aymeric Augustin, 13 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:6 by Aymeric Augustin, 13 years ago

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:7 by Aymeric Augustin, 12 years ago

Resolution: wontfix
Status: newclosed

User profiles haven't been very convincing. They've been deprecated in Django 1.5 in favor of custom user models.

Site profiles probably wouldn't fare better. You could make a case for custom site models. If you're interested, please send a concrete proposal to the django-developers mailing list.

Note: See TracTickets for help on using tickets.
Back to Top