#16161: If extra static files are added into STATIC_ROOT, they are transformed 
to
symlinks in the next run of ``collectstatic -l``
------------------------------------+-------------------------------------
               Reporter:  gnotaras  |          Owner:  nobody
                   Type:  Bug       |         Status:  new
              Milestone:            |      Component:  contrib.staticfiles
                Version:  1.3       |       Severity:  Normal
             Resolution:            |       Keywords:
           Triage Stage:  Accepted  |      Has patch:  0
    Needs documentation:  0         |    Needs tests:  0
Patch needs improvement:  0         |  Easy pickings:  0
------------------------------------+-------------------------------------
Changes (by ramiro):

 * type:  Cleanup/optimization => Bug
 * component:  Documentation => contrib.staticfiles


Comment:

 Replying to [comment:2 aaugustin]:
 > You shouldn't put some extra static files in `STATIC_ROOT`.
 >
 > I expected to find a big warning in the docs: "Don't put your static
 files in STATIC_ROOT", but I didn't. We should add it.

 It is [https://docs.djangoproject.com/en/1.3/ref/settings/#std:setting-
 STATIC_ROOT just there], in the `STATIC_ROOT` setting documentation:

 ''Warning''

 This should be an (initially empty) destination directory for collecting
 your static files from their permanent locations into one directory for
 ease of deployment; it is not a place to store your static files
 permanently. You should do that in directories that will be found by
 staticfiles's finders, which by default, are 'static/' app sub-directories
 and any directories you include in STATICFILES_DIRS).

 Replying to [comment:4 gnotaras]:

 > Why would putting extra files in STATIC_ROOT manually be a problem?
 These extra files are still files required for proper display of the web
 site, like a custom logo or a custom image map and the place they belong
 to is STATIC_ROOT.

 No, as per above they belong to a directory listed in `STATICFILES_DIRS`

 But I agree replacing fiels with links to self isn't right.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16161#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to