Skip to content
This repository has been archived by the owner on Jan 9, 2018. It is now read-only.

Fix ImportError on Django 1.5.5 #40

Open
streeter opened this issue Oct 29, 2013 · 4 comments
Open

Fix ImportError on Django 1.5.5 #40

streeter opened this issue Oct 29, 2013 · 4 comments

Comments

@streeter
Copy link

In Django 1.5.5, WSGIServerException was removed. Because that was removed, the runserver command can no longer import the Exception.

I'm not sure what you think the best way to fix this would be, as the django-staticfiles runserver command tries to pretty-print the exception, but I'm happy to create the pull request if you've got a preference.

streeter added a commit to streeter/django-staticfiles that referenced this issue Oct 29, 2013
@streeter
Copy link
Author

So I found out why we were using django-staticfiles on Django 1.5. We wanted the staticfiles features in 1.4, so we needed the backport of the Django 1.5 version (which this is). In addition, we were using STATICFILES_IGNORE_PATTERNS for a couple files. I've since removed those files from the repo and migrated to using the contrib app. But It'd be great to have support for STATICFILES_IGNORE_PATTERNS in contrib.

@jezdez
Copy link
Owner

jezdez commented Nov 3, 2013

@streeter The contrib app contains a --ignore management command option, which should be enough. Introducing any kind of setting is seen as a step backwards for Django.

@streeter
Copy link
Author

streeter commented Nov 4, 2013

@jezdez yeah, that seems reasonable to me.

@raianul
Copy link

raianul commented Feb 28, 2014

I am using Django 1.6.1, STATICFILES_IGNORE_PATTERNS is not also working here.

@jezdez you said --ignore is enough, but based on my app, I would like to set some directory dynamically while run collectstatci. for an example -

static / 
         x/
               css/
               js/
               img/
         y/
              css / 
              js/ 
              img/
         z/
              css/
              js/
             img /

Where x, y, z is my specific website. Like this way I have 100 more directory.

When I run the collectstatic command, its getting error which is mentioned is here - #17

@jezdez is there any way to solved my problem ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants