-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
24 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
"""This file contains signals emitted by sitegate.""" | ||
import django.dispatch | ||
|
||
sig_user_signup_success = django.dispatch.Signal(providing_args=['signup_result', 'flow', 'request']) | ||
"""Emitted when user successfully signs up.""" | ||
sig_user_signup_success = django.dispatch.Signal() | ||
"""Emitted when user successfully signs up. | ||
providing_args=['signup_result', 'flow', 'request'] | ||
sig_user_signup_fail = django.dispatch.Signal(providing_args=['signup_result', 'flow', 'request']) | ||
"""Emitted when user sign up fails.""" | ||
""" | ||
|
||
sig_user_signup_fail = django.dispatch.Signal() | ||
"""Emitted when user sign up fails. | ||
providing_args=['signup_result', 'flow', 'request'] | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
from django.conf.urls import url | ||
from django.urls import path | ||
from pytest_djangoapp.compat import get_urlpatterns | ||
|
||
from sitegate.toolbox import get_sitegate_urls | ||
from .views import login, register, HttpResponse | ||
|
||
|
||
urlpatterns = get_urlpatterns([ | ||
url(r'entrance/', lambda r: None), | ||
url(r'^ok/$', lambda r: HttpResponse('ok'), name='ok'), | ||
url(r'^fail/$', lambda r: HttpResponse('fail'), name='fail'), | ||
url(r'^login/$', login, name='login'), | ||
url(r'^register/$', register, name='register'), | ||
path('entrance/', lambda r: None), | ||
path('ok/', lambda r: HttpResponse('ok'), name='ok'), | ||
path('fail/', lambda r: HttpResponse('fail'), name='fail'), | ||
path('login/', login, name='login'), | ||
path('register/', register, name='register'), | ||
] + get_sitegate_urls()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters