Ticket #5095: newforms_settings.patch
File newforms_settings.patch, 517 bytes (added by , 17 years ago) |
---|
-
django/newforms/fields.py
343 343 try: 344 344 from django.conf import settings 345 345 URL_VALIDATOR_USER_AGENT = settings.URL_VALIDATOR_USER_AGENT 346 except ImportError:346 except (ImportError, EnvironmentError): 347 347 # It's OK if Django settings aren't configured. 348 348 URL_VALIDATOR_USER_AGENT = 'Django (http://www.djangoproject.com/)' 349 349