Skip to main content

Django user profiles management app

Project description

https://badge.fury.io/py/django-sso-app.svg https://travis-ci.org/paiuolo/django-sso-app.svg?branch=master https://codecov.io/gh/paiuolo/django-sso-app/branch/master/graph/badge.svg

Django user profiles management app

Documentation

The full documentation is at https://django-sso-app.readthedocs.io.

Quickstart

Install Django SSO App:

pip install django-sso-app

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...

    'django.contrib.sites',

    'rest_framework',
    'rest_framework.authtoken',

    'django_sso_app',

    'allauth',
    'allauth.account',
    'allauth.socialaccount',

    'django_countries',
    'django_filters',

    'treebeard',

    ...
)

Setup settings.py:

MIDDLEWARE = [
    ...

    'django.contrib.auth.middleware.AuthenticationMiddleware',  # required by django-sso-app
    'django_sso_app.core.authentication.middleware.DjangoSsoAppAuthenticationMiddleware',  # django-sso-app

    ...
]

...

LOGIN_URL = '/login/'
LOGIN_REDIRECT_URL = '/'

SITE_ID = 1

Add Django SSO App’s URL patterns:

from django.utils import timezone
from django.views.i18n import JavaScriptCatalog
from django.views.decorators.http import last_modified

from django_sso_app.urls import (urlpatterns as django_sso_app__urlpatterns,
                                 api_urlpatterns as django_sso_app__api_urlpatterns,
                                 i18n_urlpatterns as django_sso_app_i18n_urlpatterns)


last_modified_date = timezone.now()
js_info_dict = {}

urlpatterns = [
    ...

    url(r'^jsi18n/$', last_modified(lambda req, **kw: last_modified_date)(JavaScriptCatalog.as_view()), js_info_dict,
    name='javascript-catalog'),

    ...
]

urlpatterns += django_sso_app__urlpatterns
urlpatterns += django_sso_app__api_urlpatterns
urlpatterns += django_sso_app_i18n_urlpatterns

Features

  • TODO

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Development commands

pip install -r requirements_dev.txt
invoke -l

Credits

Tools used in rendering this package:

History

0.12.0 (2021-10-11)

  • Minor release on PyPI.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

django-sso-app-0.12.0.tar.gz (162.8 kB view hashes)

Uploaded Source

Built Distribution

django_sso_app-0.12.0-py2.py3-none-any.whl (200.6 kB view hashes)

Uploaded Python 2 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