Skip to content
The Binder (common) application of the Generic Intranet
Python HTML JavaScript CSS
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
fixtures
management
static/binder
templates
templatetags
.gitignore
README.md
__init__.py
admin.py
auth_ldap.py
auth_local.py
configurable.py
context.py
main_menu.py
modelfields.py
models.py
ordered_set.py
password.py
search_indexes.py
test_utils.py
testing.py
tests.py
urls.py
views.py
widgets.py

README.md

Intranet Binder Application

This is the application that "binds" the Intranet together. Other Intranet modules may only depend on this application. It contains the main menu, a default theme, and adds a global variable for use in templates.

Installation

Check out or unpack the source code into a directory called binder inside your Django project. So you should have binder/urls.py, etc.

Import the Binder URLs from binder/urls.py into your project-wide urls.py, or copy and change them:

import binder.urls
...
urlpatterns = patterns('',
    url(r'', include(binder.urls)),
    ...

Edit your settings.py and add binder to INSTALLED_APPS.

Edit your settings.py and add the following lines, or if you already have a TEMPLATE_CONTEXT_PROCESSORS setting, add binder.context.intranet_global to it. This adds the global object to your templates.

TEMPLATE_CONTEXT_PROCESSORS = \
    list(global_settings.TEMPLATE_CONTEXT_PROCESSORS) + \
    [
        'binder.context.additions',
        'search.context.additions',
    ]

If you want to switch your user class from User to IntranetUser, add the following line to settings.py:

AUTHENTICATION_BACKENDS = ('binder.auth.IntranetUserBackend',)
Something went wrong with that request. Please try again.