Saturday, October 6, 2012

Re: ./manage.py collectstatic does not collect my folder

Wonderful! I had to add in the files I wanted override inside STATICFILES_DIRS. It works now.

On Saturday, October 6, 2012 11:01:39 PM UTC-7, Xavier Ordoquy wrote:
Hi,

Django static collects files that are:
- in the application's static directory
- in the directories listed by STATICFILES_DIRS

If using the default storage, files and directories are copied into the STATIC_ROOT directory and should be served at the location specified by STATIC_URL

The order in which the applications are declared is important.
If I'm not mistaken, the files in STATICFILES_DIRS will override the application's static directories.

Regards,
Xavier Ordoquy,
Linovia.

Le 7 oct. 2012 à 06:52, easypie <progr...@gmail.com> a écrit :

I have my project setup so ./manage.py collectstatic will upload all the files in /static/ onto the Amazon S3 server. The only problem is that I have a folder located in .../static/theme/{site layout gfx} that doesn't get collected to the S3 server. I understand that collectstatic ?copies all files located in app/static to the location provided by STATIC_URL. But what about those .css and image files I want to override? For example, I want to override the admin's .css files so I  copy that over to the /static/ folder in my project's root but when I run ./manage.py collectstatic it only moves the admin's .css files located in ../site-packages/django/.../css/{..css} and not the css file that I copied over and then edited? 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/1A2_Kn1PH1wJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Us2xCBw2qFMJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate