Fix local dev server: Don't enforce https

pull/192/head
JensDiemer 2025-05-01 00:22:43 +02:00
rodzic c0e7a40dd9
commit 50b207b10b
2 zmienionych plików z 11 dodań i 3 usunięć

Wyświetl plik

@ -166,6 +166,8 @@ To make a new release, do this:
[comment]: <> (✂✂✂ auto generated history start ✂✂✂)
* [**dev**](https://github.com/jedie/PyInventory/compare/v0.21.1...main)
* 2025-05-01 - Fix local dev server: Don't enforce https
* [v0.21.1](https://github.com/jedie/PyInventory/compare/v0.21.0...v0.21.1)
* 2025-05-01 - Replace setuptools with hatchling
* 2025-04-30 - Update requirements and some small code parts
@ -174,14 +176,14 @@ To make a new release, do this:
* 2025-03-23 - Migrate "pip-tools" -> "uv" and remove tox
* [v0.20.1](https://github.com/jedie/PyInventory/compare/v0.20.0...v0.20.1)
* 2024-09-05 - switched to https://github.com/jazzband/django-tinymce/
<details><summary>Expand older history entries ...</summary>
* [v0.20.0](https://github.com/jedie/PyInventory/compare/v0.19.3...v0.20.0)
* 2024-09-05 - Replace django-ckeditor with django-prose-editor and fix tests
* 2024-09-05 - Project updates
* 2024-01-16 - Use typeguard in tests
* 2024-01-16 - Update requirements
<details><summary>Expand older history entries ...</summary>
* [v0.19.3](https://github.com/jedie/PyInventory/compare/v0.19.2...v0.19.3)
* 2023-11-01 - Auto generate README history
* 2023-11-01 - Update requirements

Wyświetl plik

@ -13,6 +13,12 @@ from inventory_project.settings.prod import * # noqa
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# Disable secure settings from prod.py:
CSRF_COOKIE_SECURE = False
SESSION_COOKIE_SECURE = False
SECURE_PROXY_SSL_HEADER = None
SECURE_SSL_REDIRECT = False
SECURE_HSTS_PRELOAD = False
# Serve static/media files for local development:
SERVE_FILES = True