diff --git a/README b/README index e69de29..81a3703 100644 --- a/README +++ b/README @@ -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... diff --git a/neuf-userinfo.wsgi b/neuf-userinfo.wsgi new file mode 100644 index 0000000..701030a --- /dev/null +++ b/neuf-userinfo.wsgi @@ -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() diff --git a/settings-sample.py b/settings-sample.py index 1f483b7..1243c6d 100644 --- a/settings-sample.py +++ b/settings-sample.py @@ -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/'), diff --git a/urls.py b/urls.py index 62d76ac..52a4fe2 100644 --- a/urls.py +++ b/urls.py @@ -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')), )