Project Structure in Django

2

I installed Django in a project and would like to leave the folder structure somewhat similar to Laravel. I can organize myself better like this. But I do not know if it's possible using such a framework.

I would like this:

PROJETO
--- venv
--- site
    --- settings.py
    --- urls.py
--- app_1
--- app_2
--- app_3
--- resources
    --- sass
    --- js
--- dist
    --- css
    --- js
    --- img

I'd like to use gulp to compile the files from within the resources folder to the dist folder.

This folder dist would like my folder static . I even mounted the structure, but I can not point it in my settings.py to read its files.

My file settings.py looks like this:

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'dist')

I do not know if I'm doing it right.

    
asked by anonymous 27.12.2017 / 14:27

0 answers