Opened 14 years ago

Closed 14 years ago

#418 closed defect (invalid)

No interface to change default site in sites table generated by init

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


There does not seem to be any interface to changing the "domain" and "name" fields on the sites table generated by init

It's fairly disconcerting to see "" on the flat pages create/edit form and not have any idea how to modify it, short of changing it by hand in the database.

Change History (1)

comment:1 Changed 14 years ago by Adrian Holovaty

Resolution: invalid
Status: newclosed

There's a Python interface. Just do the following in a Python prompt:

from django.models.core import sites
s = sites.get_object()
s.domain = '' = 'Foo'
Note: See TracTickets for help on using tickets.
Back to Top