diff options
-rw-r--r-- | app/builder/views.py | 10 | ||||
-rw-r--r-- | config/config.wsgi | 20 | ||||
-rw-r--r-- | config/settings/settings.py | 2 |
3 files changed, 26 insertions, 6 deletions
diff --git a/app/builder/views.py b/app/builder/views.py index 8b9c110..9926ff8 100644 --- a/app/builder/views.py +++ b/app/builder/views.py @@ -44,11 +44,6 @@ def do_build(request): BuildSitemap().build() context = {'message': 'Writing Sitemap to Disk',} - """ - elif section == 'all': - g.build_entire_site() - context = {'message': 'Writing Entire Site to disk',} - """ #build Everything need for new post elif section == 'newpost': #build writing archives/details pages/homepage @@ -65,6 +60,11 @@ def do_build(request): elif section == 'home': BuildWriting().build_homepage() context = {'message': 'Writing Homepage to Disk',} + """ + elif section == 'all': + g.build_entire_site() + context = {'message': 'Writing Entire Site to disk',} + """ else: context = {} diff --git a/config/config.wsgi b/config/config.wsgi new file mode 100644 index 0000000..ab5f23a --- /dev/null +++ b/config/config.wsgi @@ -0,0 +1,20 @@ +import os, sys, site +from os.path import dirname, abspath + +# Fix markdown.py (and potentially others) using stdout +sys.stdout = sys.stderr + +SERVER_ROOT = abspath(dirname(dirname(__file__)))+'/' +# Tell wsgi to add the Python site-packages to it's path. +site.addsitedir(SERVER_ROOT+'venv/lib/python2.7/site-packages') + +from django.core.handlers.wsgi import WSGIHandler +os.environ['DJANGO_SETTINGS_MODULE'] = 'config.settings.settings' +application = WSGIHandler() + +sys.path = [SERVER_ROOT,] + sys.path + +from django.conf import settings +sys.path.insert(0, os.path.join(settings.PROJ_ROOT, "app")) +sys.path.insert(0, os.path.join(settings.PROJ_ROOT, "app/lib")) +sys.path.insert(0, os.path.join(settings.PROJ_ROOT, "config")) diff --git a/config/settings/settings.py b/config/settings/settings.py index efd7e74..246b1be 100644 --- a/config/settings/settings.py +++ b/config/settings/settings.py @@ -18,7 +18,7 @@ DATABASES = { 'NAME': 'luxagraf', 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'USER': 'luxagraf', - 'PASSWORD': 'translinguis', + 'PASSWORD': '32d0fa8b', } } |