Skip to content
Browse files

django.conf.urls.patterns() is deprecated

  • Loading branch information...
1 parent 59cea3a commit 07a638fcc5e4b88eae27d8f76e823efb04a2cac4 @nkuttler committed
Showing with 22 additions and 27 deletions.
  1. +1 −1 .travis.yml
  2. +14 −18 setup.py
  3. +7 −8 webmaster_verification/urls.py
View
2 .travis.yml
@@ -4,7 +4,7 @@ python:
- 3.4
- 3.5
env:
- - DJANGO_VERSION=Django==1.8.8
+ - DJANGO_VERSION=Django==1.8.9
- DJANGO_VERSION=Django==1.9.1
install:
- pip install -q --use-mirrors $DJANGO_VERSION
View
32 setup.py
@@ -1,18 +1,18 @@
from setuptools import setup, find_packages
setup(
- name = "django-webmaster-verification",
- version = "0.2.4",
- packages = find_packages(),
+ name="django-webmaster-verification",
+ version="0.2.5",
+ packages=find_packages(),
- author = "Nicolas Kuttler",
- author_email = "pypi@kuttler.eu",
- description = "Webmaster tools verification for Django",
- long_description = open("README.rst").read(),
- license = "BSD",
- url = "http://github.com/nkuttler/django-webmaster-verification",
- include_package_data = True,
- classifiers = [
+ author="Nicolas Kuttler",
+ author_email="pypi@kuttler.eu",
+ description="Webmaster tools verification for Django",
+ long_description=open("README.rst").read(),
+ license="BSD",
+ url="http://github.com/nkuttler/django-webmaster-verification",
+ include_package_data=True,
+ classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
@@ -20,16 +20,12 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
"Framework :: Django",
- "Programming Language :: Python :: 2",
- "Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
- "Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
],
- install_requires = [
- "Django >= 1.4",
+ install_requires=[
+ "Django >= 1.8",
],
- zip_safe = True,
+ zip_safe=True,
)
View
15 webmaster_verification/urls.py
@@ -1,4 +1,3 @@
-from django.conf.urls import patterns
from django.conf.urls import url
from .views import GoogleVerificationView
@@ -8,30 +7,30 @@
from .views import AlexaVerificationView
-urlpatterns = patterns('',
+urlpatterns = [
url(
r'^google(?P<code>[0-9a-f]{16})\.html$',
GoogleVerificationView.as_view(),
- name = 'google_verify'
+ name='google_verify'
),
url(
r'^BingSiteAuth\.xml$',
BingVerificationView.as_view(),
- name = 'bing_verify'
+ name='bing_verify'
),
url(
r'^MJ12_(?P<code>[0-9A-F]{32})\.txt$',
MajesticVerificationView.as_view(),
- name = 'majestic_verify'
+ name='majestic_verify'
),
url(
r'^yandex_(?P<code>[0-9a-f]{16})\.txt$',
YandexVerificationView.as_view(),
- name = 'majestic_verify'
+ name='majestic_verify'
),
url(
r'^(?P<code>[0-9a-zA-Z]{27})\.html$',
AlexaVerificationView.as_view(),
- name = 'alexa_verify'
+ name='alexa_verify'
),
-)
+]

0 comments on commit 07a638f

Please sign in to comment.
Something went wrong with that request. Please try again.