L
L
lexxuz2018-09-30 11:09:34
Django
lexxuz, 2018-09-30 11:09:34

At what stage to implement HTTPS and WSS?

I learn Django right away by developing a small project on it in PyCharm.
This is my first time using https.
Tell me when you need to enable encryption? Is it better to set it up in the dev project right away, or is it done after the deployment?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2018-09-30
@sergey-gornostaev

These are the details of operation, they should not bother the developer at all. A well-done project can easily be deployed by an outsider on any operating system, any version of Python (supported by Django), any RDBMS (except when using django.contrib.postgres), any web server, encryption enabled or disabled, and so on. etc.

O
OnYourLips, 2018-09-30
@OnYourLips

This is done in a side project that deploys your system's infrastructure. And for simple cases (installed and forgotten, then not my problems) everything is done by hand.
And it depends on how the application will work. If in docker, then the certificates must be configured outside the project, on the orchestration web server that will proxy your internal web server.
Accordingly, inside the project there may be a docker compose file that just shows http outside.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question