Closed antidipyramid closed 11 months ago
django-compressor
While working on the Workplace D+I app, @derekeder found that that setting DEBUG=False in Django's settings caused a django-compressor error.
DEBUG=False
Because we enforce SSL in production apps: https://github.com/datamade/how-to/blob/14668f98fd847d16b90cc7d9e8f2296a24bfa78a/docker/templates/new-django-app/%7B%7Bcookiecutter.app_name%7D%7D/%7B%7Bcookiecutter.module_name%7D%7D/settings.py#L172-L175
we also ran into a problem with Django's test Client. Django always runs tests in a production environment but pytest-django's stock Client doesn't use SSL.
Client
pytest-django
This StackOverflow question details the problem and outlines some solutions.
This will be obsolete once we switch to webpack. We'll leave this open for now in case any existing projects run into this.
django-compressor
While working on the Workplace D+I app, @derekeder found that that setting
DEBUG=False
in Django's settings caused adjango-compressor
error.SSL
Because we enforce SSL in production apps: https://github.com/datamade/how-to/blob/14668f98fd847d16b90cc7d9e8f2296a24bfa78a/docker/templates/new-django-app/%7B%7Bcookiecutter.app_name%7D%7D/%7B%7Bcookiecutter.module_name%7D%7D/settings.py#L172-L175
we also ran into a problem with Django's test
Client
. Django always runs tests in a production environment butpytest-django
's stockClient
doesn't use SSL.This StackOverflow question details the problem and outlines some solutions.