💻 (12-Aug-2023) Python Security 2 with Cryptography module and Fernet Symmetric encryption and Django Signing.
cp .env.example .env
pip3 install virtualenv && \
virtualenv env && \
source env/bin/activate
# alias py3="python3"
# Run encryption
py3 manage.py crypt --subject='test'
py3 manage.py crypt2 --subject_key='test' --subject_val='secret'
Make changes to crypt.py to update the crypt command.
py3 manage.py runserver 3000
# http://localhost:3000
alias compose='docker-compose -f local.yml'
compose build
compose up
# http://localhost:3000
py3 manage.py shell -i ipython
py3 manage.py show_urls
View the api collection here.
Admin creds are set in ./compose/local/django/start
export DJANGO_SUPERUSER_PASSWORD=secret
py3 manage.py createsuperuser \
--username admin_user \
--email admin@django-app.com \
--no-input
py3 manage.py collectstatic
Mail environment credentials are at .env.
The mailhog docker image runs at http://localhost:8025
.
See your Python code do web browsing on your screen with GUI.
See python react boilerplate app.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.