[open-ils-commits] r18 - in servres/trunk: . conifer

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Nov 16 22:12:43 EST 2008


Author: gfawcett
Date: 2008-11-16 22:12:41 -0500 (Sun, 16 Nov 2008)
New Revision: 18

Added:
   servres/trunk/conifer/
   servres/trunk/conifer/README
   servres/trunk/conifer/__init__.py
   servres/trunk/conifer/babel.cfg
   servres/trunk/conifer/doc/
   servres/trunk/conifer/genshi_support.py
   servres/trunk/conifer/local_settings.py.in
   servres/trunk/conifer/locale/
   servres/trunk/conifer/manage.py
   servres/trunk/conifer/middleware/
   servres/trunk/conifer/pybabel-extract
   servres/trunk/conifer/settings.py
   servres/trunk/conifer/static/
   servres/trunk/conifer/syrup/
   servres/trunk/conifer/templates/
   servres/trunk/conifer/urls.py
Removed:
   servres/trunk/README
   servres/trunk/__init__.py
   servres/trunk/babel.cfg
   servres/trunk/doc/
   servres/trunk/genshi_support.py
   servres/trunk/local_settings.py.in
   servres/trunk/locale/
   servres/trunk/manage.py
   servres/trunk/middleware/
   servres/trunk/pybabel-extract
   servres/trunk/settings.py
   servres/trunk/static/
   servres/trunk/syrup/
   servres/trunk/templates/
   servres/trunk/urls.py
Log:
moved all stuff to conifer subdir to make Django happy

Deleted: servres/trunk/README
===================================================================
--- servres/trunk/README	2008-11-17 03:00:59 UTC (rev 17)
+++ servres/trunk/README	2008-11-17 03:12:41 UTC (rev 18)
@@ -1,66 +0,0 @@
-Syrup: A Reserves application
-------------------------------
-
-For more information, see
-http://open-ils.org/dokuwiki/doku.php?id=scratchpad:reserves
-
-or contact
-Art Rhyno <artrhyno at uwindsor.ca>
-Graham Fawcett <graham.fawcett at gmail.com>
-
-
-State of the application
-------------------------------
-
-Extremely primitive! Just working out some user authentication tidbits
-at the moment.
-
-Required Python components
-------------------------------
-
-sudo easy_install Django Genshi Babel BabelDjango
-
-
-Getting this thing to run
-------------------------------
-
-This might work:
-
-* cp local_settings.py.in local_settings.py
-
-* edit local_settings.py and set X_BASE_DIRECTORY to the the name of
-  the directory this file is in. (This is a hack, will remove soon.)
-
-* ./manage.py syncdb
-
-* During syncdb, create yourself a superuser account.
-
-* ./pybabel-extract
-
-* ./manage.py runserver
-
-* visit http://localhost:8000/admin/ and log in
-
-* Create a Term, a Course, and a Member record, adding your superuser
-  acct to the Course via the Member record.
-
-* visit http://localhost:8000/syrup/ and log in (if you're not already
-  logged in from the admin screens) to see the main interface.
-
-
-Contents
-------------------------------
-
-syrup/			-- the reserves app
-middleware/		-- middleware component to integrate Genshi
-locale/			-- the gettext files
-templates/		-- the Genshi templates
-static/			-- static JS, CSS, image files
-doc/			-- documentation on the app
-
-local_settings.py.in    -- a template for local_settings.py
-genshi_support.py	-- Genshi template integration
-pybabel-extract		-- a "make all" for the i18n files
-babel.cfg		-- Babel (i18n) configuration file
-
-The rest is straightforward Django stuff.

Deleted: servres/trunk/__init__.py
===================================================================

Deleted: servres/trunk/babel.cfg
===================================================================
--- servres/trunk/babel.cfg	2008-11-17 03:00:59 UTC (rev 17)
+++ servres/trunk/babel.cfg	2008-11-17 03:12:41 UTC (rev 18)
@@ -1,7 +0,0 @@
-[extractors]
-django=babeldjango.extract:extract_django
-
-[python: **.py]
-[genshi: **.xhtml]
-ignore_tags= script, style
-include_attrs = alt title summary

