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
- 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.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‘.
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/
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:
admin/
django.contrib.admin.site.urls
ckeditor/
ckeditor_uploader.urls
comments_dj/
django_comments.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/