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
- Install this package in you Django project
pip install django-sslserver2
- Update Django's
settings.py
INSTALLED_APPS = (...
'django_sslserver2',
...
)
- 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
- Install
twine
pip install twine
- Build package distribution
python setup.py sdist bdist_wheel
- 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
Built Distribution
File details
Details for the file django-sslserver2-0.1.4.tar.gz
.
File metadata
- Download URL: django-sslserver2-0.1.4.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78f72698d7e5d8168ef8ac48861b19d0c90bba141a2f30eb12ad99be97fd8a50 |
|
MD5 | f265952b04e7845a55b2d351212d6cf0 |
|
BLAKE2b-256 | 6b2fcd23b874a420dd306254e64b8d602308a063d5758dac48bd17568cd827b6 |
File details
Details for the file django_sslserver2-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: django_sslserver2-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8224ae2de6e4af8c8aebf029a1fa4735003b6a9df2ab359bb22c8f8daa1ed9e0 |
|
MD5 | a7d6c947afb868e53c299633b256a33d |
|
BLAKE2b-256 | ccf6c2f50e4b1d6688616fa9065a0b08011d87cca2ac3ad0947d1b100f23933a |