Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#155 closed defect (invalid)

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

Reported by: gb@… Owned by: adrian
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: UI/UX:


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 10 years ago by adrian

  • Resolution set to invalid
  • Status changed from new to closed

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