Skip to main content

Django package to support both HTTP and HTTPS as runserver command

Project description

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/*

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

django-sslserver2-0.1.4.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

django_sslserver2-0.1.4-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page