{"id":7179,"library":"django-sslserver","title":"Django SSL Server","description":"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.","status":"maintenance","version":"0.22","language":"python","source_language":"en","source_url":"https://github.com/teddziuba/django-sslserver","tags":["Django","SSL","HTTPS","development server","local development"],"install":[{"cmd":"pip install django-sslserver","lang":"bash","label":"Install latest version"}],"dependencies":[{"reason":"Core framework dependency, as it provides a management command for Django projects.","package":"Django"}],"imports":[{"note":"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.","symbol":"sslserver","correct":"INSTALLED_APPS = [... 'sslserver', ...]"}],"quickstart":{"code":"# settings.py\nINSTALLED_APPS = [\n    # ... other apps\n    'sslserver',\n]\n\n# Terminal\n# navigate to your Django project root (where manage.py is located)\n# Then run the development server with SSL:\n# python manage.py runsslserver\n# Access your app at https://127.0.0.1:8000/","lang":"python","description":"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/`."},"warnings":[{"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).","message":"Django 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.","severity":"breaking","affected_versions":"All versions"},{"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`.","message":"When 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.","severity":"gotcha","affected_versions":"All versions"},{"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.","message":"Version 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.","severity":"gotcha","affected_versions":"<0.22 for modern Django/Python"},{"fix":"Use the `--nostatic` option when running `runsslserver` if your static files are handled by another component: `python manage.py runsslserver --nostatic`.","message":"When using third-party static file handlers (like WhiteNoise or `dj_static`), `django-sslserver` might not serve static files correctly, resulting in 404 errors.","severity":"gotcha","affected_versions":"All versions, especially with third-party static handlers"}],"env_vars":null,"search_vec":"'0.22':45 '2019':50 'certif':38 'command':22 'communiti':56 'compat':65 'current':43 'decemb':49 'develop':12,30,77,89,92 'django':1,4,16,68,86 'effort':62 'enabl':11 'ensur':64 'environ':85 'framework':17 'https':27,88 'immedi':40 'indic':60 'intend':75 'local':29,91 'maintain':53 'manag':21 'never':80 'newer':67 'ongo':61 'primarili':52 'product':84 'project':25 'provid':18 'pull':58 'python':70 'recent':57 'releas':47 'request':59 'runsslserv':20 'self':36 'self-sign':35 'serv':24 'server':3,6,13,90 'ship':32 'sign':37 'ssl':2,5,10,87 'ssl-enabl':9 'strict':74 'use':41,82 'version':44,71","created_at":"2026-04-16T13:46:52.622497+00:00","updated_at":"2026-04-16T13:46:52.622497+00:00","problems":{"verify_error":"no import statement found"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.22","cli_name":"runsslserver","cli_version":"sh: 1: runsslserver: not found","type":"library","homepage":null,"github":"https://github.com/teddziuba/django-sslserver","docs":null,"changelog":null,"pypi":"https://pypi.org/project/django-sslserver/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","auth-security"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"skip","verified_at":"2026-06-28","last_verified":"2026-06-28","next_check":"2026-07-05","install_tag":null}}