-
Notifications
You must be signed in to change notification settings - Fork 602
Don't try to import urlconf unless it's a string. #205
Conversation
seems like something that should have a test for it |
You're perfectly right. Actually, the This adds tests that pass I added |
Okay, after a bit of fiddling with
|
six seemed like a good idea to me too, but apparently django already packages it in django.util, so use that if you can. |
Uh, does GitHub notify on commits or comments only? |
not sure. thanks for the PR. |
Don't try to import urlconf unless it's a string.
When parsing urls, if
request.urlconf
is already a module (eg. when using django-subdomains) we shouldn't try to import it.This checks if
urlconf
is a string before trying to import it.