Code

Opened 9 years ago

Closed 9 years ago

#418 closed defect (invalid)

No interface to change default site in sites table generated by django-admin.py init

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

Description

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

django-admin.py init

It's fairly disconcerting to see "mysite.com" 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.

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by adrian

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

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.