Commit 82948267 by benjaoming

A few deployment details

parent 58cf1a33
...@@ -44,6 +44,7 @@ setup( ...@@ -44,6 +44,7 @@ setup(
'markdown', 'markdown',
'django-sekizai', 'django-sekizai',
'south', 'south',
'django-mptt',
], ],
classifiers=[ classifiers=[
'Development Status :: 2 - Pre-Alpha', 'Development Status :: 2 - Pre-Alpha',
......
...@@ -14,7 +14,7 @@ MANAGERS = ADMINS ...@@ -14,7 +14,7 @@ MANAGERS = ADMINS
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'db/prepopulated.db', # Or path to database file if using sqlite3. 'NAME': os_path.join(PROJECT_PATH, 'db', 'prepopulated.db'), # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3. 'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3. 'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
......
...@@ -14,6 +14,12 @@ framework. ...@@ -14,6 +14,12 @@ framework.
""" """
import os import os
import sys
PROJECT_PATH = os.path.abspath(os.path.split(__file__)[0])
PROJECT_PARENT = os.path.abspath(os.path.split(PROJECT_PATH)[0])
sys.path.append(PROJECT_PATH)
sys.path.append(PROJECT_PARENT)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproject.settings") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproject.settings")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment