2015-01-26 22:47:49 +01:00
|
|
|
"""
|
|
|
|
This module defines the URL patterns for website related views.
|
|
|
|
|
|
|
|
"""
|
|
|
|
from __future__ import absolute_import, unicode_literals
|
|
|
|
|
|
|
|
from django.conf.urls import patterns, url
|
|
|
|
|
|
|
|
from .views import (
|
|
|
|
AddWebsite,
|
2015-01-27 16:26:10 +01:00
|
|
|
DeleteWebsite,
|
2015-01-26 22:47:49 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
|
|
|
url(r'^(?P<package>\d+)/(?P<domain>[\w0-9.-]+)/create$',
|
|
|
|
AddWebsite.as_view(), name='add_website'),
|
2015-01-27 16:26:10 +01:00
|
|
|
url(r'^(?P<package>\d+)/(?P<domain>[\w0-9.-]+)/(?P<pk>\d+)/delete$',
|
|
|
|
DeleteWebsite.as_view(), name='delete_website'),
|
2015-01-26 22:47:49 +01:00
|
|
|
)
|