Copied: servres/trunk/conifer/README (from rev 17, servres/trunk/README)
===================================================================
--- servres/trunk/conifer/README	                        (rev 0)
+++ servres/trunk/conifer/README	2008-11-17 03:12:41 UTC (rev 18)
@@ -0,0 +1,66 @@
+Syrup: A Reserves application
+------------------------------
+
+For more information, see
+http://open-ils.org/dokuwiki/doku.php?id=scratchpad:reserves
+
+or contact
+Art Rhyno <artrhyno at uwindsor.ca>
+Graham Fawcett <graham.fawcett at gmail.com>
+
+
+State of the application
+------------------------------
+
+Extremely primitive! Just working out some user authentication tidbits
+at the moment.
+
+Required Python components
+------------------------------
+
+sudo easy_install Django Genshi Babel BabelDjango
+
+
+Getting this thing to run
+------------------------------
+
+This might work:
+
+* cp local_settings.py.in local_settings.py
+
+* edit local_settings.py and set X_BASE_DIRECTORY to the the name of
+  the directory this file is in. (This is a hack, will remove soon.)
+
+* ./manage.py syncdb
+
+* During syncdb, create yourself a superuser account.
+
+* ./pybabel-extract
+
+* ./manage.py runserver
+
+* visit http://localhost:8000/admin/ and log in
+
+* Create a Term, a Course, and a Member record, adding your superuser
+  acct to the Course via the Member record.
+
+* visit http://localhost:8000/syrup/ and log in (if you're not already
+  logged in from the admin screens) to see the main interface.
+
+
+Contents
+------------------------------
+
+syrup/			-- the reserves app
+middleware/		-- middleware component to integrate Genshi
+locale/			-- the gettext files
+templates/		-- the Genshi templates
+static/			-- static JS, CSS, image files
+doc/			-- documentation on the app
+
+local_settings.py.in    -- a template for local_settings.py
+genshi_support.py	-- Genshi template integration
+pybabel-extract		-- a "make all" for the i18n files
+babel.cfg		-- Babel (i18n) configuration file
+
+The rest is straightforward Django stuff.

Copied: servres/trunk/conifer/__init__.py (from rev 17, servres/trunk/__init__.py)
===================================================================

Copied: servres/trunk/conifer/babel.cfg (from rev 17, servres/trunk/babel.cfg)
===================================================================
--- servres/trunk/conifer/babel.cfg	                        (rev 0)
+++ servres/trunk/conifer/babel.cfg	2008-11-17 03:12:41 UTC (rev 18)
@@ -0,0 +1,7 @@
+[extractors]
+django=babeldjango.extract:extract_django
+
+[python: **.py]
+[genshi: **.xhtml]
+ignore_tags= script, style
+include_attrs = alt title summary

Copied: servres/trunk/conifer/doc (from rev 17, servres/trunk/doc)

Copied: servres/trunk/conifer/genshi_support.py (from rev 17, servres/trunk/genshi_support.py)
===================================================================
--- servres/trunk/conifer/genshi_support.py	                        (rev 0)
+++ servres/trunk/conifer/genshi_support.py	2008-11-17 03:12:41 UTC (rev 18)
@@ -0,0 +1,36 @@
+from django.http import HttpResponse, HttpRequest
+from genshi.template import TemplateLoader
+from genshi.filters import Translator
+from genshi.builder import tag
+import genshi.output
+from django.conf import settings
+from conifer.syrup import models # fixme, tight binding
+import gettext
+from conifer.middleware.genshi_locals import get_request
+
+translations = gettext.GNUTranslations(file('locale/%s/LC_MESSAGES/conifer-syrup.mo' % settings.LANGUAGE_CODE))
+
+_ = translations.ugettext
+
+def template_loaded(template):
+    template.filters.insert(0, Translator(translations.ugettext))
+
+dirs = ['templates']
+
+loader = TemplateLoader(dirs, auto_reload=True, callback=template_loaded)
+
+def template(tname):
+    return loader.load(tname)
+           
+def render(tname, **kwargs):
+    request = get_request()
+    _inject_django_things_into_namespace(request, kwargs)
+    return HttpResponse(template(tname).generate(**kwargs).render('xhtml'))
+
+def _inject_django_things_into_namespace(request, ns):
+    ns['_'] = _
+    ns['models'] = models
+    ns['request'] = request
+    ns['user'] = getattr(request, 'user', None)
+
+

