Skip to main content

A simple Django app to switch between users without authentication.

Project description

Django Easy Login is a Django app that allows end-users to login with already created users at the system without authentication.

Quick start

  1. Add ‘easy_login’ to your INSTALLED_APPS settings:

INSTALLED_APPS = [
...
'easy_login',
...
]
  1. Now edit the example/urls.py module in your project:

urlpatterns = [
...
url(r'^easy_login/', include('easy_login.urls', namespace='easy-login')),
...
]
  1. Set middleware class:

TEMPLATES = [
    ...
    'context_processors': [
        'easy_login.context_processors.easy_login',
    ...
    ],
]
  1. Define default url redirect:

EASY_URL_REDIRECT = 'test-app:index'
  1. In template define easy_login variable:

{{ easy_login }}

Project details


Download files

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

Source Distribution

django-easy-login-0.1.dev2.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

django_easy_login-0.1.dev2-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page