Easy integration and deployment of Django projects into Windows Environments.
Project description
Easy integration and deployment of Django projects into Windows Environments.
Requirements:
Python (3.6, 3.7, 3.8, 3.9)
Django (2.2, 3.0, 3.1)
Features
Deploy to Microsoft IIS quickly using wfastcgi
Authenticate via IIS’s Windows Authentication.
Authorize against Active Directory using ldap3 package
Manage LDAP Connections for easy integrations
Debug using django-debug-toolbar
NEW Create Task Schedulers for Django management commands
Quick Start
Install with pip install django-windowsauth
Run py manage.py migrate windows_auth
Add “fastcgi application” with wfastcgi-enable
Configure project settings
INSTALLED_APPS = [
"windows_auth",
]
MIDDLEWARE = [
# ...
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.RemoteUserMiddleware',
'windows_auth.middleware.UserSyncMiddleware',
# ...
]
AUTHENTICATION_BACKENDS = [
"windows_auth.backends.WindowsAuthBackend",
"django.contrib.auth.backends.ModelBackend",
]
WAUTH_DOMAINS = {
"<your domain's NetBIOS Name> (EXAMPLE)": {
"SERVER": "<domain FQDN> (example.local)",
"SEARCH_SCOPE": "<search scope> (DC=example,DC=local)",
"USERNAME": "<bind account username>",
"PASSWORD": "<bind account password>",
}
}
# optional
STATIC_URL = '/static/'
STATIC_ROOT = BASE_DIR / "static"
MEDIA_URL = '/media/'
MEDIA_ROOT = BASE_DIR / "media"
Generate web.config files with py manage.py createwebconfig -s -m
Create new IIS Website from the project files
For more details visit the docs for installation: https://django-windowsauth.readthedocs.io/en/latest/installation/installation.html
Getting help
In case you have trouble while using this module, you may use the GitHub Disccussion.
For any bug or issue, open a new GitHub Issue.
Contributing
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
Built Distribution
File details
Details for the file django-windowsauth-1.4.0.tar.gz
.
File metadata
- Download URL: django-windowsauth-1.4.0.tar.gz
- Upload date:
- Size: 28.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b865302b15a4e985df352f55fc564a25f0552be870b2aaf3555f965f19340b6 |
|
MD5 | 351fcd4a2c632537fdb0dd66afaeecfe |
|
BLAKE2b-256 | 6c868bcc24fa7a06e9747de2c9c9345a799ef00dd11d62ee37d3f375ab8f54c8 |
File details
Details for the file django_windowsauth-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: django_windowsauth-1.4.0-py3-none-any.whl
- Upload date:
- Size: 38.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfd7d14710c1b589394ed13c5bb1a04ab73f26c3e3e28025c468b241915aeaa9 |
|
MD5 | b861b163aeff6e8afaa4fdddf292d259 |
|
BLAKE2b-256 | a481aed1043222c2c1e95738215245118ba044705f6115ec4b9cfbe911ae1f2a |