refactor api views inter their respecting apps
This commit is contained in:
parent
b69dff708e
commit
02cafee6be
12 changed files with 112 additions and 117 deletions
|
@ -47,6 +47,7 @@ else:
|
|||
|
||||
debug_fallback = "runserver" in sys.argv
|
||||
DEBUG = config.getboolean('django', 'debug', fallback=debug_fallback)
|
||||
DIRECT_EDITING = config.getboolean('c3nav', 'enable_editor', fallback=DEBUG)
|
||||
PUBLIC_PACKAGES = [n for n in config.get('c3nav', 'public_packages', fallback='').split(',') if n]
|
||||
|
||||
EDITOR_HOSTERS = OrderedDict((name[7:], data) for name, data in config.items() if name.startswith('hoster:'))
|
||||
|
@ -168,7 +169,7 @@ REST_FRAMEWORK = {
|
|||
'ALLOWED_VERSIONS': ['v1'],
|
||||
'DEFAULT_VERSION': 'v1',
|
||||
'DEFAULT_PERMISSION_CLASSES': (
|
||||
'c3nav.api.permissions.LockedMapFeatures',
|
||||
'c3nav.mapdata.permissions.LockedMapFeatures',
|
||||
),
|
||||
'DEFAULT_FILTER_BACKENDS': (
|
||||
'rest_framework.filters.DjangoFilterBackend',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue