Skip to content

Commit f29d289

Browse files
authored
Merge pull request #192 from jedie/dev
Fix local dev server: Don't enforce https
2 parents c0e7a40 + 50b207b commit f29d289

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ To make a new release, do this:
166166

167167
[comment]: <> (✂✂✂ auto generated history start ✂✂✂)
168168

169+
* [**dev**](https://github.com/jedie/PyInventory/compare/v0.21.1...main)
170+
* 2025-05-01 - Fix local dev server: Don't enforce https
169171
* [v0.21.1](https://github.com/jedie/PyInventory/compare/v0.21.0...v0.21.1)
170172
* 2025-05-01 - Replace setuptools with hatchling
171173
* 2025-04-30 - Update requirements and some small code parts
@@ -174,14 +176,14 @@ To make a new release, do this:
174176
* 2025-03-23 - Migrate "pip-tools" -> "uv" and remove tox
175177
* [v0.20.1](https://github.com/jedie/PyInventory/compare/v0.20.0...v0.20.1)
176178
* 2024-09-05 - switched to https://github.com/jazzband/django-tinymce/
179+
180+
<details><summary>Expand older history entries ...</summary>
181+
177182
* [v0.20.0](https://github.com/jedie/PyInventory/compare/v0.19.3...v0.20.0)
178183
* 2024-09-05 - Replace django-ckeditor with django-prose-editor and fix tests
179184
* 2024-09-05 - Project updates
180185
* 2024-01-16 - Use typeguard in tests
181186
* 2024-01-16 - Update requirements
182-
183-
<details><summary>Expand older history entries ...</summary>
184-
185187
* [v0.19.3](https://github.com/jedie/PyInventory/compare/v0.19.2...v0.19.3)
186188
* 2023-11-01 - Auto generate README history
187189
* 2023-11-01 - Update requirements

inventory_project/settings/local.py

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
# SECURITY WARNING: don't run with debug turned on in production!
1414
DEBUG = True
1515

16+
# Disable secure settings from prod.py:
17+
CSRF_COOKIE_SECURE = False
18+
SESSION_COOKIE_SECURE = False
19+
SECURE_PROXY_SSL_HEADER = None
20+
SECURE_SSL_REDIRECT = False
21+
SECURE_HSTS_PRELOAD = False
1622

1723
# Serve static/media files for local development:
1824
SERVE_FILES = True

0 commit comments

Comments
 (0)