Django PAM Documentation

Size: px
Start display at page:

Download "Django PAM Documentation"

Transcription

1 Django PAM Documentation Release Carl J. Nobile Aug 01, 2018

2

3 Contents 1 Contents Installation Configuration Overview Testing Django PAM Indices and Tables 15 Python Module Index 17 i

4 ii

5 This is a simple authentication backend that uses the python-pam package. Django PAM can be used in an SSO (Single Sign On) environment or just with a single box where you want to log into a Django app with your UNIX login. Contents 1

6 2 Contents

7 CHAPTER 1 Contents 1.1 Installation The easiest way to install the Django PAM package is with pip: $ pip install django-pam You can also install with GitHub. This is useful if you need to see Django PAM running in a real environment: $ git clone Note: Be aware that the pip requirements in the GitHub repository are not frozen. This may cause Django PAM to break if dependencies are used that are much newer than what I used. If this happens, please put an issue in my GitHub account to let me know. 1.2 Configuration Installing the Backend Authenticator You will need to add Django PAM to your INSTALLED_APPS: INSTALLED_APPS = [... 'django_pam', ] Next you will need to add the Django PAM backend to the AUTHENTICATION_BACKENDS: 3

8 AUTHENTICATION_BACKENDS = [ 'django_pam.auth.backends.pambackend', 'django.contrib.auth.backends.modelbackend', ] Note: 1. The user that runs the application needs to be a member of the /etc/shadow file group, this is usually the web server user. This is necessary so the web server can authenticate other users. To do this run the command below with the proper user. $ sudo usermod -a -G shadow <user> 2. If you use your UNIX account username you will be logged in through the PAMBackend backend. If you use the Django username you will be logged in through the ModelBackend, assuming both usernames and passwords are not the same Using the Django PAM Login and Logout Templates Use as is with Django PAM CSS Add the statement below to urlpatterns in your urls.py file: re_path(r'^django-pam/', include('django_pam.urls')), Then put the HTML below in your template: {% load staticfiles %} <a href="{% url 'django-pam:login' %}">Login</a> <a href="{% url 'django-pam:logout' %}?next={{ next }}">Logout</a> Use Modified CSS Add the statements below to urlpatterns in your urls.py file: re_path(r'^login/$', LoginView.as_view(template_name='<your template dir>/login.html '), name='login'), re_path(r"^logout/(?p<next>[\w\-\:/]+)?$", LogoutView.as_view( template_name='<your template dir>/logout.html'), name='logout'), Create login.html and logout.html templates. Login: {% extends "your_base.html" %} {% load staticfiles %} {% block script %} {{ form.media }} <link rel="stylesheet" href="{% static '<your css file>' %}"> {% endblock %} {% block content %}{% include "django_pam/accounts/_login.html" %}{% endblock %} The stanza above includes the Django PAM CSS and JavaScript code through the form. Then your overriding CSS is included. The JavaScript code, that s included from the form, is not dependent on any toolkit. 4 Chapter 1. Contents

9 Logout: {% extends "your_base.html" %} {% load staticfiles %} {% block script %} <link rel="stylesheet" href="{% static 'django_pam/css/auth.css' %}"> <link rel="stylesheet" href="{% static '<your css file>' %}"> {% endblock %} {% block content %}{% include "django_pam/accounts/_logout.html" %}{% endblock %} There is no form for logout so the CSS from Django PAM and your overriding CSS need to be included the normal way. Then use something like the HTML below in your HTML template: {% load staticfiles %} <a href="{% url 'login' %}">Login</a> <a href="{% url 'logout' %}?next={{ next }}">Logout</a> Using the Django PAM Login and Logout Modals Using the modals require a little more work, but it s still not to difficult. In your base.html head include: <link href=" type="text/css" media="all" rel="stylesheet" /> <link href="{% static 'django_pam/css/modal.css' %}" type="text/css" media="all" rel="stylesheet" /> <script src=" integrity="sha256-a23g1nt4dteyoj7br+vtu7+t8vp13humzfbjniyoejo=" crossorigin="anonymous"></script> <script src=" script> <script src="{% static 'django_pam/js/js.cookie min.js' %}"></script> <script src="{% static 'django_pam/js/inheritance.js' %}"></script> <script src="{% static 'django_pam/js/modal.js' %}"></script> At the bottom of your base.html template include this line just before the </html> tag: {% block modals %}{% endblock %} Then in the template that has your login html add at the bottom of the template: {% block modals %} <div id="modals"> {% include "django_pam/modals/login.html" %} {% include "django_pam/modals/logout.html" %} </div> <!-- div#modals --> {% endblock %} Note: The JavaScript for the modals is written in ES6 which is supported in most of the newer browsers. See: ECMAScript 6. Use Babel or Traceur if you wish to Transpile my JavaScript code Configuration 5

