mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
Merge pull request #57 from ericbuckley/_removing_urls_patterns_func
making urlpatterns a plain list
This commit is contained in:
commit
9692dce612
1 changed files with 3 additions and 4 deletions
|
|
@ -1,8 +1,7 @@
|
|||
from django.conf.urls import patterns, url
|
||||
from django.conf.urls import url
|
||||
from .views import block_view, unblock_ip_view, unblock_username_view
|
||||
|
||||
urlpatterns = patterns(
|
||||
'',
|
||||
urlpatterns = [
|
||||
url(r'^blocks/$', block_view,
|
||||
name="defender_blocks_view"),
|
||||
url(r'^blocks/ip/(?P<ip_address>[a-z0-9-._]+)/unblock$', unblock_ip_view,
|
||||
|
|
@ -10,4 +9,4 @@ urlpatterns = patterns(
|
|||
url(r'^blocks/username/(?P<username>[a-z0-9-._@]+)/unblock$',
|
||||
unblock_username_view,
|
||||
name="defender_unblock_username_view"),
|
||||
)
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue