allow to use tox to run tests/serve locally in an easy way

This commit is contained in:
Gael Pasgrimaud
2016-09-13 11:47:21 +02:00
parent 9d3d0b59f7
commit c87240eefb
7 changed files with 58 additions and 7 deletions
+8 -7
View File
@@ -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/'