gazette.app
Classes
The gazette application. Include this in your onegov.yml to serve |
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents
- class gazette.app.GazetteApp[source]
Bases:
onegov.core.Framework
,onegov.file.DepotApp
,onegov.quill.QuillApp
,onegov.form.FormApp
,onegov.user.UserApp
The gazette application. Include this in your onegov.yml to serve it with onegov-server.
- serve_static_files = True[source]
Returns True if
/static
files should be served. Needs to be enabled manually.Note that even if the static files are not served,
/static
path is still served, it just won’t return anything but a 404.Note also that static files are served publicly. You can override this in your application, but doing that and testing for it is on you!
See also:
onegov.core.static
.
- property principal: onegov.gazette.models.Principal[source]
Returns the principal of the gazette app. See
onegov.gazette.models.principal.Principal
.
- load_principal() onegov.gazette.models.Principal | None [source]
The principal is defined in the
principal.yml
file stored on the applications filestorage root.If the file does not exist, the site root does not exist and therefore a 404 is returned.
The structure of the yaml file is defined in class:onegov.gazette.model.Principal.