Copied: servres/trunk/conifer/local_settings.py.in (from rev 17, servres/trunk/local_settings.py.in)
===================================================================
--- servres/trunk/conifer/local_settings.py.in	                        (rev 0)
+++ servres/trunk/conifer/local_settings.py.in	2008-11-17 03:12:41 UTC (rev 18)
@@ -0,0 +1,2 @@
+# set X_BASE_DIRECTORY to the the name of the directory this file is in!
+X_BASE_DIRECTORY = '/home/graham/projects/evergreen/conifer/'

Copied: servres/trunk/conifer/locale (from rev 17, servres/trunk/locale)

Copied: servres/trunk/conifer/manage.py (from rev 17, servres/trunk/manage.py)
===================================================================
--- servres/trunk/conifer/manage.py	                        (rev 0)
+++ servres/trunk/conifer/manage.py	2008-11-17 03:12:41 UTC (rev 18)
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+from django.core.management import execute_manager
+try:
+    import settings # Assumed to be in the same directory.
+except ImportError:
+    import sys
+    sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
+    sys.exit(1)
+
+if __name__ == "__main__":
+    execute_manager(settings)

Copied: servres/trunk/conifer/middleware (from rev 17, servres/trunk/middleware)

Copied: servres/trunk/conifer/pybabel-extract (from rev 17, servres/trunk/pybabel-extract)
===================================================================
--- servres/trunk/conifer/pybabel-extract	                        (rev 0)
+++ servres/trunk/conifer/pybabel-extract	2008-11-17 03:12:41 UTC (rev 18)
@@ -0,0 +1,23 @@
+#!/usr/bin/python
+
+import os
+
+PROJECT = 'conifer-syrup'
+LOCALES = ['en_US', 'fr_CA']
+
+# extraction
+
+os.system('pybabel extract -F babel.cfg -o locale/%(PROJECT)s.pot .' % vars())
+
+for locale in LOCALES:
+    fn = 'locale/%(locale)s/LC_MESSAGES/%(PROJECT)s.po' % vars()
+    if not os.path.isfile(fn):
+        os.system('pybabel init -D %(PROJECT)s -i locale/%(PROJECT)s.pot -d locale -l %(locale)s' % vars())
+
+# do the update
+
+os.system('pybabel update -D %(PROJECT)s -i locale/%(PROJECT)s.pot -d locale' % vars())
+
+# compile to .mo
+
+os.system('pybabel compile -D %(PROJECT)s -d locale' % vars())

