Renamed to neuf-userinfo. Added a .wsgi-file for Apache. Wrote some install-notes

This commit is contained in:
nikolark committed 2011-09-17 17:22:50 +02:00
1 parent 3e1f0395be
commit c1bc3a303f
4 files changed
+31 -3

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
INSTALL
=======
Newer Ubuntus/Debians (11.04+/6.0+):
- apt-get install python-django python-ldap python-sqlite python-django-auth-ldap
Other:
- Get latest python-django from http://djangoproject.com
- Get latest django-auth-ldap from http://pypi.python.org/pypi/django-auth-ldap/1.0.11
- Unpack and run: 'python setup.py install' in both dirs.
Apache:
- Make a Vhost
- add WSGIScriptAlias / /path/to/project/neuf-userinfo/neuf-userinfo.wsgi
More...
+15
View File
@@ -0,0 +1,15 @@
import os
import sys
from os.path import dirname, join
def map_path(target_name=''):
'''Enables path names to be decided at runtime.'''
return join(dirname(__file__), target_name).replace('\\', '/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'neuf-userinfo.settings'
path = map_path(".")
if path not in sys.path:
sys.path.append(path)
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
+1 -2
View File
@@ -1,4 +1,3 @@
# Django settings for dns_userinfo project.
from os.path import dirname, join
def map_path(target_name):
@@ -81,7 +80,7 @@ MIDDLEWARE_CLASSES = (
'django.contrib.messages.middleware.MessageMiddleware',
)
ROOT_URLCONF = 'dns_userinfo.urls'
ROOT_URLCONF = 'neuf-userinfo.urls'
TEMPLATE_DIRS = (
map_path('templates/'),
+1 -1
View File
@@ -3,7 +3,7 @@ from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
#(r'^main/', include('dns_userinfo.main.urls')),
#(r'^main/', include('neuf-userinfo.main.urls')),
(r'^admin/', include(admin.site.urls)),
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
)