Answers for "app in different folder django"

1

make new app folder in django templates dir

#settings.py
TEMPLATES = [
    {
        ...
        'DIRS': [os.path.join(BASE_DIR, 'templates'),
                 os.path.join(BASE_DIR, 'templates', 'the_folder_you_created'),
                ...
                ]
    }
]
Posted by: Guest on June-18-2020
0

django app directory

polls/
    __init__.py
    admin.py
    apps.py
    migrations/
        __init__.py
    models.py
    tests.py
    views.py
Posted by: Guest on September-30-2021

Code answers related to "app in different folder django"

Python Answers by Framework

Browse Popular Code Answers by Language