Skip to content

willgvfranco/django-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Boilerplate w/ Security Config. 👋

Version License: MIT Twitter: neustren

Intro

Django boilerplate with security configured and env keys hidden. Good for your django/python learning courses. Comes with bootstrap4 and configurations for Portuguese-BR template (easily change). Also, postgresql prepared connection. X_FRAME, HSTS, Nosniff, XSS_filter, CSRF, honeypot and protection against bruteforce pre-configured

How it works

base.py overrides settings.py for development (default runserver)

prod.py overrides base.py for production

All secure keys and passwords are in example.env

Install

git clone https://github.com/Neustren/django-boilerplate
python -m venv venv
source venv/bin/activate # GNU/Linux
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
cp example.env .env # create your .env with new django key and DB settings

Usage

python manage.py runserver # For dev
python manage.py runserver --settings=backend.settings.prod # For production envs

Aditional configs - More explained

git remote remove origin # start your own repository
python manage.py createsuperuser # create user for admin
localhost:8000/neuadmin # change your new url in urls.py, the /admin is fake

Languages and libs used 📚

Author

👤 William Franco

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

Simple boilerplate of django3 for web projects with security configured.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published