Registry / web-framework / django-sslserver

django-sslserver

JSON →
library0.22pypypiunverified

Django SSL Server is an SSL-enabled development server for the Django Framework, providing a `runsslserver` management command to serve projects over HTTPS during local development. It ships with a self-signed certificate for immediate use. The current version, 0.22, was released in December 2019. While primarily maintained by the community, recent pull requests indicate ongoing efforts to ensure compatibility with newer Django and Python versions. It is strictly intended for development and should never be used in production environments.

pip install django-sslserver
INSTALL
IMPORT
SIG · DJANGO-SSLSERVER
D
django-sslserver
web-frameworkpythonv0.22
Install
3.4s avg
Import
—
Disk
65MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.22 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 66.3MB
glibc
py 3.10–3.920 runs
installs and imports cleanly · install 3.4s · import 0.000s · 67MB
65MB installed
● package 65MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sslserver
✓ INSTALLED_APPS = [... 'sslserver', ...]
Django SSL Server is used by adding 'sslserver' to your project's INSTALLED_APPS setting in `settings.py`. There are no direct Python imports of classes or functions for typical use.

To quickly get started, add 'sslserver' to your `INSTALLED_APPS` in `settings.py`. Then, from your project's root directory, run the `runsslserver` management command. Your Django application will then be accessible via HTTPS, typically at `https://127.0.0.1:8000/`.

# settings.py INSTALLED_APPS = [ # ... other apps 'sslserver', ] # Terminal # navigate to your Django project root (where manage.py is located) # Then run the development server with SSL: # python manage.py runsslserver # Access your app at https://127.0.0.1:8000/
runsslserver --version
Debug
Known issues
breakingDjango SSL Server is strictly for development purposes and MUST NOT be used in production environments. It lacks the security, performance, and robustness required for live applications.
fix
For production, use a proper web server like Nginx or Apache with a Gunicorn/uWSGI application server, and handle SSL/TLS termination at the web server level with a trusted certificate authority (e.g., Let's Encrypt).
affects: All versions
gotchaWhen using the default self-signed certificate, browsers will display security warnings (e.g., 'Your connection is not private'). This is expected behavior because the certificate is not issued by a trusted Certificate Authority.
fix
For development, you can either ignore the warning, explicitly trust the provided `development.crt` in your browser's settings, or configure `runsslserver` to use a locally trusted certificate generated by tools like `mkcert`.
affects: All versions
gotchaVersion 0.22 officially supports Django up to 2.2 and Python up to 3.7. Using it with newer Django or Python versions might lead to compatibility issues or errors.
fix
Check for community-maintained forks like `django-sslserver-v2` or pull requests (e.g., for Django 5 and Python 3.12 compatibility on GitHub) that address newer version support. Consider contributing to or using these updated branches.
affects: <0.22 for modern Django/Python
gotchaWhen using third-party static file handlers (like WhiteNoise or `dj_static`), `django-sslserver` might not serve static files correctly, resulting in 404 errors.
fix
Use the `--nostatic` option when running `runsslserver` if your static files are handled by another component: `python manage.py runsslserver --nostatic`.
affects: All versions, especially with third-party static handlers
Upgrade
Version history
0.22latest on PyPI · released Dec 10, 2019
Audit
Dependencies
DjangorequiredCore framework dependency, as it provides a management command for Django projects.
Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
django-sslserver — pip install django-sslserver · libregistry