Skip to content

Commit

Permalink
Wsgi + sqlite3 + paths + really late = pwnage
Browse files Browse the repository at this point in the history
  • Loading branch information
glenbot committed Jul 30, 2011
1 parent 84cc025 commit cd83a43
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions deploy/deploy.wsgi
Expand Up @@ -8,12 +8,11 @@ sys.stdout = sys.stderr
from os.path import abspath, dirname, join
from site import addsitedir

sys.path.insert(0, abspath(join(dirname(__file__), "../../")))
sys.path.insert(0, abspath(join(dirname(__file__), "../")))

os.environ["DJANGO_SETTINGS_MODULE"] = "dash.settings"
os.environ["DJANGO_SETTINGS_MODULE"] = "settings"

from django.conf import settings

sys.path.insert(0, join(settings.PROJECT_ROOT))

from django.core.handlers.wsgi import WSGIHandler
Expand Down

0 comments on commit cd83a43

Please sign in to comment.