ska Package

conf Module

ska.contrib.django.ska.conf.get_setting(setting, override=None)[source]

Get a setting from werewolf conf module, falling back to the default.

If override is not None, it will be used instead of the setting.

decorators Module

defaults Module

  • UNAUTHORISED_REQUEST_ERROR_MESSAGE (str): Plain text error message. Defaults to “Unauthorised request. {0}”.
  • UNAUTHORISED_REQUEST_ERROR_TEMPLATE (str): Path to 401 template that should be rendered in case of 401 responses. Defaults to empty string (not provided).
  • AUTH_USER (str): Default auth_user for ska.sign_url function. Defaults to “ska-auth-user”.

exceptions Module

exception ska.contrib.django.ska.exceptions.ImproperlyConfigured[source]

Bases: exceptions.Exception

Exception raised when developer didn’t configure the code properly.

http Module

class ska.contrib.django.ska.http.HttpResponseUnauthorized(content=u'', *args, **kwargs)[source]

Bases: django.http.response.HttpResponseForbidden

http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_Error

status_code = 401

settings Module

Read the Docs v: 0.8
Versions
latest
0.9
0.8
0.7
0.6
0.5
0.4
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.