#14709: staticfiles app seems forced upon me
--------------------------+-------------------------------------------------
 Reporter:  jcscoobyrs    |       Owner:  nobody    
   Status:  new           |   Milestone:            
Component:  Contrib apps  |     Version:  1.3-alpha 
 Keywords:  staticfiles   |       Stage:  Unreviewed
Has_patch:  0             |  
--------------------------+-------------------------------------------------
 I just updated my Django to the latest dev (14587) and I'm finding that
 the staticfiles app (django.contrib.staticfiles) seems to be forced upon
 me.  Prior to updating, my Django app was serving static files in
 development mode the way the documentation suggested which used MEDIA_ROOT
 and MEDIA_URL.  After I updated Django, I get the following:

 Validating models...

 0 errors found
 Django version 1.3 alpha 1 SVN-14587, using settings
 'singularity.settings'
 Development server is running at http://127.0.0.1:8000/
 Quit the server with CONTROL-C.
 Unhandled exception in thread started by <bound method Command.inner_run
 of <django.core.management.commands.runserver.Command object at
 0x10133c9d0>>
 Traceback (most recent call last):
   File "/Library/Python/2.6/site-
 packages/django/core/management/commands/runserver.py", line 83, in
 inner_run
     handler = self.get_handler(*args, **options)
   File "/Library/Python/2.6/site-
 packages/django/core/management/commands/runserver.py", line 115, in
 get_handler
     return AdminMediaHandler(handler, options.get('admin_media_path', ''))
   File "/Library/Python/2.6/site-
 packages/django/contrib/staticfiles/handlers.py", line 23, in __init__
     utils.check_settings()
   File "/Library/Python/2.6/site-
 packages/django/contrib/staticfiles/utils.py", line 40, in check_settings
     raise ImproperlyConfigured("The MEDIA_URL and STATICFILES_URL "
 django.core.exceptions.ImproperlyConfigured: The MEDIA_URL and
 STATICFILES_URL settings must have individual values

 Now...my settings.py wasn't updated to have the staticfiles app installed
 so I'm confused.  Being a development version of Django, I go to the docs
 and I see serving static files is documented differently.  I also see that
 the TEMPLATE_CONTEXT_PROCESSORS includes the staticfiles context processor
 by default.  My first thought was to remove that by overriding the default
 for TEMPLATE_CONTEXT_PROCESSORS but I still get the error above.  I don't
 mind using the staticfiles app but it shouldn't be forced upon me like it
 appears to have been.  Existing Django apps shouldn't fail upon startup or
 there should at least be some documented way to completely turn off the
 new staticfiles app.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14709>
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 [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