galaktika-solutions / gStack

A Docker based Django-Postgres-Nginx boilerplate
0 stars 1 forks source link

startapp does not work #27

Closed danieltatrai closed 5 years ago

danieltatrai commented 5 years ago

dc run --rm django django-admin startapp latex

Results: Starting gstacktest-postgres ... done Traceback (most recent call last): File "/python/bin/django-admin", line 11, in sys.exit(execute_from_command_line()) File "/python/lib/python3.6/site-packages/django/core/management/init.py", line 381, in execute_from_command_line utility.execute() File "/python/lib/python3.6/site-packages/django/core/management/init.py", line 325, in execute settings.INSTALLED_APPS File "/python/lib/python3.6/site-packages/django/conf/init.py", line 57, in getattr self._setup(name) File "/python/lib/python3.6/site-packages/django/conf/init.py", line 44, in _setup self._wrapped = Settings(settings_module) File "/python/lib/python3.6/site-packages/django/conf/init.py", line 107, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 665, in _load_unlocked File "", line 678, in exec_module File "", line 219, in _call_with_frames_removed File "/src/django_project/core/settings.py", line 24, in SECRET_KEY = read_secret('DJANGO_SECRET_KEY') File "/src/django_project/core/utils.py", line 9, in read_secret with open(os.path.join(SECRET_MOUNT, secret)) as f: FileNotFoundError: [Errno 2] No such file or directory: '/run/secrets/DJANGO_SECRET_KEY'

File is there, with make bash. 400 permission, owner: django.

If you make bash in, django-admin startapp latex will error with the following: CommandError: [Errno 13] Permission denied: '/src/django_project/latex'

richardbann commented 5 years ago

I will merge gdockutils soon, which solves this issue.

richardbann commented 5 years ago

I close it as irrelevant right now