summaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-07-03 19:53:09 -0400
committerluxagraf <sng@luxagraf.net>2014-07-03 19:53:09 -0400
commitbfb3aa25f4b504c6a0d312c031569ca1c97be99d (patch)
treecf10d454da3bb97e653cf8dda0e09a76172856af /build.py
parent2ae8722c64e438030960fd7144fca93279fe10c2 (diff)
updated the about page and fixed a few styling issues
Diffstat (limited to 'build.py')
-rwxr-xr-xbuild.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/build.py b/build.py
new file mode 100755
index 0000000..1c20f4e
--- /dev/null
+++ b/build.py
@@ -0,0 +1,13 @@
+import os
+import sys
+import site
+from os.path import dirname, abspath
+SERVER_ROOT = abspath(dirname(dirname(__file__))) + '/'
+site.addsitedir(SERVER_ROOT + 'venv/lib/python3.4/site-packages')
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
+sys.path = [SERVER_ROOT, ] + sys.path
+sys.path.insert(0, os.path.join(SERVER_ROOT, "app"))
+sys.path.insert(0, os.path.join(SERVER_ROOT, "app/lib"))
+sys.path.insert(0, os.path.join(SERVER_ROOT, "config"))
+from pages.models import PageGenerator
+PageGenerator(os.path.join(SERVER_ROOT, "_pages")).write_files()