https://github.com/laactech/django-csp-example
https://github.com/laactech/django-csp-example
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/laactech/django-csp-example
- Owner: laactech
- License: bsd-3-clause
- Created: 2020-06-24T02:19:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-22T19:18:25.000Z (over 4 years ago)
- Last Synced: 2025-02-08T16:14:23.098Z (over 1 year ago)
- Language: Python
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Django CSP Example
Follow along in the [tutorial](https://www.laac.dev/blog/content-security-policy-using-django/)
to implement a content security policy using Django.
## Project Set Up
1. Clone the github repo
* `git clone https://github.com/laactech/django-csp-example.git`
1. Create a virtual environment
* `python3 -m venv csp_venv`
1. Activate the virtual environment
* `. ./csp_venv/bin/activate`
1. Install the requirements
* `pip install -r requirements.txt`
1. Migrate the database
* `./manage.py migrate`
1. Run the development server
* `./manage.py runserver`