Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#155 closed defect (invalid)

django-admin initializes in meta table without way to change that

Reported by: gb@… Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


The django-admin script initializes the meta table to contain a record that is used for example with the flatfiles and redirects apps. There you can select for what site you want to add stuff - but there is no way to change this record to your own address and site name. And there is no way to add another site to the database - so one asks himself why there are multiple section possibilities in the flatfiles and redirects apps in the first place ...

Change History (1)

comment:1 Changed 14 years ago by Adrian Holovaty

Resolution: invalid
Status: newclosed

You can change it by using the API.

>>> from django.models.core import sites
>>> s = sites.get_object(id__exact=1)
>>> s.domain = ''

There's no admin interface for adding/changing sites, because it's such a low-level, core thing.

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