|
HowToInstall
How to install the account application
IntroductionThe account application is set up as described in: http://code.djangoproject.com/wiki/BestPracticesToWorkWith3rdPartyAppsAndMakingYoursPortable The following steps assume you put the 'account' module in the directory 'c:\web\shared\'. If you use another directory, just substitute. Steps:
svn checkout http://django-accounts.googlecode.com/svn/trunk/ #'django.contrib.sessions.middleware.SessionMiddleware', DEVELOPMENT = True
if DEVELOPMENT:
import sys
sys.path.append('C:/web/shared') # Use your actual directory
)
PERSISTENT_SESSION_KEY = 'sessionpersistent'
SESSION_COOKIE_AGE = 120960
MIDDLEWARE_CLASSES = (
... < other middleware >...
'account.middleware.DualSessionMiddleware',
'account.middleware.AccountBasedAuthentication',
)
TEMPLATE_CONTEXT_PROCESSORS = (
... < other processors >...
"account.middleware.add_account_to_context",
)
INSTALLED_APPS = (
... < other apps >...
'account',
)
TEMPLATE_DIRS = (
... < other dirs >...
"C:/web/shared/account/templates", # Use your actual directory
)
(r'^person/', include('account.person_urls')), |
Sign in to add a comment
s/setup.py/settings.py/