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