Git Product home page Git Product logo

django-secrets's People

Contributors

kakulukia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

nitmir bellyfat

django-secrets's Issues

ImportError: No module named six

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.

Store secrets in the encypted file, uploadable to repo

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:

  • let developers in teams share same dev resources, like AWS credentials;
  • eliminate the need of exporting and managing multiple ENVs, stored in plain text.

Or maybe I'm missing some Django/Python way to achieve these goals?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.