Package django :: Package contrib :: Package databrowse :: Module sites :: Class DatabrowseSite
[hide private]
[frames] | no frames]

Class DatabrowseSite

source code

object --+
         |
        DatabrowseSite

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
register(self, model_or_iterable, databrowse_class=None, **options)
Registers the given model(s) with the given databrowse site.
source code
 
unregister(self, model_or_iterable)
Unregisters the given model(s).
source code
 
root(self, request, url)
Handles main URL routing for the databrowse app.
source code
 
index(self, request) source code
 
model_page(self, request, app_label, model_name, rest_of_url=None)
Handles the model-specific functionality of the databrowse site, delegating to the appropriate ModelDatabrowse class.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

register(self, model_or_iterable, databrowse_class=None, **options)

source code 

Registers the given model(s) with the given databrowse site.

The model(s) should be Model classes, not instances.

If a databrowse class isn't given, it will use DefaultModelDatabrowse (the default databrowse options).

If a model is already registered, this will raise AlreadyRegistered.

unregister(self, model_or_iterable)

source code 

Unregisters the given model(s).

If a model isn't already registered, this will raise NotRegistered.

root(self, request, url)

source code 

Handles main URL routing for the databrowse app.

`url` is the remainder of the URL -- e.g. 'comments/comment/'.