Answers for "django make new application folder"

10

create new django project

django-admin startproject mysite
Posted by: Guest on August-12-2020
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 make new application folder

python manage.py startapp appname
Posted by: Guest on December-07-2020

Python Answers by Framework

Browse Popular Code Answers by Language