misc: don't use deprecated patterns object (#18562)

This commit is contained in:
Frédéric Péters 2017-09-09 16:19:13 +02:00
parent af04037584
commit d03ba6d1d4
1 changed files with 4 additions and 4 deletions

View File

@ -15,12 +15,12 @@
# along with this program; if not, see <http://www.gnu.org/licenses/>.
from django.conf import settings
from django.conf.urls import patterns, url
from django.conf.urls import url
urlpatterns = patterns('',
urlpatterns = [
url(r'^$', 'wcs.views.home', name='home'),
url(r'^backoffice/', 'wcs.views.backoffice'),
)
]
# other URLs are handled by the quixote handler
urlpatterns += patterns('', url(r'', 'wcs.compat.quixote', name='quixote'))
urlpatterns.append(url(r'', 'wcs.compat.quixote', name='quixote'))