Copied: servres/trunk/conifer/settings.py (from rev 17, servres/trunk/settings.py)
===================================================================
--- servres/trunk/conifer/settings.py	                        (rev 0)
+++ servres/trunk/conifer/settings.py	2008-11-17 03:12:41 UTC (rev 18)
@@ -0,0 +1,89 @@
+# Django settings for conifer project.
+
+# make sure you have a local_settings.py file! Copy from
+# local_settings.py.in and customize that file.
+
+from local_settings import X_BASE_DIRECTORY
+
+DEBUG = True
+TEMPLATE_DEBUG = DEBUG
+
+ADMINS = (
+    # ('Your Name', 'your_email at domain.com'),
+)
+
+MANAGERS = ADMINS
+
+DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+DATABASE_NAME = X_BASE_DIRECTORY +'syrup.sqlite' # Or path to database file if using sqlite3.
+DATABASE_USER = ''             # Not used with sqlite3.
+DATABASE_PASSWORD = ''         # Not used with sqlite3.
+DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
+DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
+
+# Local time zone for this installation. Choices can be found here:
+# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
+# although not all choices may be available on all operating systems.
+# If running in a Windows environment this must be set to the same as your
+# system time zone.
+TIME_ZONE = 'America/Detroit'
+
+# Language code for this installation. All choices can be found here:
+# http://www.i18nguy.com/unicode/language-identifiers.html
+LANGUAGE_CODE = 'en_US'
+
+SITE_ID = 1
+
+# If you set this to False, Django will make some optimizations so as not
+# to load the internationalization machinery.
+USE_I18N = True
+
+# Absolute path to the directory that holds media.
+# Example: "/home/media/media.lawrence.com/"
+MEDIA_ROOT = X_BASE_DIRECTORY + 'static'
+
+# URL that handles the media served from MEDIA_ROOT. Make sure to use a
+# trailing slash if there is a path component (optional in other cases).
+# Examples: "http://media.lawrence.com", "http://example.com/media/"
+MEDIA_URL = ''
+
+# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
+# trailing slash.
+# Examples: "http://foo.com/media/", "/media/".
+ADMIN_MEDIA_PREFIX = '/media/'
+
+# Make this unique, and don't share it with anybody.
+SECRET_KEY = 'j$dnxqbi3iih+(@il3m at vv(tuvt2+yu2r-$dxs$s7=iqjz_s!&'
+
+# List of callables that know how to import templates from various sources.
+TEMPLATE_LOADERS = (
+    'django.template.loaders.filesystem.load_template_source',
+    'django.template.loaders.app_directories.load_template_source',
+#     'django.template.loaders.eggs.load_template_source',
+)
+
+MIDDLEWARE_CLASSES = (
+    'django.middleware.common.CommonMiddleware',
+    'django.contrib.sessions.middleware.SessionMiddleware',
+    'django.contrib.auth.middleware.AuthenticationMiddleware',
+    'conifer.middleware.genshi_locals.ThreadLocals',
+)
+
+ROOT_URLCONF = 'conifer.urls'
+
+TEMPLATE_DIRS = (
+    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
+    # Always use forward slashes, even on Windows.
+    # Don't forget to use absolute paths, not relative paths.
+)
+
+INSTALLED_APPS = (
+    'django.contrib.auth',
+    'django.contrib.contenttypes',
+    'django.contrib.sessions',
+    'django.contrib.sites',
+    'django.contrib.admin',
+    'conifer.syrup',
+)
+
+AUTH_PROFILE_MODULE = 'syrup.UserProfile'

Copied: servres/trunk/conifer/static (from rev 17, servres/trunk/static)

Copied: servres/trunk/conifer/syrup (from rev 17, servres/trunk/syrup)

Copied: servres/trunk/conifer/templates (from rev 17, servres/trunk/templates)

Copied: servres/trunk/conifer/urls.py (from rev 17, servres/trunk/urls.py)
===================================================================
--- servres/trunk/conifer/urls.py	                        (rev 0)
+++ servres/trunk/conifer/urls.py	2008-11-17 03:12:41 UTC (rev 18)
@@ -0,0 +1,22 @@
+from django.conf.urls.defaults import *
+from django.conf import settings
+
+# Uncomment the next two lines to enable the admin:
+from django.contrib import admin
+admin.autodiscover()
+
+urlpatterns = patterns('',
+    # Example:
+    # (r'^conifer/', include('conifer.foo.urls')),
+
+    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
+    # to INSTALLED_APPS to enable admin documentation:
+    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
+
+    # Uncomment the next line to enable the admin:
+    (r'^admin/(.*)', admin.site.root),
+    (r'^syrup/', include('conifer.syrup.urls')),
+    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
+        {'document_root': settings.MEDIA_ROOT}),
+    (r'^accounts/(?P<path>.*)$', 'conifer.syrup.views.auth_handler'),
+)

