An open API service indexing awesome lists of open source software.

https://github.com/laactech/django-csp-example


https://github.com/laactech/django-csp-example

Last synced: about 1 year ago
JSON representation

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`