I wouldn't mind having these in the project template. They're already the 
example values in the docs. It could make it slightly easier for beginners.

STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [os.path.join(BASE_DIR, 'templates')],
        'APP_DIRS': True,
    }
]


On Saturday, 7 November 2015 22:16:26 UTC-5, René Fleschenberg wrote:
>
> Hi, 
>
> It is quite common to configure TEMPLATES and STATICFILES_DIRS such that 
> you 
> can override the templates and static files of installed apps from some 
> central location. 
>
> Maybe startproject should actually generate settings to do this by 
> default? 
>
> STATICFILES_DIRS = ( 
>     os.path.join(BASE_DIR, 'static'), 
> ) 
>
> Or maybe: 
>
> STATICFILES_DIRS = ( 
>     os.path.join(BASE_DIR, 'mysite', 'static'), 
> ) 
>
> In my experience, this is a real pain point for beginners, and doing this 
> shouldn't hurt anyone. What do you think? 
>
> Also, do you think that templates and static files should be treated 
> differently in this regard? The docs currently suggest such a 
> configuration 
> for static files, but not for templates. I'd argue that it's more 
> important 
> for templates, but it cannot harm to do it for both. 
>
> -- 
> René Fleschenberg 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/afa6d398-394e-4995-8b07-1c2f98f779d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to