Skip to content

Commit

Permalink
Compatibility for Django > 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Akasch committed May 6, 2022
1 parent dbc69de commit 78043ef
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ docs/_build/
# PyBuilder
target/

# Pycharm
.idea
.pyenv
13 changes: 11 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Add it to the INSTALLED_APPS settings variable::
'django.contrib.messages',
'django.contrib.staticfiles',
...
'django-simple-csp'
'django_simple_csp'
...
]

Expand Down Expand Up @@ -78,7 +78,7 @@ Config Values
-------------

CSP_REPORT_URL = ""
The URl CSP errors should be reportet to, set to "" if not used, or do not define it.
The URl CSP errors should be reported to, set to "" if not used, or do not define it.

CSP_REPORT_ONLY = True
Set the header to just report CSP errors do not enforce the CSP. Defaults to True.
Expand All @@ -91,3 +91,12 @@ List of additional hosts CSS is allowed to be loaded from

CSP_ADDITIONAL_IMG_SRC = []
List of additional hosts images is allowed to be loaded from


Upgrades
-----------

From < 0.3
~~~~~~~~~~

'django-simple-csp' has to be changed into 'django_simple_csp' in th INSTALLED_APPS in Django settings.py
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import setup, find_packages


version = '0.2.dev1'
version = '0.3.dev1'


def read(*parts):
Expand All @@ -28,9 +28,9 @@ def read(*parts):
description='Django Content Security Policy support.',
long_description=read('README.rst'),
author='Nils Rokita, Henning Pridöhl',
author_email='[email protected]; [email protected]',
author_email='[email protected]; [email protected]',
maintainer='Nils Rokita',
maintainer_email='[email protected]',
maintainer_email='[email protected]',
url='https://github.com/fsinfuhh/django-simple-csp',
license='License :: OSI Approved :: MIT License',
packages=find_packages(),
Expand Down

0 comments on commit 78043ef

Please sign in to comment.