#15094: Convert STATICFILES_DIRS into a tuple if set as string
--------------------------+-------------------------------------------------
 Reporter:  oxy           |       Owner:  nobody    
   Status:  new           |   Milestone:            
Component:  Contrib apps  |     Version:  SVN       
 Keywords:                |       Stage:  Unreviewed
Has_patch:  0             |  
--------------------------+-------------------------------------------------
 Hi

 If you mistakenly set STATICFILES_DIRS as a string instead of a tuple
 (e.g. forgot the comma), findstatic et al raise an exception like
 {{{
 ValueError: The joined path (/css/main.css) is located outside of the base
 path component (/)
 }}}
 which is not very enlightening in this case.

 Django core solves this for INSTALLED_APPS and TEMPLATE_DIRS nicely in {{{
 django/conf/__init__.py }}} line 93ff.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15094>
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-updates@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