Skip to content

Commit 11175c3

Browse files
committed
Django version updated from 1.4 to 1.6: resolving relative path problems with Apache WSGI.
1 parent 6a868f0 commit 11175c3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ahmia/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
'django.contrib.sessions',
138138
'django.contrib.sites',
139139
'django.contrib.messages',
140-
#'ahmia',
140+
'ahmia',
141141
# Uncomment the next line to enable the admin:
142142
# 'django.contrib.admin',
143143
# Uncomment the next line to enable admin documentation:

ahmia.wsgi renamed to wsgi.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import sys
21
import os
3-
import os.path
2+
import sys
43

5-
sys.path.append(os.path.dirname(__file__))
6-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ahmia.settings")
4+
sys.path.append('/usr/local/lib/ahmia')
75

6+
# Path to the settings.py file
7+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ahmia.settings")
88
# This application object is used by the development server
99
# as well as any WSGI server configured to use this file.
1010
from django.core.wsgi import get_wsgi_application

0 commit comments

Comments
 (0)