I'm not sure.  So when you run collectstatic it doesn't get copied over to
your project's static directory?


On Mon, May 26, 2014 at 9:18 PM, Wesley <nisp...@gmail.com> wrote:

> Hi Josh,
>   Yeah, I do think I am right in the beginning:-)
> My current problem is that, I have a 404.png under theme/static/img, it's
> not available.
>
> When I copy it to project static/img, It's OK...
> So, what's the reason?
>
> Thanks.
> Wesley
>
> 在 2014年5月26日星期一UTC+8下午11时30分27秒,Josh Cartmell写道:
>>
>> I think putting it in your theme app is a good idea so it sounds like
>> what you are doing is correct
>>
>>
>> On Mon, May 26, 2014 at 10:43 AM, Wesley <nis...@gmail.com> wrote:
>>
>>> 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 <nis...@gmail.com> 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 mezzanine-use...@googlegroups.com.
>>>>>
>>>>> 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 mezzanine-use...@googlegroups.com.
>>> 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 mezzanine-users+unsubscr...@googlegroups.com.
> 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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to