views.generic.dates.BaseWeekArchiveView

class BaseWeekArchiveView [source]

admin.models.LogEntry.action_time

LogEntry.action_time The date and time of the action.

utils.safestring.mark_for_escaping()

mark_for_escaping(s) [source] Deprecated since version 1.10. Explicitly mark a string as requiring HTML escaping upon output. Has no effect on SafeData subclasses. Can be called multiple times on a single string (the resulting escaping is only applied once).

template.context_processors.tz()

tz() [source] If this processor is enabled, every RequestContext will contain a variable TIME_ZONE, providing the name of the currently active time zone.

contenttypes.admin.GenericInlineModelAdmin.ct_field

ct_field The name of the ContentType foreign key field on the model. Defaults to content_type.

core.management.BaseCommand.handle()

BaseCommand.handle(*args, **options) [source] The actual logic of the command. Subclasses must implement this method. It may return a Unicode string which will be printed to stdout (wrapped by BEGIN; and COMMIT; if output_transaction is True).

db.models.Lookup.rhs

rhs The right-hand side - what lhs is being compared against. It can be a plain value, or something that compiles into SQL, typically an F() object or a QuerySet.

views.generic.dates.MonthMixin.get_previous_month()

get_previous_month(date) [source] Returns a date object containing the first day of the month before the date provided. This function can also return None or raise an Http404 exception, depending on the values of allow_empty and allow_future.

sessions.backends.base.SessionBase.get()

get(key, default=None) Example: fav_color = request.session.get('fav_color', 'red')

template.loaders.base.Loader.get_contents()

get_contents(origin) Returns the contents for a template given a Origin instance. This is where a filesystem loader would read contents from the filesystem, or a database loader would read from the database. If a matching template doesn’t exist, this should raise a TemplateDoesNotExist error.