Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

django-devserver staticfiles support #50

Merged
merged 2 commits into from
Dec 30, 2011
Merged

Conversation

manfre
Copy link
Contributor

@manfre manfre commented Dec 7, 2011

Add --staticfiles commandline argument to allow runserver to use the StaticFilesHandler, instead of AdminMediaHandler. Fixes issue #20

…StaticFilesHandler, instead of AdminMediaHandler. Fixes issue dcramer#20
@@ -4,6 +4,8 @@
WSGIServer
from django.core.handlers.wsgi import WSGIHandler

from django.contrib.staticfiles.handlers import StaticFilesHandler
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for myself, but if you beat me to fixing this go for it:

This import needs to happen inline to ensure support for Django versions which didnt have django.contrib.staticfiles

@divadrei
Copy link
Contributor

It should be nice to merge this pull request, you can't use devserver with grappelli without it.

dcramer added a commit that referenced this pull request Dec 30, 2011
django-devserver staticfiles support
@dcramer dcramer merged commit 396eb4f into dcramer:master Dec 30, 2011
@instanceoftom
Copy link

Glad this got pulled

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

Successfully merging this pull request may close these issues.

None yet

4 participants