Ad Code

Responsive Advertisement

Ticker

6/recent/ticker-posts

In Django project run SSL (runserver)

1. In your DJ Venv install extensions

  • django-extensions
  • django-werkzeug-debugger-runserver
  • pyOpenSSL
pip install django-extensions 
pip install django-werkzeug-debugger-runserver 
pip install pyOpenSSL

2. Config Setting.py

  • Add  'werkzeug_debugger_runserver'、'django_extensions' in below

INSTALLED_APPS = [
................
    'rest_framework',
    'werkzeug_debugger_runserver',
    'django_extensions',
]

3. Run & Test

  • python manage.py runserver_plus --cert server.crt 127.0.0.1:8000
  • In browser Test : https://127.0.0.1:8000