Ticket #4517: global_settings.diff

File global_settings.diff, 576 bytes (added by James Wheare <django@…>, 17 years ago)
  • django/conf/global_settings.py

     
    241241
    242242# The User-Agent string to use when checking for URL validity through the
    243243# isExistingURL validator.
    244 URL_VALIDATOR_USER_AGENT = "Django/0.96pre (http://www.djangoproject.com)"
     244from django.core import management
     245URL_VALIDATOR_USER_AGENT = "Django/%s (http://www.djangoproject.com)" % management.get_version()
    245246
    246247##############
    247248# MIDDLEWARE #
Back to Top