Opened 19 years ago
Closed 13 years ago
#2618 closed New feature (wontfix)
[patch] Added the ability for Site objects to have profiles.
| Reported by: | 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)
Change History (8)
by , 19 years ago
| Attachment: | site_profiles.diff added |
|---|
comment:1 by , 19 years ago
| Needs documentation: | set |
|---|---|
| Triage Stage: | Unreviewed → Design decision needed |
comment:2 by , 18 years ago
| Triage Stage: | Design decision needed → Someday/Maybe |
|---|
comment:3 by , 15 years ago
| Component: | Contrib apps → contrib.sites |
|---|
comment:4 by , 15 years ago
| Severity: | normal → Normal |
|---|---|
| Type: | enhancement → New feature |
comment:5 by , 14 years ago
| UI/UX: | unset |
|---|
comment:7 by , 13 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
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.
Change UI/UX from NULL to False.