Deleted: servres/trunk/genshi_support.py
===================================================================
--- servres/trunk/genshi_support.py	2008-11-17 03:00:59 UTC (rev 17)
+++ servres/trunk/genshi_support.py	2008-11-17 03:12:41 UTC (rev 18)
@@ -1,36 +0,0 @@
-from django.http import HttpResponse, HttpRequest
-from genshi.template import TemplateLoader
-from genshi.filters import Translator
-from genshi.builder import tag
-import genshi.output
-from django.conf import settings
-from conifer.syrup import models # fixme, tight binding
-import gettext
-from conifer.middleware.genshi_locals import get_request
-
-translations = gettext.GNUTranslations(file('locale/%s/LC_MESSAGES/conifer-syrup.mo' % settings.LANGUAGE_CODE))
-
-_ = translations.ugettext
-
-def template_loaded(template):
-    template.filters.insert(0, Translator(translations.ugettext))
-
-dirs = ['templates']
-
-loader = TemplateLoader(dirs, auto_reload=True, callback=template_loaded)
-
-def template(tname):
-    return loader.load(tname)
-           
-def render(tname, **kwargs):
-    request = get_request()
-    _inject_django_things_into_namespace(request, kwargs)
-    return HttpResponse(template(tname).generate(**kwargs).render('xhtml'))
-
-def _inject_django_things_into_namespace(request, ns):
-    ns['_'] = _
-    ns['models'] = models
-    ns['request'] = request
-    ns['user'] = getattr(request, 'user', None)
-
-

Deleted: servres/trunk/local_settings.py.in
===================================================================
--- servres/trunk/local_settings.py.in	2008-11-17 03:00:59 UTC (rev 17)
+++ servres/trunk/local_settings.py.in	2008-11-17 03:12:41 UTC (rev 18)
@@ -1,2 +0,0 @@
-# set X_BASE_DIRECTORY to the the name of the directory this file is in!
-X_BASE_DIRECTORY = '/home/graham/projects/evergreen/conifer/'

Deleted: servres/trunk/manage.py
===================================================================
--- servres/trunk/manage.py	2008-11-17 03:00:59 UTC (rev 17)
+++ servres/trunk/manage.py	2008-11-17 03:12:41 UTC (rev 18)
@@ -1,11 +0,0 @@
-#!/usr/bin/env python
-from django.core.management import execute_manager
-try:
-    import settings # Assumed to be in the same directory.
-except ImportError:
-    import sys
-    sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
-    sys.exit(1)
-
-if __name__ == "__main__":
-    execute_manager(settings)

Deleted: servres/trunk/pybabel-extract
===================================================================
--- servres/trunk/pybabel-extract	2008-11-17 03:00:59 UTC (rev 17)
+++ servres/trunk/pybabel-extract	2008-11-17 03:12:41 UTC (rev 18)
@@ -1,23 +0,0 @@
-#!/usr/bin/python
-
-import os
-
-PROJECT = 'conifer-syrup'
-LOCALES = ['en_US', 'fr_CA']
-
-# extraction
-
-os.system('pybabel extract -F babel.cfg -o locale/%(PROJECT)s.pot .' % vars())
-
-for locale in LOCALES:
-    fn = 'locale/%(locale)s/LC_MESSAGES/%(PROJECT)s.po' % vars()
-    if not os.path.isfile(fn):
-        os.system('pybabel init -D %(PROJECT)s -i locale/%(PROJECT)s.pot -d locale -l %(locale)s' % vars())
-
-# do the update
-
-os.system('pybabel update -D %(PROJECT)s -i locale/%(PROJECT)s.pot -d locale' % vars())
-
-# compile to .mo
-
-os.system('pybabel compile -D %(PROJECT)s -d locale' % vars())

