Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    django-dnd 0.1.2

    Download button

    No screenshots available
    Downloads: 179  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Pete Gadomski | More programs
    Other/Proprietary Li... / FREE
    May 3rd, 2011, 01:06 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-dnd description

    Django auth backend for populating user data using the Dartmouth Name Directory

    django-dnd is a Django app for authenticating users against the Dartmouth Name Directory. django-dnd uses django cas for authentication, and will automatically fetch first name, last name, and blitz from the DND (Dartmouth Name Directory) and populate the auth.User.

    Installation:

    To get the latest release:

    pip install django-dnd

    To get the bleeding edge:

    pip install -e hg+https://bitbucket.org/quentonc/django-dnd

    Add the django_cas middleware and django_dnd authentication backends to your settings, and make sure you have the AuthenticationMiddleware as well. Here's what mine looks like:

    MIDDLEWARE_CLASSES = (
     'django.middleware.common.CommonMiddleware',
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.middleware.csrf.CsrfViewMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django.contrib.messages.middleware.MessageMiddleware',
     'django_cas.middleware.DNDMiddleware',
    )

    AUTHENTICATION_BACKENDS = (
     'django.contrib.auth.backends.ModelBackend',
     'django_dnd.backends.DNDBackend',
    )


    Add django_dnd to your installed apps:

    INSTALLED_APPS = (
     'django.contrib.auth',
     'django.contrib.contenttypes',
     'django.contrib.sessions',
     'django.contrib.sites',
     'django.contrib.messages',
     'django.contrib.staticfiles',
     'django_dnd',
    )


    Run syndb to install the DND model.

    There are no required settings for django-dnd. Optional settings include:

    - DND_SERVER: The URL of your dnd server. This is defaults to dnd.dartmouth.edu
    - DND_DB_TABLE: The db_table for dnd.DND. Default is dartmouth_dnd
    - CAS_SERVER_URL: The base URL of our CAS source. Default is https://login.dartmouth.edu/cas/

    Other optional settings are defined by django cas.

    Make sure your project knows how to log users in and out by adding these to your URL mappings:

    (r'^accounts/login/$', 'django_cas.views.login'),
    (r'^accounts/logout/$', 'django_cas.views.logout'),


    Users should now be able to log into your site (and staff into the administration interface) using CAS.

    Additional configuration

    For additional options for hooking CAS into your app, follow the instructions on the django cas page.


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    Django auth | authentication backend | Django | auth | backend

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM