On Tue, Apr 19, 2016 at 2:43 PM, Sebastian Wain <[email protected]> wrote:
> Hi Rodrigo, > > Hi Sebastian, > I am not using any app yet, just a new project. I just want to modify the > css/js/img created via collectstatic in the same way I do with > collecttemplates. > > When I perform collecttemplates I can change the templates locally and it > works so I expect that modifying css or js files after collectstatic the > local changes will be also used. > > Oh, I got it now. Yup, that's how it works, with templates the "main" takes precedence but with static the apps are used first. I think the main use of collectstatic is for serving it outside django (the wsgi app) in production. In development you may use it for convinience, it saves you from going through each package and extracting, then copy them to an app and modify them there. > Thanks, > Sebastian > Cheers, Rodrigo > > > On Tuesday, April 19, 2016 at 1:55:54 PM UTC-3, Rodrigo Gadea wrote: >> >> I don't understand what is your problem exactly, but it may be that the >> "main" / "root" static/ and template/ are the first considered when >> rendering - if you want to have the static and templates of your apps used, >> try renaming those on the "root" directory to something like >> "base_old.hml", test, and then run "collect*" - and they will be copied and >> "frozen" from your apps. Other problem may be the order that the apps are >> installed in the main settings.py. >> >> HTH, >> Rodrigo >> >> On Tue, Apr 19, 2016 at 1:42 PM, Sebastian Wain <[email protected]> >> wrote: >> >>> I created and empty project, perform a collecttemplates, then >>> collectstatic but mezzanine looks for the static files in the Python >>> packages location. I tried modifying DEBUG to True but the result is the >>> same. >>> >>> Thanks, >>> Sebastian >>> >>> -- >>> 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. >>> >> >> -- > 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. > -- 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.
