Opened 19 years ago

Closed 19 years ago

#181 closed defect (invalid)

Site and FlatFile don't appear in the Admin interface

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

Description

As alluded to in your Model documentation, there's a FlatFile model, and a Site model.

I was hoping to extend the Site model with a OneToOne relationship so that I could have multiple blogs in one admin interfacce, with its various options such as blog name and short name, and subtitle, and so on. For the moment I've created a separate blog object with this data, but I can only really create one, as I can't add or remove any sites.

I tried monkey patching the Site object, but that doesn't seem to have worked.

So please could you enable the Site object in the Admin interface, or document how to do so through some equivalent of monkey patching, or tell us why we shouldn't use the object ;)

Change History (1)

comment:1 by Adrian Holovaty, 19 years ago

Resolution: invalid
Status: newclosed

Sites are such a core part of Django that we made the conscious decision not to have them editable in the admin. Generally you only add and change sites once, and you never have to worry about it again. Do so in the Python interactive prompt:

>>> from django.models.core import sites
>>> s = sites.Site('www.test.com', 'Test.com')
>>> s.save()
Note: See TracTickets for help on using tickets.
Back to Top