If a file with a particular name already exists in your project's static 
directory it will be replaced so the best practice is to always keep static 
files in some separate app.

Hi, put you comment above.
So, what do you mean by keep static files in some separate app?
I already keep my customized static file in the theme app. Or do you mean 
keep different name?

Wesley

在 2014年5月26日星期一UTC+8下午9时45分49秒,Josh Cartmell写道:
>
> Hey Wesley I would read up on how Django handles static files, 
> https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/, 
> particularly the collecstatic command part of the down the page.
>
> Basically, if your theme app is in INSTALLED_APPS, running collectstatic 
> will copy files from theme/static to your project's static directory (the 
> intention is for them to be served by your front end server from there).  
> If a file with a particular name already exists in your project's static 
> directory it will be replaced so the best practice is to always keep static 
> files in some separate app.
>
>
> On Sun, May 25, 2014 at 9:31 PM, Wesley <[email protected] <javascript:>>wrote:
>
>> Sorry but I don't understand what you said exactly...
>>
>> I have put the theme app in the highest of installed apps.
>> And run collectstatic then.
>>
>> Static under theme app not collected to project static which I think 
>> should be OK.
>> If not, what will happened if there are same file name between project 
>> static and theme static files?
>>
>> So, still don't know how to fix this:-(
>>
>> 在 2014年5月25日星期日UTC+8上午7时37分18秒,nathan写道:
>>
>>> One of the settings to edit with a customized theme put in the installed 
>>> apps.  Put out in the first of your apps (the highest.) I think a python 
>>> manage.py collectstatic will actually put the files in your static 
>>> directory that you've set. The original files will always be in system wide 
>>> python mezzanine directory or virtualenv
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to