зеркало из https://github.com/nextcloud/appstore.git
use a non secret for key
This commit is contained in:
Родитель
ca2949b4e4
Коммит
38300ed621
3
Makefile
3
Makefile
|
@ -1,5 +1,4 @@
|
|||
# only random once obviously ;)
|
||||
random=$(shell env LC_CTYPE=C tr -dc "a-zA-Z0-9-_\$\?" < /dev/urandom | head -c 64)
|
||||
python=venv/bin/python
|
||||
pip=venv/bin/pip
|
||||
pycodestyle=venv/bin/pycodestyle
|
||||
|
@ -18,6 +17,6 @@ dev-setup:
|
|||
$(pip) install -r $(CURDIR)/dev-requirements.txt
|
||||
$(manage) migrate
|
||||
$(manage) loaddata $(CURDIR)/nextcloudappstore/**/fixtures/*.yaml
|
||||
@echo -e "DEBUG = True\nSECRET_KEY = '$(random)'" > $(CURDIR)/nextcloudappstore/local_settings.py
|
||||
@echo -e "DEBUG = True\nSECRET_KEY = 'not a secret'" > $(CURDIR)/nextcloudappstore/local_settings.py
|
||||
@echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', 'admin')" | $(manage) shell
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче