kakulukia / django-secrets Goto Github PK
View Code? Open in Web Editor NEWThe easy way of handling Django secrets.
License: MIT License
The easy way of handling Django secrets.
License: MIT License
After installing django_secrets into a new virtual environment I got the following error after running manage.py:
(venv) chris@n:~/Django101$ pip install django-secrets
Collecting django-secrets
Downloading https://files.pythonhosted.org/packages/dd/2e/7c2d2725aa77b5058256b23484d35b2c656bc7eb1dc70b78b32a031728f5/django_secrets-1.0.0-py2.py3-none-any.whl
Collecting future (from django-secrets)
Downloading https://files.pythonhosted.org/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/future-0.16.0.tar.gz (824kB)
100% |████████████████████████████████| 829kB 932kB/s
Requirement already satisfied: Django>=1.11 in ./venv/lib/python3.5/site-packages (from django-secrets)
Requirement already satisfied: pytz in ./venv/lib/python3.5/site-packages (from Django>=1.11->django-secrets)
Installing collected packages: future, django-secrets
Running setup.py install for future ... done
Successfully installed django-secrets-1.0.0 future-0.16.0
(venv) chris@n:~/Django101$ python manage.py
Traceback (most recent call last):
File "manage.py", line 7, in <module>
from django_secrets.startup import check
File "/Users/chris/Developer/PythonProjects/Django101/venv/lib/python3.5/site-packages/django_secrets/startup.py", line 4, in <module>
from six.moves import input
ImportError: No module named 'six'
The error message is pretty clear. After I installed the module six pip install six
the error went away. I suggest you should add six to the required packages.
can i close comments?
What do you think about storing encrypted secrets in the file uploadable to the remote repository?
On production it's auto-decoded via the only master key stored in the ENV, while on development key is stored in the local ENV or git-ignored file.
They use alike approach in the Rails.
It will:
Or maybe I'm missing some Django/Python way to achieve these goals?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.