mamweb

mamweb.admin

Soubor sloužící k úpravě základních vlastností adminu. Zde se do adminu přidává CKEditor, nastavuje české řazení v adminu a preference (zobrazuje se v seznamu jako první) adminu k Semináři.

class mamweb.admin.FlatpageForm(*args, **kwargs)[zdroj]

Bases: FlatpageForm

class Meta[zdroj]

Bases: object

model

alias of FlatPage

exclude = []
base_fields = {'content': <django.forms.fields.CharField object>, 'enable_comments': <django.forms.fields.BooleanField object>, 'registration_required': <django.forms.fields.BooleanField object>, 'sites': <django.forms.models.ModelMultipleChoiceField object>, 'template_name': <django.forms.fields.CharField object>, 'title': <django.forms.fields.CharField object>, 'url': <django.forms.fields.RegexField object>}
declared_fields = {'content': <django.forms.fields.CharField object>, 'url': <django.forms.fields.RegexField object>}
property media
class mamweb.admin.FlatPageAdmin(model, admin_site)[zdroj]

Bases: FlatPageAdmin

form

alias of FlatpageForm

property media
mamweb.admin.get_app_list(self, request)[zdroj]

Return a sorted list of all the installed apps that have been registered in this site.

mamweb.middleware

class mamweb.middleware.LoggedInHintCookieMiddleware[zdroj]

Bases: object

Middleware to securely help with ‚logged-in‘ detection for dual HTTP/HTTPS sites.

On insecure requests: Checks for a (non-secure) cookie settings.LOGGED_IN_HINT_COOKIE_NAME and if present, redirects to HTTPS (same adress). Note this usually breaks non-GET (POST) requests.

On secure requests: Updates cookie settings.LOGGED_IN_HINT_COOKIE_NAME to reflect whether an user is logged in in the current session (cookie set to ‚True‘ or cleared). The cookie is set to expire at the same time as the sessionid cookie.

By default, LOGGED_IN_HINT_COOKIE_NAME = ‚logged_in_hint‘.

cookie_correct(request)[zdroj]
process_request(request)[zdroj]
process_response(request, response)[zdroj]
class mamweb.middleware.vzhled[zdroj]

Bases: object

process_request(request)[zdroj]
process_view(request, view_func, view_args, view_kwargs)[zdroj]
process_template_response(request, response)[zdroj]
process_response(request, response)[zdroj]

mamweb.settings

mamweb.settings_common

Django settings for mamweb project.

For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/

For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/

class mamweb.settings_common.InvalidTemplateVariable[zdroj]

Bases: str

mamweb.settings_debug

mamweb.settings_local

mamweb.settings_prod

mamweb.settings_test

mamweb.urls

Soubor sloužící jako základní „router“, tj. zde se includují veškeré ostatní urls:

mamweb.wsgi

WSGI config for mamweb project.

It exposes the WSGI callable as a module-level variable named application.

For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/