Be explicit about subdomain_ and maindomain_ urls in plugins

This commit is contained in:
Raphael Michel
2016-03-24 12:57:19 +01:00
parent b2f703ffc0
commit 89f0c5e461
8 changed files with 12 additions and 19 deletions

View File

@@ -3,7 +3,7 @@ from django.conf.urls import include, url
from .views import abort, success
urlpatterns = [
url(r'^(?:(?P<organizer>[^/]+)/)?(?P<event>[^/]+)/paypal/', include([
url(r'^(?P<organizer>[^/]+)/(?P<event>[^/]+)/paypal/', include([
url(r'^abort/$', abort, name='abort'),
url(r'^return/$', success, name='return'),
])),

View File

@@ -0,0 +1,10 @@
from django.conf.urls import include, url
from .views import abort, success
urlpatterns = [
url(r'^(?P<event>[^/]+)/paypal/', include([
url(r'^abort/$', abort, name='abort'),
url(r'^return/$', success, name='return'),
])),
]