I want to move the templates folder up one level and out of the {{cookiecutter.project_slug}} folder.
I can use this and it works locally but I know it is not correct:
str ( ROOT_DIR + 'templates' )
what is the proper way to format this DIRS?
Here is what Django Cookiecutter uses:
ROOT_DIR = environ.Path ( __file__ ) - 3
APPS_DIR = ROOT_DIR.path ( 'myapp' )
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
str(APPS_DIR.path('templates')),
],
},
},
]
https://github.com/pydanny/cookiecutter-django
cheers.