prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Django 1.10 support
  https://github.com/kavdev/dj-stripe/blob/master/djstripe/__init__.py#L19
  
  `'1.10'` is less than `'1.7.x'`
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `djstripe/__init__.py`
  Content:
  ```
  1 from __future__ import unicode_literals
  2 import warnings
  3 
  4 from django import get_version as get_django_version
  5 
  6 __title__ = "dj-stripe"
  7 __summary__ = "Django + Stripe Made Easy"
  8 __uri__ = "https://github.com/kavdev/dj-stripe/"
  9 
  10 __version__ = "0.9.0.dev0"
  11 
  12 __author__ = "Alexander Kavanaugh"
  13 __email__ = "contact@kavdev.io"
  14 
  15 __license__ = "BSD"
  16 __license__ = "License :: OSI Approved :: BSD License"
  17 __copyright__ = "Copyright 2016 Alexander Kavanaugh"
  18 
  19 if get_django_version() <= '1.7.x':
  20     msg = "dj-stripe deprecation notice: Django 1.7 and lower are no longer\n" \
  21         "supported. Please upgrade to Django 1.8 or higher.\n" \
  22         "Reference: https://github.com/kavdev/dj-stripe/issues/275"
  23     warnings.warn(msg)
  24
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/djstripe/__init__.py b/djstripe/__init__.py
  --- a/djstripe/__init__.py
  +++ b/djstripe/__init__.py
  @@ -1,7 +1,7 @@
   from __future__ import unicode_literals
   import warnings
   
  -from django import get_version as get_django_version
  +from django import VERSION as django_version
   
   __title__ = "dj-stripe"
   __summary__ = "Django + Stripe Made Easy"
  @@ -16,7 +16,7 @@
   __license__ = "License :: OSI Approved :: BSD License"
   __copyright__ = "Copyright 2016 Alexander Kavanaugh"
   
  -if get_django_version() <= '1.7.x':
  +if django_version < (1, 8):
       msg = "dj-stripe deprecation notice: Django 1.7 and lower are no longer\n" \
           "supported. Please upgrade to Django 1.8 or higher.\n" \
           "Reference: https://github.com/kavdev/dj-stripe/issues/275"
  
verification_info: {"golden_diff": "diff --git a/djstripe/__init__.py b/djstripe/__init__.py\n--- a/djstripe/__init__.py\n+++ b/djstripe/__init__.py\n@@ -1,7 +1,7 @@\n from __future__ import unicode_literals\n import warnings\n \n-from django import get_version as get_django_version\n+from django import VERSION as django_version\n \n __title__ = \"dj-stripe\"\n __summary__ = \"Django + Stripe Made Easy\"\n@@ -16,7 +16,7 @@\n __license__ = \"License :: OSI Approved :: BSD License\"\n __copyright__ = \"Copyright 2016 Alexander Kavanaugh\"\n \n-if get_django_version() <= '1.7.x':\n+if django_version < (1, 8):\n     msg = \"dj-stripe deprecation notice: Django 1.7 and lower are no longer\\n\" \\\n         \"supported. Please upgrade to Django 1.8 or higher.\\n\" \\\n         \"Reference: https://github.com/kavdev/dj-stripe/issues/275\"\n", "issue": "Django 1.10 support\nhttps://github.com/kavdev/dj-stripe/blob/master/djstripe/__init__.py#L19\n\n`'1.10'` is less than `'1.7.x'`\n\n", "before_files": [{"content": "from __future__ import unicode_literals\nimport warnings\n\nfrom django import get_version as get_django_version\n\n__title__ = \"dj-stripe\"\n__summary__ = \"Django + Stripe Made Easy\"\n__uri__ = \"https://github.com/kavdev/dj-stripe/\"\n\n__version__ = \"0.9.0.dev0\"\n\n__author__ = \"Alexander Kavanaugh\"\n__email__ = \"contact@kavdev.io\"\n\n__license__ = \"BSD\"\n__license__ = \"License :: OSI Approved :: BSD License\"\n__copyright__ = \"Copyright 2016 Alexander Kavanaugh\"\n\nif get_django_version() <= '1.7.x':\n    msg = \"dj-stripe deprecation notice: Django 1.7 and lower are no longer\\n\" \\\n        \"supported. Please upgrade to Django 1.8 or higher.\\n\" \\\n        \"Reference: https://github.com/kavdev/dj-stripe/issues/275\"\n    warnings.warn(msg)\n", "path": "djstripe/__init__.py"}], "after_files": [{"content": "from __future__ import unicode_literals\nimport warnings\n\nfrom django import VERSION as django_version\n\n__title__ = \"dj-stripe\"\n__summary__ = \"Django + Stripe Made Easy\"\n__uri__ = \"https://github.com/kavdev/dj-stripe/\"\n\n__version__ = \"0.9.0.dev0\"\n\n__author__ = \"Alexander Kavanaugh\"\n__email__ = \"contact@kavdev.io\"\n\n__license__ = \"BSD\"\n__license__ = \"License :: OSI Approved :: BSD License\"\n__copyright__ = \"Copyright 2016 Alexander Kavanaugh\"\n\nif django_version < (1, 8):\n    msg = \"dj-stripe deprecation notice: Django 1.7 and lower are no longer\\n\" \\\n        \"supported. Please upgrade to Django 1.8 or higher.\\n\" \\\n        \"Reference: https://github.com/kavdev/dj-stripe/issues/275\"\n    warnings.warn(msg)\n", "path": "djstripe/__init__.py"}]}