rodrigo@enoch:~/code$ git clone g...@github.com:kakulukia/django-secrets.git
Clonar en «django-secrets»...
remote: Counting objects: 157, done.
remote: Compressing objects: 100% (58/58), done.
remote: Total 157 (delta 48), reused 66 (delta 30), pack-reused 67
Receiving objects: 100% (157/157), 34.45 KiB | 0 bytes/s, done.
Resolving deltas: 100% (74/74), done.
Comprobando la conectividad… hecho.
rodrigo@enoch:~/code$ cd django-
bash: cd: django-: No existe el archivo o el directorio
rodrigo@enoch:~/code$ cd django-secrets/
rodrigo@enoch:~/code/django-secrets$ ls
django_secrets LICENSE Makefile manage.py Pipfile README.rst setup.cfg setup.py
rodrigo@enoch:~/code/django-secrets$ python3 -m venv .env
rodrigo@enoch:~/code/django-secrets$ source .env/bin/activate
(.env) rodrigo@enoch:~/code/django-secrets$ pip install --upgrade pip
Collecting pip
Using cached pip-9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 8.1.1
Uninstalling pip-8.1.1:
Successfully uninstalled pip-8.1.1
Successfully installed pip-9.0.1
(.env) rodrigo@enoch:~/code/django-secrets$ cd django_secrets/
(.env) rodrigo@enoch:~/code/django-secrets/django_secrets$ ls
__init__.py management settings.py startup.py tests.py urls.py utils.py wsgi.py
(.env) rodrigo@enoch:~/code/django-secrets/django_secrets$ cd ..
(.env) rodrigo@enoch:~/code/django-secrets$ python manage.py test
Traceback (most recent call last):
File "manage.py", line 7, in <module>
from django_secrets.startup import check
File "/home/rodrigo/code/django-secrets/django_secrets/startup.py", line 4, in <module>
from six.moves import input
ImportError: No module named 'six'
(.env) rodrigo@enoch:~/code/django-secrets$ pip install six
Collecting six
Using cached six-1.11.0-py2.py3-none-any.whl
Installing collected packages: six
Successfully installed six-1.11.0
(.env) rodrigo@enoch:~/code/django-secrets$ python manage.py test
Secret definitions initialized under secrets/definitions.py
Add your secrets there and fill the values on the next use of a manage.py command.
Secret missing, please fill in the blanks ..
SECRET_KEY: secret
Traceback (most recent call last):
File "manage.py", line 12, in <module>
from django.core.management import execute_from_command_line
ImportError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 18, in <module>
import django # noqa
ImportError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 21, in <module>
"Couldn't import Django. Are you sure it's installed and "
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
(.env) rodrigo@enoch:~/code/django-secrets$ pip install django
Collecting django
Downloading Django-2.0.2-py3-none-any.whl (7.1MB)
100% |████████████████████████████████| 7.1MB 203kB/s
Collecting pytz (from django)
Using cached pytz-2017.3-py2.py3-none-any.whl
Installing collected packages: pytz, django
Successfully installed django-2.0.2 pytz-2017.3
(.env) rodrigo@enoch:~/code/django-secrets$ python manage.py test
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
.
Secret definitions initialized under secrets/definitions.py
Add your secrets there and fill the values on the next use of a manage.py command.
got secret from environment variable (SECOND_SECRET)
E
Use these lines to initialize your secrets ..
export SECRET_KEY="secret"
E
======================================================================
ERROR: test_creating_secrets_folder (django_secrets.tests.SecretTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rodrigo/code/django-secrets/django_secrets/tests.py", line 24, in test_creating_secrets_folder
check()
File "/home/rodrigo/code/django-secrets/django_secrets/startup.py", line 100, in check
reload_module(secrets)
File "/usr/lib/python3.5/importlib/__init__.py", line 166, in reload
_bootstrap._exec(spec, module)
File "<frozen importlib._bootstrap>", line 607, in _exec
AttributeError: 'NoneType' object has no attribute 'name'
======================================================================
ERROR: test_export (django_secrets.tests.SecretTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rodrigo/code/django-secrets/django_secrets/tests.py", line 32, in test_export
command.handle()
File "/home/rodrigo/code/django-secrets/django_secrets/management/commands/export_secrets.py", line 15, in handle
print('export %s="%s"' % (key, getattr(secrets, key)))
AttributeError: module 'secrets.secrets' has no attribute 'SECOND_SECRET'
----------------------------------------------------------------------
Ran 3 tests in 0.004s
FAILED (errors=2)
Destroying test database for alias 'default'...
(.env) rodrigo@enoch:~/code/django-secrets$