Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#155 closed defect (invalid)

django-admin initializes mysite.com 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

Description

The django-admin script initializes the meta table to contain a mysite.com 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 by Adrian Holovaty, 19 years ago

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 = 'newdomain.com'
>>> s.save()

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