-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathadmin_settings.py
45 lines (34 loc) · 1.27 KB
/
admin_settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
'''Settings for appengine_admin.'''
import os.path
# Private variable. Use appengine_admin.get_application_routes()
_application_routes = {}
# Private variable. Use appengine_admin.get_webapp2_config()
_webapp2_config = {}
# Admin templates are found here. Prepend your own path to extend the templates.
ADMIN_TEMPLATE_PATHS = [
os.path.join(os.path.abspath(os.path.dirname(__file__)), 'templates')
]
# Root URL for the admin, no trailing slash necessary.
ADMIN_BASE_URL = '/admin/models'
ADMIN_MEDIA_URL = '/appengine_admin_media'
# Feature paths
FEATURE_PICKLE_PROPERTY_PATH = None
# Items per page in admin list view
ADMIN_ITEMS_PER_PAGE = 50
# Set by Google - currently 10MB
# This is used for validation of file uploads.
# TODO: implement
# MAX_BLOB_SIZE = 1 * 1024 * 1024
# Suffix for BlobProperty meta info storage.
# BLOB_FIELD_META_SUFFIX = '_meta'
# Path to the paginator class
PAGINATOR_PATH = 'gae_paginator.Paginator'
# Path to the csrf class
CSRF_HANDLER_PATH = 'gae_csrf.handlers.CSRFRequestHandler'
# Set this to your custom access callback
# ACCESS_CALLBACK = some_func
# Set this to your custom notification callback
# Useful e.g. when errors occur in the admin handler
NOTIFY_CALLBACK = None
# Default timezone for use in admin dates
TIMEZONE = 'America/Los_Angeles'