10 1.3 Overview Backend Authenticator PAMBackend.authenticate Authentication method 1 This method has two keyword arguments one for the username and the other for the password, both are manditory. There is a third argument used to pass in a dict of additional arguments that you may want stored in the database on the first login of the user. In order to use the additional arguments both the django.contrib.auth.authenticate function and either the django.contrib.auth.forms.authenticationform or the Django PAM django_pam.accounts.forms.authenticationform would need to be overridden, depending on which one you use. PAMBackend.get_user Returns the authenticated user 2 There is one positional argument that can be the pk, username, or . The would be used only if the is used instead of the username to identify the user Login and Logout Views LoginView 3 Usage: re_path(r'^login/$', LoginView.as_view( form_class=myauthenticationform, success_url='/my/success/url/', redirect_field_name='my-redirect-field-name', template_name='your_template.html' ), name='login'), This view is written to work with either a template POST or a XMLHttpRequest POST request. LogoutView 4 Usage: re_path(r'^logout/$', LogoutView.as_view( template_name='my_template.html', success_url='/my/success/url/), redirect_field_name='my-redirect-field-name' ), name='logout') This view is written to work with either a template POST or a XMLHttpRequest POST request. 1.4 Testing Since the user of the server that runs an application, that uses the backend provided by this package, needs to be a member of the UNIX shadow group, testing is a bit complicated. Because of this, this project is not able to run on 1 See source docs django_pam.auth.backends.pambackend.authenticate() 2 See source docs django_pam.auth.backends.pambackend.get_user() 3 See source docs django_pam.accounts.views.loginview 4 See source docs django_pam.accounts.views.logoutview 6 Chapter 1. Contents

11 Travis CI. However, setting up tests to run locally can be done by following the few steps Give Your User Account Shadow Privileges This assumes that it is your user account that the runserver is running in. If not, then use the account that is running the runserver. $ sudo usermod -a -G shadow <username> Create a guest User $ sudo useradd guest -m -s /bin/bash -d /home/guest $ sudo passwd guest You will need to logout of your account then log back in again, this means out of any GUI that you may be in. After logged back in tests will run correctly, however, you will need to enter the username and password multiple times. This will get old fast Creating a.django_pam File Create a.django_pam file in the same directory as manage.py. On separate lines put guest (the username), the password you chose for it, and then a fake address. With this file in-place the test will no longer prompt for the username and password and will run all the tests with no prompts. 1.5 Django PAM django_pam package django_pam.accounts package django_pam.accounts.tests package django_pam.accounts.tests.test_accounts_forms module class django_pam.accounts.tests.test_accounts_forms.testauthenticationform(name) Bases: django_pam.auth.tests.base_test.basedjangopam setup() Hook method for setting up the test fixture before exercising it. test_invalid_credentials() Test for invalid credentials. test_missing_credentials() Test for missing credentials Django PAM 7

12 test_user_created() Test that the form created a user. Form constructor signature: init (self, request=none, *args, **kwargs) django_pam.accounts.tests.test_accounts_views module class django_pam.accounts.tests.test_accounts_views.testloginview(name) Bases: django_pam.auth.tests.base_test.basedjangopam setup() Hook method for setting up the test fixture before exercising it. test_get_login_screen() Test that the login screen returns properly. test_post_login_ajax_invalid() Test that an invalid AJAX login returns a redirect properly. test_post_login_ajax_valid() Test that a valid AJAX login returns a redirect properly. test_post_login_form_invalid() Test that an invalid form login returns a redirect properly. test_post_login_form_invalid_redirection() Test that redirection will not take you off site. test_post_login_form_valid() Test that a valid form login returns a redirect properly. class django_pam.accounts.tests.test_accounts_views.testlogoutview(name) Bases: django_pam.auth.tests.base_test.basedjangopam setup() Hook method for setting up the test fixture before exercising it. test_get_logout_screen() Test that the logout screen returns properly. test_post_logout_ajax() Test that a valid ajax logout returns properly. test_post_logout_form() Test that a valid form logout returns a redirect properly. test_post_logout_form_invalid() Test that if the success_url is not set an exception is raised. django_pam.accounts.forms module Django PAM forms. class django_pam.accounts.forms.authenticationform(request=none, *args, **kwargs) Bases: django.contrib.auth.forms.authenticationform Authentication form 8 Chapter 1. Contents

13 class Media Bases: object css = {'all': ('django_pam/css/auth.css',)} js = ('django_pam/js/auth.js',) base_fields = {' ': clean() Does the authentication and saves the if exists. declared_fields = {' ': media <django.forms.fields. field object at 0x7fa490a90470>, 'pa <django.forms.fields. field object at 0x7fa490a90470>, django_pam.accounts.urls module Django PAM accounta/urls.py django_pam.accounts.view_mixins module Dynamic Column view mixins. class django_pam.accounts.view_mixins.ajaxableresponsemixin Bases: object Mixin to add AJAX support to a form. Must be used with an object-based FormView (e.g. CreateView) form_invalid(form) Renders the invalid form error description. See Django s form_invalid. If the request is an AJAX request return this data as a JSON string. Parameters form (Django's form object.) The Django form object. Return type Result from Django s form_valid or a JSON string. form_valid(form) Renders the valid data. See Django s form_valid. If the request is an AJAX request return this data as a JSON string. Parameters form (Django's form object.) The Django form object. Return type Result from Django s form_valid or a JSON string. get_data(**context) Returns an object that will be serialized as JSON by json.dumps(). Parameters context (dict) Context added to the JSON response. Return type dict Updated context class django_pam.accounts.view_mixins.jsonresponsemixin Bases: object A mixin that can be used to render a JSON response. get_data(**context) Returns an object that will be serialized as JSON by json.dumps(). Parameters context (dict) Context added to the JSON response. Return type dict Updated context 1.5. Django PAM 9

14 render_to_json_response(context, **response_kwargs) Returns a JSON response, transforming context to make the payload. Parameters context (See Django Context.) The template rendering context. response_kwargs Response keywords arguments. Return type See Django response_class. django_pam.accounts.views module Django PAM views.py class django_pam.accounts.views.loginview(**kwargs) Bases: django_pam.accounts.view_mixins.ajaxableresponsemixin, django.views. generic.edit.formview A class version of django.contrib.auth.views.login. Usage: re_path(r'^login/$', LoginView.as_view( form_class=myauthenticationform, success_url='/my/success/url/', redirect_field_name='my-redirect-field-name', template_name='your_template.html' ), name='login'), dispatch(request, *args, **kwargs) Dispatches the request to the correct HTTP handler method. Parameters request The Django request object. args Positional arguments. kwargs Keyword arguments. Return type The proper handler. form_class alias of django_pam.accounts.forms.authenticationform form_valid(form) The user has provided valid credentials (this was checked in the form s is_valid() method). Parameters form (Django Form) A Django form object. Return type Result of AjaxableResponseMixin.form_valid. get_context_data(**context) Get any extra context for GET methods. Parameters context (dict) Context for GET methods. Return type dict get_data(**context) Add to the JSON context. Parameters context (dict) A json response context. 10 Chapter 1. Contents

15 Return type dict get_form_kwargs() Incoming AJAX data structure from an HTML <form> tag: [{'name': 'username', 'value': '<username>'}, {'name': 'password', 'value': '<password>'}, {'name': 'next', 'value': '<redirect URI>'} ] Return type dict get_success_url() Returns a url used for redirection. Return type str redirect_field_name = 'next' success_url = '' template_name = 'django_pam/accounts/login.html' class django_pam.accounts.views.logoutview(**kwargs) Bases: django_pam.accounts.view_mixins.jsonresponsemixin, django.views. generic.base.templateview A class version of django.contrib.auth.views.logout. Usage: re_path(r'^logout/$', LogoutView.as_view( template_name='my_template.html', success_url='/my/success/url/), redirect_field_name='my-redirect-field-name' ), name='logout') get(request, *args, **kwargs) A GET method handler. Parameters request The Django request object. args Positional arguments. kwargs (dict) Keyword arguments. Return type A response object. get_context_data(**kwargs) Add to the template context. Parameters kwargs (dict) Keyword arguments. Return type dict get_data(**context) Add to the JSON context. Parameters context (dict) A json response context. Return type dict 1.5. Django PAM 11

16 get_success_url() Returns the supplied success URL. Return type str post(request, *args, **kwargs) A POST method handler. Note: Incoming AJAX data structure from an HTML <form> tag: [{'name': 'next', 'value': '<redirect URI>'}] Parameters request The Django request object. args Positional arguments. kwargs (dict) Keyword arguments. Return type A response object. redirect_field_name = 'next' success_url = '/accounts/login/' template_name = 'django_pam/accounts/logout.html' django_pam.auth package django_pam.auth.tests package django_pam.auth.tests.base_test module class django_pam.auth.tests.base_test.basedjangopam(name) Bases: django.test.testcases.testcase django_pam.auth.tests.test_auth_backends module class django_pam.auth.tests.test_auth_backends.testpambackend(name) Bases: django_pam.auth.tests.base_test.basedjangopam setup() Hook method for setting up the test fixture before exercising it. test_authenticate_fail() Test that authenticate fails with invalid credentials. test_authenticate_pass() Test that authenticate method works properly. test_get_user_invalid() Test that an invalid user returns a None object. test_get_user_valid() Test that the PAMBackend.authenticate() method works properly. 12 Chapter 1. Contents

17 django_pam.auth.backends module Django PAM backend. class django_pam.auth.backends.pambackend Bases: django.contrib.auth.backends.modelbackend An implementation of a PAM backend authentication module. authenticate(username=none, password=none, **extra_fields) Authenticate using PAM then get the account if it exists else create a new account. Parameters username (str) The users username. This is a manditory field. password (str) The users password. This is a manditory field. extra_fields (dict) Additonal keyword options of any editable field in the user model or arguments in the PAM authenticate method. Return type The Django user object. get_user(user_data) Get the user by either the username, , or the pk. Parameters user_data The username, or pk. Return type A Django user object. django_pam.urls module Django PAM urls.py 1.5. Django PAM 13

18 14 Chapter 1. Contents

19 CHAPTER 2 Indices and Tables genindex modindex search 15

20 16 Chapter 2. Indices and Tables

21 Python Module Index d django_pam, 13 django_pam.accounts, 12 django_pam.accounts.forms, 8 django_pam.accounts.tests, 8 django_pam.accounts.tests.test_accounts_forms, 7 django_pam.accounts.tests.test_accounts_views, 8 django_pam.accounts.urls, 9 django_pam.accounts.view_mixins, 9 django_pam.accounts.views, 10 django_pam.auth, 13 django_pam.auth.backends, 13 django_pam.auth.tests, 12 django_pam.auth.tests.base_test, 12 django_pam.auth.tests.test_auth_backends, 12 django_pam.urls, 13 17

22 18 Python Module Index

23 Index A AjaxableResponseMixin (class in django_pam.accounts.view_mixins), 9 authenticate() (django_pam.auth.backends.pambackend method), 13 AuthenticationForm (class in django_pam.accounts.forms), 8 AuthenticationForm.Media (class in django_pam.accounts.forms), 8 C clean() (django_pam.accounts.forms.authenticationform method), 9 css (django_pam.accounts.forms.authenticationform.media D attribute), 9 get_data() (django_pam.accounts.view_mixins.ajaxableresponsemixin declared_fields (django_pam.accounts.forms.authenticationform method), 9 attribute), 9 get_data() (django_pam.accounts.view_mixins.jsonresponsemixin dispatch() (django_pam.accounts.views.loginview method), 9 method), 10 get_data() (django_pam.accounts.views.loginview django_pam (module), 13 method), 10 django_pam.accounts (module), 12 get_data() (django_pam.accounts.views.logoutview django_pam.accounts.forms (module), 8 django_pam.accounts.tests (module), 8 django_pam.accounts.tests.test_accounts_forms (mod- (mod- ule), 7 django_pam.accounts.tests.test_accounts_views ule), 8 django_pam.accounts.urls (module), 9 django_pam.accounts.view_mixins (module), 9 django_pam.accounts.views (module), 10 django_pam.auth (module), 13 django_pam.auth.backends (module), 13 django_pam.auth.tests (module), 12 django_pam.auth.tests.base_test (module), 12 django_pam.auth.tests.test_auth_backends (module), 12 django_pam.urls (module), 13 F form_class (django_pam.accounts.views.loginview attribute), 10 form_invalid() (django_pam.accounts.view_mixins.ajaxableresponsemixin B method), 9 base_fields (django_pam.accounts.forms.authenticationformform_valid() (django_pam.accounts.view_mixins.ajaxableresponsemixin attribute), 9 method), 9 BaseDjangoPAM (class in form_valid() (django_pam.accounts.views.loginview django_pam.auth.tests.base_test), 12 method), 10 G get() (django_pam.accounts.views.logoutview method), 11 get_context_data() (django_pam.accounts.views.loginview method), 10 get_context_data() (django_pam.accounts.views.logoutview method), 11 method), 11 get_form_kwargs() (django_pam.accounts.views.loginview method), 11 get_success_url() (django_pam.accounts.views.loginview method), 11 get_success_url() (django_pam.accounts.views.logoutview method), 11 get_user() (django_pam.auth.backends.pambackend method), 13 19

24 J js (django_pam.accounts.forms.authenticationform.media attribute), 9 JSONResponseMixin (class in django_pam.accounts.view_mixins), 9 L LoginView (class in django_pam.accounts.views), 10 LogoutView (class in django_pam.accounts.views), 11 M media (django_pam.accounts.forms.authenticationform attribute), 9 P PAMBackend (class in django_pam.auth.backends), 13 post() (django_pam.accounts.views.logoutview method), 12 R method), 8 redirect_field_name (django_pam.accounts.views.loginviewtest_post_login_form_invalid_redirection() attribute), 11 redirect_field_name (django_pam.accounts.views.logoutview attribute), 12 test_post_login_form_valid() render_to_json_response() (django_pam.accounts.view_mixins.jsonresponsemixin method), 9 S test_post_logout_form() (django_pam.accounts.tests.test_accounts_views.te setup() (django_pam.accounts.tests.test_accounts_forms.testauthenticationform method), 8 method), 7 test_post_logout_form_invalid() setup() (django_pam.accounts.tests.test_accounts_views.testloginview (django_pam.accounts.tests.test_accounts_views.testlogoutview method), 8 method), 8 setup() (django_pam.accounts.tests.test_accounts_views.testlogoutview test_user_created() (django_pam.accounts.tests.test_accounts_forms.testau method), 8 method), 7 setup() (django_pam.auth.tests.test_auth_backends.testpambackend TestAuthenticationForm method), 12 success_url (django_pam.accounts.views.loginview attribute), 11 success_url (django_pam.accounts.views.logoutview attribute), 12 (class in T template_name (django_pam.accounts.views.loginview attribute), 11 template_name (django_pam.accounts.views.logoutview attribute), 12 test_authenticate_fail() (django_pam.auth.tests.test_auth_backends.testpambackend method), 12 test_authenticate_pass() (django_pam.auth.tests.test_auth_backends.testpambackend method), 12 test_get_login_screen() (django_pam.accounts.tests.test_accounts_views.testloginview method), 8 test_get_logout_screen() (django_pam.accounts.tests.test_accounts_views.t method), 8 test_get_user_invalid() (django_pam.auth.tests.test_auth_backends.testpam method), 12 test_get_user_valid() (django_pam.auth.tests.test_auth_backends.testpamb method), 12 test_invalid_credentials() (django_pam.accounts.tests.test_accounts_forms.testauthenticati method), 7 test_missing_credentials() (django_pam.accounts.tests.test_accounts_forms.testauthenticati method), 7 test_post_login_ajax_invalid() (django_pam.accounts.tests.test_accounts_views.testloginview method), 8 test_post_login_ajax_valid() (django_pam.accounts.tests.test_accounts_views.testloginview method), 8 test_post_login_form_invalid() (django_pam.accounts.tests.test_accounts_views.testloginview (django_pam.accounts.tests.test_accounts_views.testloginview method), 8 (django_pam.accounts.tests.test_accounts_views.testloginview method), 8 test_post_logout_ajax() (django_pam.accounts.tests.test_accounts_views.te method), 8 django_pam.accounts.tests.test_accounts_forms), 7 TestLoginView (class in django_pam.accounts.tests.test_accounts_views), 8 TestLogoutView (class in django_pam.accounts.tests.test_accounts_views), 8 TestPAMBackend (class in django_pam.auth.tests.test_auth_backends), Index

django-session-security Documentation

django-session-security Documentation django-session-security Documentation Release 2.5.1 James Pic Oct 27, 2017 Contents 1 Why not just set the session to expire after X minutes? 3 2 How does it work? 5 3 Requirements 7 4 Resources 9 4.1

More information

django-ratelimit-backend Documentation

django-ratelimit-backend Documentation django-ratelimit-backend Documentation Release 1.2 Bruno Renié Sep 13, 2017 Contents 1 Usage 3 1.1 Installation................................................ 3 1.2 Quickstart................................................

More information

django-sticky-uploads Documentation

django-sticky-uploads Documentation django-sticky-uploads Documentation Release 0.2.0 Caktus Consulting Group October 26, 2014 Contents 1 Requirements/Installing 3 2 Browser Support 5 3 Documentation 7 4 Running the Tests 9 5 License 11

More information

django-contact-form Documentation

django-contact-form Documentation django-contact-form Documentation Release 1.4.2 James Bennett Aug 01, 2017 Installation and configuration 1 Installation guide 3 2 Quick start guide 5 3 Contact form classes 9 4 Built-in views 13 5 Frequently

More information

django-model-report Documentation

django-model-report Documentation django-model-report Documentation Release 0.2.1 juanpex Nov 06, 2017 Contents 1 Demo 3 1.1 User Guide................................................ 3 1.2 Modules.................................................

More information

django-osm-field Release 0.3.1

django-osm-field Release 0.3.1 django-osm-field Release 0.3.1 Oct 04, 2017 Contents 1 Installation 3 2 Usage 5 3 History 9 4 References 11 5 Indices and tables 15 Python Module Index 17 i ii Contents: Contents 1 2 Contents CHAPTER

More information

django-password-reset Documentation

django-password-reset Documentation django-password-reset Documentation Release 1.0 Bruno Renié Sep 21, 2017 Contents 1 Quickstart 3 1.1 Installation................................................ 3 1.2 Usage...................................................

More information

django-messages Documentation

django-messages Documentation django-messages Documentation Release 0.5.0 Arne Brodowski Nov 18, 2017 Contents 1 Contents 3 1.1 Installing django-messages........................................ 3 1.2 Using django-messages.........................................

More information

django-baton Documentation

django-baton Documentation django-baton Documentation Release 1.0.7 abidibo Nov 13, 2017 Contents 1 Features 3 2 Getting started 5 2.1 Installation................................................ 5 2.2 Configuration...............................................

More information

Easy-select2 Documentation

Easy-select2 Documentation Easy-select2 Documentation Release 1.2.2 Lobanov Stanislav aka asyncee September 15, 2014 Contents 1 Installation 3 2 Quickstart 5 3 Configuration 7 4 Usage 9 5 Reference 11 5.1 Widgets..................................................

More information

STWA Documentation. Release Rafał Mirończyk

STWA Documentation. Release Rafał Mirończyk STWA Documentation Release 0.1.0 Rafał Mirończyk Sep 29, 2017 Contents 1 Accounts 3 1.1 Enums.................................................. 3 1.2 Forms...................................................

More information

django-embed-video Documentation

django-embed-video Documentation django-embed-video Documentation Release 1.1.2-stable Juda Kaleta Nov 10, 2017 Contents 1 Installation & Setup 3 1.1 Installation................................................ 3 1.2 Setup...................................................

More information

django-embed-video Documentation

django-embed-video Documentation django-embed-video Documentation Release 0.7.stable Juda Kaleta December 21, 2013 Contents i ii Django app for easy embeding YouTube and Vimeo videos and music from SoundCloud. Repository is located on

More information

kaleo Documentation Release 1.5 Eldarion

kaleo Documentation Release 1.5 Eldarion kaleo Documentation Release 1.5 Eldarion October 06, 2014 Contents 1 Development 3 1.1 Contents................................................. 3 i ii Provides a site with user to user invitations, working

More information

django-ajax-form-mixin Documentation

django-ajax-form-mixin Documentation django-ajax-form-mixin Documentation Release 0.0.1 Jonas Geiregat Sep 27, 2017 Contents 1 Usage 3 2 Serving Ajax Validation With Your Static Media Server 7 i ii django-ajax-form-mixin Documentation, Release

More information

Django MFA Documentation

Django MFA Documentation Django MFA Documentation Release 1.0 Micro Pyramid Sep 20, 2018 Contents 1 Getting started 3 1.1 Requirements............................................... 3 1.2 Installation................................................

More information

django-baton Documentation

django-baton Documentation django-baton Documentation Release 1.3.1 abidibo Nov 05, 2018 Contents 1 Features 3 2 Getting started 5 2.1 Installation................................................ 5 2.2 Configuration...............................................

More information

django-autocomplete-light Documentation

django-autocomplete-light Documentation django-autocomplete-light Documentation Release 3.0.4 James Pic & contributors March 08, 2016 Contents 1 Features 1 2 Resources 3 3 Basics 5 3.1 Install django-autocomplete-light v3...................................

More information

MIT AITI Python Software Development Lab DJ1:

MIT AITI Python Software Development Lab DJ1: MIT AITI Python Software Development Lab DJ1: This lab will help you get Django installed and write your first application. 1 Each person in your group must complete this lab and have it checked off. Make

More information

Building a Django Twilio Programmable Chat Application

Building a Django Twilio Programmable Chat Application Building a Django Twilio Programmable Chat Application twilio.com/blog/08/0/python-django-twilio-programmable-chat-application.html March 7, 08 As a developer, I ve always wanted to include chat capabilities

More information

Django QR Code Documentation

Django QR Code Documentation Django QR Code Documentation Release 0.3.3 Philippe Docourt Nov 12, 2017 Contents: 1 Django QR Code 1 1.1 Installation................................................ 1 1.2 Usage...................................................

More information

Django File Picker Documentation

Django File Picker Documentation Django File Picker Documentation Release 0.5 Caktus Consulting Group LLC Nov 06, 2017 Contents 1 Dependencies 3 1.1 Required................................................. 3 1.2 Optional.................................................

More information

django-mama-cas Documentation

django-mama-cas Documentation django-mama-cas Documentation Release 2.4.0 Jason Bittel Oct 06, 2018 Contents 1 Contents 3 1.1 Installation................................................ 3 1.2 Settings..................................................

More information

django-oscar-paypal Documentation

django-oscar-paypal Documentation django-oscar-paypal Documentation Release 1.0.0 David Winterbottom May 30, 2018 Contents 1 Installation 3 2 Table of contents 5 2.1 Express checkout............................................. 5 2.2

More information

django-avatar Documentation

django-avatar Documentation django-avatar Documentation Release 2.0 django-avatar developers Oct 04, 2018 Contents 1 Installation 3 2 Usage 5 3 Template tags and filter 7 4 Global Settings 9 5 Management Commands 11 i ii django-avatar

More information

django-avatar Documentation

django-avatar Documentation django-avatar Documentation Release 2.0 django-avatar developers Sep 27, 2017 Contents 1 Installation 3 2 Usage 5 3 Template tags and filter 7 4 Global Settings 9 5 Management Commands 11 i ii django-avatar

More information

django-embed-video Documentation

django-embed-video Documentation django-embed-video Documentation Release 0.6.stable Juda Kaleta October 04, 2013 CONTENTS i ii Django app for easy embeding YouTube and Vimeo videos and music from SoundCloud. Repository is located on

More information

Django Extra Views Documentation

Django Extra Views Documentation Django Extra Views Documentation Release 0.12.0 Andrew Ingram Nov 30, 2018 Contents 1 Features 3 2 Table of Contents 5 2.1 Getting Started.............................................. 5 2.2 Formset Views..............................................

More information

ska Documentation Release Artur Barseghyan

ska Documentation Release Artur Barseghyan ska Documentation Release 1.6.7 Artur Barseghyan February 09, 2017 Contents 1 Key concepts 3 2 Features 5 2.1 Core ska module.............................................

More information

django-cas Documentation

django-cas Documentation django-cas Documentation Release 2.3.6 Parth Kolekar January 17, 2016 Contents 1 django-cas 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

Manual Html A Href Onclick Submit Form

Manual Html A Href Onclick Submit Form Manual Html A Href Onclick Submit Form JS HTML DOM. DOM Intro DOM Methods HTML form validation can be done by a JavaScript. If a form field _input type="submit" value="submit" /form_. As shown in a previous

More information

django-oauth2-provider Documentation

django-oauth2-provider Documentation django-oauth2-provider Documentation Release 0.2.7-dev Alen Mujezinovic Aug 16, 2017 Contents 1 Getting started 3 1.1 Getting started.............................................. 3 2 API 5 2.1 provider.................................................

More information

MapEntity Documentation

MapEntity Documentation MapEntity Documentation Release 0.1.0 Makina Corpus Jun 11, 2018 Contents 1 Installation 3 1.1 Quickstart................................................ 3 1.2 Manual installation With a PostGIS database..............................

More information

DJOAuth2 Documentation

DJOAuth2 Documentation DJOAuth2 Documentation Release 0.6.0 Peter Downs Sep 27, 2017 Contents 1 Important Links 1 2 What is DJOAuth2? 3 3 Why use DJOAuth2? 5 4 What is implemented? 7 5 Quickstart Guide 9 5.1 Requirements...............................................

More information

Wifiphisher Documentation

Wifiphisher Documentation Wifiphisher Documentation Release 1.2 George Chatzisofroniou Jan 13, 2018 Contents 1 Table Of Contents 1 1.1 Getting Started.............................................. 1 1.2 User s guide...............................................

More information

django-dajaxice Documentation

django-dajaxice Documentation django-dajaxice Documentation Release 0.7 Jorge Bastida Nov 17, 2017 Contents 1 Documentation 3 1.1 Installation................................................ 3 1.2 Quickstart................................................

More information

yagmail Documentation

yagmail Documentation yagmail Documentation Release 0.10.189 kootenpv Feb 08, 2018 Contents 1 API Reference 3 1.1 Authentication.............................................. 3 1.2 SMTP Client...............................................

More information

django-autocomplete-light Documentation

django-autocomplete-light Documentation django-autocomplete-light Documentation Release 3.0.4 James Pic & contributors March 05, 2016 Contents 1 Features 1 2 Resources 3 3 Basics 5 3.1 Install django-autocomplete-light v3...................................

More information

SagePay payment gateway package for django-oscar Documentation

SagePay payment gateway package for django-oscar Documentation SagePay payment gateway package for django-oscar Documentation Release 0.1.1 Glyn Jackson May 18, 2017 Contents 1 Installation and Configuration Guide 3 1.1 Installing Package............................................

More information

django-permission Documentation

django-permission Documentation django-permission Documentation Release 0.8.8 Alisue October 29, 2015 Contents 1 django-permission 1 1.1 Documentation.............................................. 1 1.2 Installation................................................

More information

Django-Select2 Documentation. Nirupam Biswas

Django-Select2 Documentation. Nirupam Biswas Nirupam Biswas Mar 07, 2018 Contents 1 Get Started 3 1.1 Overview................................................. 3 1.2 Installation................................................ 3 1.3 External Dependencies..........................................

More information

Django urls Django Girls Tutorial

Django urls Django Girls Tutorial Django urls Django Girls Tutorial about:reader?url=https://tutorial.djangogirls.org/en/django_urls/ 1 di 6 13/11/2017, 20:01 tutorial.djangogirls.org Django urls Django Girls Tutorial DjangoGirls 6-8 minuti

More information

Trunk Player Documentation

Trunk Player Documentation Trunk Player Documentation Release 0.0.1 Dylan Reinhold Nov 25, 2017 Contents 1 Installation 3 1.1 System Prerequisites........................................... 3 1.2 Assumptions...............................................

More information

django-inplaceedit Documentation

django-inplaceedit Documentation django-inplaceedit Documentation Release 1.2.0 Pablo Martín September 17, 2013 CONTENTS i ii CHAPTER ONE GETTING STARTED 1.1 Information Inplace Edit Form is a Django application that allows you to inline

More information

Django-CSP Documentation

Django-CSP Documentation Django-CSP Documentation Release 3.0 James Socol, Mozilla September 06, 2016 Contents 1 Installing django-csp 3 2 Configuring django-csp 5 2.1 Policy Settings..............................................

More information

micawber Documentation

micawber Documentation micawber Documentation Release 0.3.4 charles leifer Nov 29, 2017 Contents 1 examples 3 2 integration with web frameworks 5 2.1 Installation................................................ 5 2.2 Getting

More information

django-facebook-graph Documentation

django-facebook-graph Documentation django-facebook-graph Documentation Release 0.1 FEINHEIT GmbH Mar 29, 2017 Contents 1 Installation 3 1.1 Add 'facebook' to your INSTALLED_APPS............................ 3 1.2 Add the middlewares...........................................

More information

django-modern-rpc Documentation

django-modern-rpc Documentation django-modern-rpc Documentation Release 0.10.0 Antoine Lorence Dec 11, 2017 Table of Contents 1 What is RPC 1 2 What is django-modern-rpc 3 3 Requirements 5 4 Main features 7 5 Quick-start 9 5.1 Quick-start

More information

Tangent MicroServices Documentation

Tangent MicroServices Documentation Tangent MicroServices Documentation Release 1 Tangent Solutions March 10, 2015 Contents 1 Getting Started 3 1.1 Micro Services Projects......................................... 3 2 Service Registry 5

More information

Django Part II SPARCS 11 undead. Greatly Inspired by SPARCS 10 hodduc

Django Part II SPARCS 11 undead. Greatly Inspired by SPARCS 10 hodduc Django Part II 2015-05-27 SPARCS 11 undead Greatly Inspired by SPARCS 10 hodduc Previously on Django Seminar Structure of Web Environment HTTP Requests and HTTP Responses Structure of a Django Project

More information

Django Admin Sortable Documentation

Django Admin Sortable Documentation Django Admin Sortable Documentation Release 1.7.0 Brandon Taylor September 28, 2016 Contents 1 Supported Django Versions 3 1.1 Django 1.4.x............................................... 3 1.2 Django

More information

django-sekizai Documentation

django-sekizai Documentation django-sekizai Documentation Release 0.6.1 Jonas Obrist September 23, 2016 Contents 1 About 3 2 Dependencies 5 3 Usage 7 3.1 Configuration............................................... 7 3.2 Template

More information

I hate money. Release 1.0

I hate money. Release 1.0 I hate money Release 1.0 Nov 01, 2017 Contents 1 Table of content 3 2 Indices and tables 15 i ii «I hate money» is a web application made to ease shared budget management. It keeps track of who bought

More information

cmsplugin-blog Release post 0 Øyvind Saltvik

cmsplugin-blog Release post 0 Øyvind Saltvik cmsplugin-blog Release 1.1.2 post 0 Øyvind Saltvik March 22, 2016 Contents 1 Requirements 3 1.1 Installation.............................................. 3 2 Configuration and setup 5 2.1 Settings................................................

More information

Bambu API Documentation

Bambu API Documentation Bambu API Documentation Release 2.0.1 Steadman Sep 27, 2017 Contents 1 About Bambu API 3 2 About Bambu Tools 2.0 5 3 Installation 7 4 Basic usage 9 5 Questions or suggestions? 11 6 Contents 13 6.1 Defining

More information

Django File Picker Documentation

Django File Picker Documentation Django File Picker Documentation Release 0.5 Caktus Consulting Group LLC Oct 31, 2017 Contents 1 Dependencies 3 1.1 Required................................................. 3 1.2 Optional.................................................

More information

Django Data Importer Documentation

Django Data Importer Documentation Django Data Importer Documentation Release 2.2.1 Valder Gallo May 15, 2015 Contents 1 Django Data Importer 3 1.1 Documentation and usage........................................ 3 1.2 Installation................................................

More information

DBNsim. Giorgio Giuffrè. 0 Abstract How to run it on your machine How to contribute... 2

DBNsim. Giorgio Giuffrè. 0 Abstract How to run it on your machine How to contribute... 2 DBNsim Giorgio Giuffrè Contents 0 Abstract 2 0.1 How to run it on your machine................... 2 0.2 How to contribute.......................... 2 1 Installing DBNsim 2 1.1 Requirements.............................

More information

Django Groups Manager Documentation

Django Groups Manager Documentation Django Groups Manager Documentation Release 0.3.0 Vittorio Zamboni May 03, 2017 Contents 1 Documentation 3 1.1 Installation................................................ 3 1.2 Basic usage................................................

More information

Django EL(Endless) Pagination Documentation

Django EL(Endless) Pagination Documentation Django EL(Endless) Pagination Documentation Release 2.1.0 Oleksandr Shtalinberg and Francesco Banconi December 07, 2015 Contents 1 Changelog 3 1.1 Version 2.1.0...............................................

More information

django-ad-code Documentation

django-ad-code Documentation django-ad-code Documentation Release 1.0.0 Mark Lavin Apr 21, 2018 Contents 1 Installation 3 2 Documentation 5 3 License 7 4 Contributing 9 5 Contents 11 5.1 Getting Started..............................................

More information

Configuring Hotspots

Configuring Hotspots CHAPTER 12 Hotspots on the Cisco NAC Guest Server are used to allow administrators to create their own portal pages and host them on the Cisco NAC Guest Server. Hotspots created by administrators can be

More information

Django-frontend-notification Documentation

Django-frontend-notification Documentation Django-frontend-notification Documentation Release 0.2.0 Arezqui Belaid February 25, 2016 Contents 1 Introduction 3 1.1 Overview................................................. 3 1.2 Documentation..............................................

More information

Nuit Documentation. Release Ben Cardy

Nuit Documentation. Release Ben Cardy Nuit Documentation Release 1.2.2 Ben Cardy Feb 26, 2018 Contents 1 Contents 3 1.1 Installation................................................ 3 1.2 Quickstart................................................

More information

The Django Web Framework Part VI

The Django Web Framework Part VI The Django Web Framework Part VI Web Programming Course Fall 2013 Outline Session Framework User Authentication & Authorization in Django 2 Session Framework Session Framework lets you store and retrieve

More information

djangotribune Documentation

djangotribune Documentation djangotribune Documentation Release 0.7.9 David THENON Nov 05, 2017 Contents 1 Features 3 2 Links 5 2.1 Contents................................................. 5 2.1.1 Install..............................................

More information

bottle-rest Release 0.5.0

bottle-rest Release 0.5.0 bottle-rest Release 0.5.0 February 18, 2017 Contents 1 API documentation 3 1.1 bottle_rest submodule.......................................... 3 2 What is it 5 2.1 REST in bottle..............................................

More information

Django OAuth Toolkit Documentation

Django OAuth Toolkit Documentation Django OAuth Toolkit Documentation Release 1.2.0 Evonove Jun 03, 2018 Contents 1 Support 3 2 Requirements 5 3 Index 7 3.1 Installation................................................ 7 3.2 Tutorials.................................................

More information

kiss.py Documentation

kiss.py Documentation kiss.py Documentation Release 0.3.3 Stanislav Feldman January 15, 2015 Contents 1 Contents 3 1.1 Overview................................................. 3 1.2 Installation................................................

More information

webkitpony Documentation

webkitpony Documentation webkitpony Documentation Release 0.1 Toni Michel May 24, 2014 Contents 1 Motivation 3 2 Goal 5 3 Understanding webkitpony 7 3.1 Understanding webkitpony........................................ 7 3.2 The

More information

Djam Documentation. Release Participatory Culture Foundation

Djam Documentation. Release Participatory Culture Foundation Djam Documentation Release 0.1.0 Participatory Culture Foundation December 24, 2013 Contents 1 Links 3 2 Getting Started 5 2.1 Quick Start................................................ 5 2.2 Extending

More information

django-app-metrics Documentation

django-app-metrics Documentation django-app-metrics Documentation Release 0.8.0 Frank Wiles Sep 21, 2017 Contents 1 Installation 3 1.1 Installing................................................. 3 1.2 Requirements...............................................

More information

wagtailmenus Documentation

wagtailmenus Documentation wagtailmenus Documentation Release 2.12 Andy Babic Nov 17, 2018 Contents 1 Full index 3 1.1 Overview and key concepts....................................... 3 1.1.1 Better control over top-level menu

More information

wagtailmenus Documentation

wagtailmenus Documentation wagtailmenus Documentation Release 2.11 Andy Babic Aug 02, 2018 Contents 1 Full index 3 1.1 Overview and key concepts....................................... 3 1.1.1 Better control over top-level menu

More information

django-revproxy Documentation

django-revproxy Documentation django-revproxy Documentation Release 0.9.14 Sergio Oliveira Jun 30, 2017 Contents 1 Features 3 2 Dependencies 5 3 Install 7 4 Contents: 9 4.1 Introduction...............................................

More information

Biostar Central Documentation. Release latest

Biostar Central Documentation. Release latest Biostar Central Documentation Release latest Oct 05, 2017 Contents 1 Features 3 2 Support 5 3 Quick Start 7 3.1 Install................................................... 7 3.2 The biostar.sh manager..........................................

More information

AD218 Working with Customers via the IBM Lotus Sametime Links Toolkit. Carl Tyler Instant Technologies

AD218 Working with Customers via the IBM Lotus Sametime Links Toolkit. Carl Tyler Instant Technologies AD218 Working with Customers via the IBM Lotus Sametime Links Toolkit Carl Tyler Instant Technologies Agenda What is Lotus Sametime Links (STLinks) Adding STLinks to your site Building a STLinks queuing

More information

django-allauth-2fa Documentation

django-allauth-2fa Documentation django-allauth-2fa Documentation Release 0.4.3 Víðir Valberg Guðmundsson, Percipient Networks Apr 25, 2018 Contents: 1 Features 3 2 Compatibility 5 3 Contributing 7 3.1 Running tests...............................................

More information

GMusicProcurator Documentation

GMusicProcurator Documentation GMusicProcurator Documentation Release 0.5.0 Mark Lee Sep 27, 2017 Contents 1 Features 3 2 Table of Contents 5 2.1 Installation................................................ 5 2.1.1 Requirements..........................................

More information

fragapy Documentation

fragapy Documentation fragapy Documentation Release 1.0 2011, Fragaria, s.r.o November 09, 2011 CONTENTS 1 Adminhelp 3 2 Amazon 5 2.1 AWS branded scripts........................................... 5 2.2 SES SMTP relay.............................................

More information

mongodb-tornado-angular Documentation

mongodb-tornado-angular Documentation mongodb-tornado-angular Documentation Release 0.1.1 David Levy February 22, 2017 Contents 1 Installation 3 1.1 linux/mac................................................. 3 1.2 Python3.x.................................................

More information

django-openid Documentation

django-openid Documentation django-openid Documentation Release 2.0a Simon Willison September 27, 2017 Contents 1 Installation 3 2 Accepting OpenID 5 2.1 Redirecting somewhere else....................................... 6 2.2 Requesting

More information

Django AdminLTE 2 Documentation

Django AdminLTE 2 Documentation Django AdminLTE 2 Documentation Release 0.1 Adam Charnock Jul 02, 2018 Contents 1 Contents 3 1.1 Quickstart................................................ 3 1.2 Templates & Blocks Reference.....................................

More information

django-push Documentation

django-push Documentation django-push Documentation Release 1.1 Bruno Renié Jun 06, 2018 Contents 1 Installation 3 2 Manual 5 2.1 Being a publisher............................................. 5 2.2 Being a subscriber............................................

More information

HOW TO FLASK. And a very short intro to web development and databases

HOW TO FLASK. And a very short intro to web development and databases HOW TO FLASK And a very short intro to web development and databases FLASK Flask is a web application framework written in Python. Created by an international Python community called Pocco. Based on 2

More information

django-telegram-login Documentation

django-telegram-login Documentation django-telegram-login Documentation Release 0.2.3 Dmytro Striletskyi Aug 21, 2018 Contents 1 User s guide 3 1.1 Getting started.............................................. 3 1.2 How to use widgets............................................

More information

spaste Documentation Release 1.0 Ben Webster

spaste Documentation Release 1.0 Ben Webster spaste Documentation Release 1.0 Ben Webster May 28, 2015 Contents 1 Application Overview 3 1.1 Snippets................................................. 3 1.2 Contact Form...............................................

More information

canary Documentation Release 0.1 Branton K. Davis

canary Documentation Release 0.1 Branton K. Davis canary Documentation Release 0.1 Branton K. Davis August 18, 2012 CONTENTS 1 Installation 3 1.1 Installing Canary Reports........................................ 3 1.2 Running the Demo Project........................................

More information

django-notifier Documentation

django-notifier Documentation django-notifier Documentation Release 0.7 Siddharth Doshi August 19, 2014 Contents 1 Dependecies 3 2 Contents 5 2.1 Installation & Setup........................................... 5 2.2 Quickstart................................................

More information

alphafilter Documentation

alphafilter Documentation alphafilter Documentation Release 0.6 coordt September 09, 2013 CONTENTS i ii alphafilter Documentation, Release 0.6 Contents: CONTENTS 1 alphafilter Documentation, Release 0.6 2 CONTENTS CHAPTER ONE

More information

f5-icontrol-rest Documentation

f5-icontrol-rest Documentation f5-icontrol-rest Documentation Release 1.3.10 F5 Networks Aug 04, 2018 Contents 1 Overview 1 2 Installation 3 2.1 Using Pip................................................. 3 2.2 GitHub..................................................

More information

django-teamwork Documentation

django-teamwork Documentation django-teamwork Documentation Release 0.0.1 Les Orchard Jun 11, 2017 Contents 1 Overview 3 1.1 What is django-teamwork?........................................ 3 2 Getting Started 5 2.1 Installation................................................

More information

Python web frameworks

Python web frameworks Flask Python web frameworks Django Roughly follows MVC pattern Steeper learning curve. Flask Initially an April Fools joke Micro -framework: minimal approach. Smaller learning curve http://flask.pocoo.org/docs/0.12/quickstart/#a-minimalapplication

More information

django-rest-framework-datatables Documentation

django-rest-framework-datatables Documentation django-rest-framework-datatables Documentation Release 0.1.0 David Jean Louis Aug 16, 2018 Contents: 1 Introduction 3 2 Quickstart 5 2.1 Installation................................................ 5

More information

django-amp-tools Documentation Release latest

django-amp-tools Documentation Release latest django-amp-tools Documentation Release latest February 07, 2017 Contents 1 Installation 3 2 Usage 5 2.1 Usage app................................................ 5 3 Contributing 9 4 Source code and contacts

More information

django-registration Documentation

django-registration Documentation django-registration Documentation Release 2.2 James Bennett May 31, 2017 Installation and configuration 1 Installation guide 3 2 Quick start guide 5 3 The HMAC activation workflow 9 4 The one-step workflow

More information

Django Graphos Documentation

Django Graphos Documentation Django Graphos Documentation Release 0.0.2a0 Agiliq Aug 21, 2017 Contents 1 Intro to Django-graphos 3 2 Using flot with Django-graphos 5 2.1 Supported chart types..........................................

More information

TailorDev Contact Documentation

TailorDev Contact Documentation TailorDev Contact Documentation Release 0.3 Julien Maupetit November 06, 2013 Contents 1 Django TailorDev Contact 3 1.1 Dependencies............................................... 3 1.2 Installation................................................

More information

mozilla-django-oidc Documentation

mozilla-django-oidc Documentation mozilla-django-oidc Documentation Release 1.0.0 Mozilla Jun 12, 2018 Contents 1 Installation 3 1.1 Quick start................................................ 3 1.2 Additional optional configuration....................................

More information

colab Documentation Release 2.0dev Sergio Oliveira

colab Documentation Release 2.0dev Sergio Oliveira colab Documentation Release 2.0dev Sergio Oliveira Sep 27, 2017 Contents 1 User Documentation 3 1.1 Getting Started.............................................. 3 1.2 Widgets..................................................

More information