mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-24 10:54:05 +01:00
allow to use tox to run tests/serve locally in an easy way
This commit is contained in:
@@ -14,7 +14,7 @@ from logging.handlers import SysLogHandler
|
||||
|
||||
from django.conf import global_settings
|
||||
|
||||
from modoboa.test_settings import *
|
||||
from modoboa.test_settings import * # NOQA
|
||||
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||
|
||||
@@ -26,12 +26,13 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||
SECRET_KEY = '!8o(-dbbl3e+*bh7nx-^xysdt)1gso*%@4ze4-9_9o+i&t--u_'
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = False
|
||||
DEBUG = 'DEBUG' in os.environ
|
||||
|
||||
TEMPLATE_DEBUG = False
|
||||
TEMPLATE_DEBUG = DEBUG
|
||||
|
||||
ALLOWED_HOSTS = [
|
||||
'localhost'
|
||||
'127.0.0.1',
|
||||
'localhost',
|
||||
]
|
||||
|
||||
SITE_ID = 1
|
||||
@@ -112,7 +113,7 @@ USE_TZ = True
|
||||
STATIC_URL = '/sitestatic/'
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, 'sitestatic')
|
||||
STATICFILES_DIRS = (
|
||||
'/home/tonio/.pythonenvs/modoboa/lib/python2.7/site-packages/modoboa-1.3.3-py2.7.egg/modoboa/bower_components',
|
||||
os.path.join(BASE_DIR, '..', 'modoboa', 'bower_components'),
|
||||
)
|
||||
|
||||
MEDIA_URL = '/media/'
|
||||
@@ -130,9 +131,9 @@ REST_FRAMEWORK = {
|
||||
}
|
||||
|
||||
# Modoboa settings
|
||||
#MODOBOA_CUSTOM_LOGO = os.path.join(MEDIA_URL, "custom_logo.png")
|
||||
# MODOBOA_CUSTOM_LOGO = os.path.join(MEDIA_URL, "custom_logo.png")
|
||||
|
||||
#DOVECOT_LOOKUP_PATH = ('/path/to/dovecot', )
|
||||
# DOVECOT_LOOKUP_PATH = ('/path/to/dovecot', )
|
||||
|
||||
MODOBOA_API_URL = 'http://api.modoboa.org/1/'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user