diff --git a/.gitignore b/.gitignore index e382df5..6a6e991 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ beautifulmind/environment.py beautifulmind/virtualenv/ beautifulmind/assets/* - +beautifulmind/configuration/_50_env_production.py *.pyc .idea/ .DS_Store diff --git a/beautifulmind/configuration/_50_env_boerni.py b/beautifulmind/configuration/_50_env_boerni.py index 103ce75..bad968b 100644 --- a/beautifulmind/configuration/_50_env_boerni.py +++ b/beautifulmind/configuration/_50_env_boerni.py @@ -22,4 +22,10 @@ DEBUG = True MINDMAPTORNADO_BIND_PORT = 1234 -MINDMAPTORNADO_SERVER = 'http://192.168.100.200:%d/ws' % (MINDMAPTORNADO_BIND_PORT) \ No newline at end of file +MINDMAPTORNADO_SERVER = 'http://192.168.100.200:%d/ws' % (MINDMAPTORNADO_BIND_PORT) + +CACHES = { + 'default': { + 'BACKEND': 'django.core.cache.backends.dummy.DummyCache', + } +} \ No newline at end of file diff --git a/beautifulmind/configuration/_50_env_production.py b/beautifulmind/configuration/_50_env_production.py index 4ebf7d5..0492075 100644 --- a/beautifulmind/configuration/_50_env_production.py +++ b/beautifulmind/configuration/_50_env_production.py @@ -29,3 +29,7 @@ MINDMAPTORNADO_BIND_PORT = 8001 MINDMAPTORNADO_SERVER = 'http://beautifulmind.io/ws/' + +ADMINS = ( + ('Bernhard', 'boerni@beautifulmind.io'), +) \ No newline at end of file diff --git a/beautifulmind/mindmap/urls.py b/beautifulmind/mindmap/urls.py index a7d5d57..866050a 100644 --- a/beautifulmind/mindmap/urls.py +++ b/beautifulmind/mindmap/urls.py @@ -18,5 +18,5 @@ url(r'^map/(?P\d+)/export/form/$', 'map_export_form', name='mindmap_map_export_form'), url(r'^map/(?P\d+)/export/download/$', 'map_export_download', name='mindmap_map_export_download'), - url(r'^(?P.+)$', 'map_show', name='mindmap_map_show'), + url(r'^(?P[0-9]+\-(\w|-)+)$', 'map_show', name='mindmap_map_show'), ) \ No newline at end of file diff --git a/beautifulmind/settings.py b/beautifulmind/settings.py index 4046616..8564c3b 100644 --- a/beautifulmind/settings.py +++ b/beautifulmind/settings.py @@ -118,7 +118,7 @@ #'django.contrib.messages.middleware.MessageMiddleware', ) -ROOT_URLCONF = 'urls' +ROOT_URLCONF = 'beautifulmind.urls' TEMPLATE_DIRS = ( PROJECT_ROOT+'templates/' @@ -196,16 +196,5 @@ SECRET_KEY = ENVIRONMENT.SECRET_KEY -if hasattr(ENVIRONMENT, 'ADMINS'): - ADMINS = ENVIRONMENT.ADMINS - # import env module exec('from configuration._50_env_%s import *' % environment.NAME) - -# sendfile -if DEBUG and environment.IS_FOR_DEVELOPMENT: - SENDFILE_BACKEND = 'sendfile.backends.development' -else: - SENDFILE_BACKEND = 'sendfile.backends.nginx' - SENDFILE_ROOT = MEDIA_ROOT - SENDFILE_URL = MEDIA_URL \ No newline at end of file diff --git a/beautifulmind/templates/base.html b/beautifulmind/templates/base.html index 99e7266..f1295c0 100644 --- a/beautifulmind/templates/base.html +++ b/beautifulmind/templates/base.html @@ -36,7 +36,7 @@