#14709: staticfiles app seems forced upon me
-----------------------------------+----------------------------------------
          Reporter:  jcscoobyrs    |         Owner:  nobody     
            Status:  new           |     Milestone:             
         Component:  Contrib apps  |       Version:  1.3-alpha  
        Resolution:                |      Keywords:  staticfiles
             Stage:  Unreviewed    |     Has_patch:  0          
        Needs_docs:  0             |   Needs_tests:  0          
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Comment (by jcscoobyrs):

 I did figure out a good way to workaround this.  Since the only time I
 need Django to be involved in my static file serving is in DEBUG/developer
 mode, I was able to succumb to the new requirement and I set the
 STATICFILES_URL/STATICFILES_DIRS settings.  With those two settings in
 place, I was able to use the staticfiles_urlpatterns from
 django.contrib.staticfiles.urls.  Now, this all makes sense because of the
 following:

 * The default TEMPLATE_CONTEXT_PROCESSORS includes the
 django.contrib.staticfiles.context_processors.staticfiles processor
 * The STATICFILES_URL is only checked in DEBUG mode
 * My urls only include the staticfiles_urlpatterns url(s) in DEBUG mode

 I guess since there is a workaround this isn't that big of a deal, at
 least for me.  I still think there is a good bit of confusion around the
 staticfiles app when it comes to how this problem manifested.  The reason
 it's confusing is because I didn't enable any django.contrib.staticfiles
 app yet I'm getting errors related to this app.  The error makes you feel
 forced to use the staticfiles app and the only way to avoid it is using
 the workaround I documented earlier.  I even wonder if my workaround above
 is working by mistake.  While I know why this is happening and I have a
 working workaround (for now), I still can't tell if this should be
 happening the way it is.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14709#comment:2>
Django <http://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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to