Files
mayan-edms/mayan/settings/development.py
Roberto Rosario 1fa91f0ef7 Remove development URLs from main URL file
Move the development URL definitions for Rosetta and Debug toolbar
to a separate URL file. Convert the single urls.py to a module to
allow multiple URL files to be used.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-04-12 01:53:06 -04:00

40 lines
799 B
Python

from __future__ import absolute_import, unicode_literals
from . import * # NOQA
ALLOWED_HOSTS = ['*']
DEBUG = True
CELERY_ALWAYS_EAGER = True
CELERY_EAGER_PROPAGATES_EXCEPTIONS = CELERY_ALWAYS_EAGER
if 'rosetta' not in INSTALLED_APPS:
try:
import rosetta
except ImportError:
pass
else:
INSTALLED_APPS += (
'rosetta',
)
if 'django_extensions' not in INSTALLED_APPS:
try:
import django_extensions
except ImportError:
pass
else:
INSTALLED_APPS += (
'django_extensions',
)
ROOT_URLCONF = 'mayan.urls.development'
TEMPLATES[0]['OPTIONS']['loaders'] = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
WSGI_AUTO_RELOAD = True