django-docker-bootstrap icon indicating copy to clipboard operation
django-docker-bootstrap copied to clipboard

No data folder in project setup

Open akashpatni opened this issue 9 years ago • 1 comments

Hi,

In django;s run.py file there is three line of code which is giving permission error:

ensure_dir('/data/logs/django', owner='developer', group='developer')
ensure_dir('/data/static', owner='developer', group='developer')
ensure_dir('/src/locale', owner='developer', group='developer')

Error:

chown: changing ownership of ‘/data/static’: Operation not permitted django_1 | chgrp: changing group of ‘/data/static’: Operation not permitted django_1 | chmod: changing permissions of ‘/data/static’: Operation not permitted

so because of this there is no data or src/locale folder in my project setup and when I running the project in DEBUF- false mode it is running collestatuc command which is also giving permission error like below:

PermissionError: [Errno 13] Permission denied: '/data/static/images'

raise CalledProcessError(retcode, process.args, output=output) django_1 | subprocess.CalledProcessError: Command '['django-admin', 'collectstatic', '--noinput', '-i', 'react']' returned non-zero exit status 1

Any help on this

Thanks

akashpatni avatar Oct 05 '16 05:10 akashpatni

Try to start a django container with shell and check the folder inside a running container, if it's not there then you should create it manually, but it's strange because I never had a problem like this. How long ago you created this project? Maybe you should start a new one with the current version.

legios89 avatar Oct 05 '16 08:10 legios89