__init__.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. r"""
  2. ______ _____ _____ _____ __
  3. | ___ \ ___/ ___|_ _| / _| | |
  4. | |_/ / |__ \ `--. | | | |_ _ __ __ _ _ __ ___ _____ _____ _ __| |__
  5. | /| __| `--. \ | | | _| '__/ _` | '_ ` _ \ / _ \ \ /\ / / _ \| '__| |/ /
  6. | |\ \| |___/\__/ / | | | | | | | (_| | | | | | | __/\ V V / (_) | | | <
  7. \_| \_\____/\____/ \_/ |_| |_| \__,_|_| |_| |_|\___| \_/\_/ \___/|_| |_|\_|
  8. """
  9. import django
  10. __title__ = 'Django REST framework'
  11. __version__ = '3.13.1'
  12. __author__ = 'Tom Christie'
  13. __license__ = 'BSD 3-Clause'
  14. __copyright__ = 'Copyright 2011-2019 Encode OSS Ltd'
  15. # Version synonym
  16. VERSION = __version__
  17. # Header encoding (see RFC5987)
  18. HTTP_HEADER_ENCODING = 'iso-8859-1'
  19. # Default datetime input and output formats
  20. ISO_8601 = 'iso-8601'
  21. if django.VERSION < (3, 2):
  22. default_app_config = 'rest_framework.apps.RestFrameworkConfig'
  23. class RemovedInDRF313Warning(DeprecationWarning):
  24. pass
  25. class RemovedInDRF314Warning(PendingDeprecationWarning):
  26. pass