Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Basic features used in all PSU Django apps

Project description


Reusable Django app specifically for PSU's custom-built web applications.
It encapsulates the common functionality that we would otherwise need to program into each application we build. Features include:

  • PSU Single Sign-On (SSO)
  • Authentication and authorization features
  • Feature toggles
  • Template tags for our static content server

Quick Start


The following dependencies may be REQUIRED in your system:

  • libpq-dev
    sudo apt install libpq-dev


pip install psu-base

Configuring Your App

  1. Add PSU-Base and its two required apps to INSTALLED_APPS in

  2. Copy docs/ to your app, name it and update the values as needed.

  3. Copy docs/ to your app, name it and update the values as needed.

  4. Import your app and local settings files at the end of your file:

    # Get app-specific settings
    from .app_settings import *

    # Override settings with values for the local environment
    from .local_settings import *
  1. Run python migrate to create the PSU-Base models in your development database

  2. Configure your app's top-level to include PSU URLs

    # my_app/
    from django.conf import settings
    from django.conf.urls import url
    from django.urls import path, include
    urlpatterns = [
        # PSU and CAS views are defined in psu_base app
        url(settings.URL_CONTEXT+'/psu/', include(('psu_base.urls', 'psu_base'), namespace='psu')),
        url(settings.URL_CONTEXT+'/accounts/', include(('psu_base.urls', 'psu_base'), namespace='cas')),


Usage of the psu-base app is documented in Confluence.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for psu-base, version 0.2.3
Filename, size File type Python version Upload date Hashes
Filename, size psu_base-0.2.3-py2.py3-none-any.whl (175.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size psu-base-0.2.3.tar.gz (114.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page