Deleted: servres/trunk/settings.py
===================================================================
--- servres/trunk/settings.py	2008-11-17 03:00:59 UTC (rev 17)
+++ servres/trunk/settings.py	2008-11-17 03:12:41 UTC (rev 18)
@@ -1,89 +0,0 @@
-# Django settings for conifer project.
-
-# make sure you have a local_settings.py file! Copy from
-# local_settings.py.in and customize that file.
-
-from local_settings import X_BASE_DIRECTORY
-
-DEBUG = True
-TEMPLATE_DEBUG = DEBUG
-
-ADMINS = (
-    # ('Your Name', 'your_email at domain.com'),
-)
-
-MANAGERS = ADMINS
-
-DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-DATABASE_NAME = X_BASE_DIRECTORY +'syrup.sqlite' # Or path to database file if using sqlite3.
-DATABASE_USER = ''             # Not used with sqlite3.
-DATABASE_PASSWORD = ''         # Not used with sqlite3.
-DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
-DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
-
-# Local time zone for this installation. Choices can be found here:
-# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
-# although not all choices may be available on all operating systems.
-# If running in a Windows environment this must be set to the same as your
-# system time zone.
-TIME_ZONE = 'America/Detroit'
-
-# Language code for this installation. All choices can be found here:
-# http://www.i18nguy.com/unicode/language-identifiers.html
-LANGUAGE_CODE = 'en_US'
-
-SITE_ID = 1
-
-# If you set this to False, Django will make some optimizations so as not
-# to load the internationalization machinery.
-USE_I18N = True
-
-# Absolute path to the directory that holds media.
-# Example: "/home/media/media.lawrence.com/"
-MEDIA_ROOT = X_BASE_DIRECTORY + 'static'
-
-# URL that handles the media served from MEDIA_ROOT. Make sure to use a
-# trailing slash if there is a path component (optional in other cases).
-# Examples: "http://media.lawrence.com", "http://example.com/media/"
-MEDIA_URL = ''
-
-# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
-# trailing slash.
-# Examples: "http://foo.com/media/", "/media/".
-ADMIN_MEDIA_PREFIX = '/media/'
-
-# Make this unique, and don't share it with anybody.
-SECRET_KEY = 'j$dnxqbi3iih+(@il3m at vv(tuvt2+yu2r-$dxs$s7=iqjz_s!&'
-
-# List of callables that know how to import templates from various sources.
-TEMPLATE_LOADERS = (
-    'django.template.loaders.filesystem.load_template_source',
-    'django.template.loaders.app_directories.load_template_source',
-#     'django.template.loaders.eggs.load_template_source',
-)
-
-MIDDLEWARE_CLASSES = (
-    'django.middleware.common.CommonMiddleware',
-    'django.contrib.sessions.middleware.SessionMiddleware',
-    'django.contrib.auth.middleware.AuthenticationMiddleware',
-    'conifer.middleware.genshi_locals.ThreadLocals',
-)
-
-ROOT_URLCONF = 'conifer.urls'
-
-TEMPLATE_DIRS = (
-    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
-    # Always use forward slashes, even on Windows.
-    # Don't forget to use absolute paths, not relative paths.
-)
-
-INSTALLED_APPS = (
-    'django.contrib.auth',
-    'django.contrib.contenttypes',
-    'django.contrib.sessions',
-    'django.contrib.sites',
-    'django.contrib.admin',
-    'conifer.syrup',
-)
-
-AUTH_PROFILE_MODULE = 'syrup.UserProfile'

Deleted: servres/trunk/urls.py
===================================================================
--- servres/trunk/urls.py	2008-11-17 03:00:59 UTC (rev 17)
+++ servres/trunk/urls.py	2008-11-17 03:12:41 UTC (rev 18)
@@ -1,22 +0,0 @@
-from django.conf.urls.defaults import *
-from django.conf import settings
-
-# Uncomment the next two lines to enable the admin:
-from django.contrib import admin
-admin.autodiscover()
-
-urlpatterns = patterns('',
-    # Example:
-    # (r'^conifer/', include('conifer.foo.urls')),
-
-    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
-    # to INSTALLED_APPS to enable admin documentation:
-    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
-
-    # Uncomment the next line to enable the admin:
-    (r'^admin/(.*)', admin.site.root),
-    (r'^syrup/', include('conifer.syrup.urls')),
-    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
-        {'document_root': settings.MEDIA_ROOT}),
-    (r'^accounts/(?P<path>.*)$', 'conifer.syrup.views.auth_handler'),
-)



More information about the open-ils-commits mailing list