]> git.parisson.com Git - timeside.git/commitdiff
add local mmmodule
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 1 Oct 2014 02:54:17 +0000 (04:54 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 1 Oct 2014 02:54:17 +0000 (04:54 +0200)
timeside/server/sandbox/settings.py
timeside/server/sandbox/timeside [new symlink]
timeside/server/sandbox/uwsgi.ini
timeside/server/sandbox/wsgi.py

index 2890b1f090db5a900b20fdd007b17d0e8a36143a..3ce7cf8678c248e6f4c058517c3a9b40690d2e0c 100644 (file)
@@ -12,6 +12,9 @@ ADMINS = (
 
 MANAGERS = ADMINS
 
+# Full filesystem path to the project.
+PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
+
 DATABASES = {
     'default': {
         'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
@@ -50,9 +53,6 @@ USE_L10N = True
 # If you set this to False, Django will not use timezone-aware datetimes.
 USE_TZ = True
 
-# Full filesystem path to the project.
-PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
-
 # Absolute filesystem path to the directory that will hold user-uploaded files.
 # Example: "/home/media/media.lawrence.com/media/"
 MEDIA_ROOT = PROJECT_ROOT + '/media/'
@@ -166,4 +166,4 @@ LOGGING = {
 }
 
 REST_FRAMEWORK = {
-}
\ No newline at end of file
+}
diff --git a/timeside/server/sandbox/timeside b/timeside/server/sandbox/timeside
new file mode 120000 (symlink)
index 0000000..62cc3cd
--- /dev/null
@@ -0,0 +1 @@
+../../../timeside
\ No newline at end of file
index 94bd2518dd4e09af36240f2171672ee962130111..5cc8ab2c8391aa78f6d26c86b4e7bd89d07e9aee 100644 (file)
@@ -24,8 +24,12 @@ home=/home/me/.virtualenv
 [base]
 # chdir to the folder of this config file, plus app/website
 chdir = %d
+
 # load the module from wsgi.py, it is a python path from
 # the directory above.
-module=wsgi
+module = wsgi
+
 # allow anyone to connect to the socket. This is very permissive
 chmod-socket=666
+
+auto-reload = %dwsgi.py
\ No newline at end of file
index cf8e7eb5243e1ab0ca1f1c533d720a92d0d16f9f..f611065cc0eaa0dd4c3aa08342abe03e3792499c 100644 (file)
@@ -13,7 +13,7 @@ middleware here, or combine a Django application with an application of another
 framework.
 
 """
-import os
+import os, sys
 
 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")