django-sslserver2

Django package to support both HTTP and HTTPS as runserver command


License
MIT
Install
pip install django-sslserver2==0.1.3

Documentation

django-sslserver2

Django package to support both HTTP and HTTPS as runserver command

Usage

  1. Install this package in you Django project
pip install django-sslserver2
  1. Update Django's settings.py
INSTALLED_APPS = (...
    'django_sslserver2',
    ...
)
  1. Execute you Django server:
python manage.py runsslserver --certificate cert.pem --key key.pem

Development

Requirements

Update requirements.txt

As this project uses Pipenv on development, to keep compatibility with other environments is recommended to generate the corresponding requirements.txt file on every integration.

Run the following command to generate or overwrite the requirements.txt file:

pipenv lock -r > requirements.txt

Releasing

  1. Install twine
pip install twine
  1. Build package distribution
python setup.py sdist bdist_wheel
  1. Upload distribution
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*