# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # from django.conf.urls import patterns, url, include from accounts.views import RegistrationTemplateView urlpatterns = patterns( '', url( r'^email-sent/$', RegistrationTemplateView.as_view( template_name='accounts/email-sent.html', ), name='email-sent' ), url(r'^password/', 'accounts.views.password', name='password'), url(r'^reset/', 'accounts.views.reset_password', name='password_reset'), url(r'^logout/', 'accounts.views.weblate_logout', name='logout'), url(r'^profile/', 'accounts.views.user_profile', name='profile'), url(r'^login/$', 'accounts.views.weblate_login', name='login'), url(r'^register/$', 'accounts.views.register', name='register'), url(r'^email/$', 'accounts.views.email_login', name='email_login'), url(r'', include('social.apps.django_app.urls', namespace='social')), )
urlpatterns = patterns( "", url( r"^register/$", register, { "backend": "registration.backends.default.DefaultBackend", "form_class": RegistrationForm, "extra_context": {"title": _("User registration")}, }, name="weblate_register", ), url( r"^register/complete/$", RegistrationTemplateView.as_view(template_name="registration/registration_complete.html"), name="registration_complete", ), url( r"^register/closed/$", RegistrationTemplateView.as_view(template_name="registration/registration_closed.html"), name="registration_disallowed", ), url( r"^activate/complete/$", RegistrationTemplateView.as_view(template_name="registration/activation_complete.html"), name="registration_activation_complete", ), url( r"^activate/(?P<activation_key>\w+)/$", activate,
from accounts.forms import RegistrationForm from accounts.views import RegistrationTemplateView urlpatterns = patterns( '', url(r'^register/$', register, { 'backend': 'registration.backends.default.DefaultBackend', 'form_class': RegistrationForm, 'extra_context': { 'title': _('User registration') } }, name='weblate_register'), url(r'^register/complete/$', RegistrationTemplateView.as_view( template_name='registration/registration_complete.html'), name='registration_complete'), url(r'^register/closed/$', RegistrationTemplateView.as_view( template_name='registration/registration_closed.html'), name='registration_disallowed'), url(r'^activate/complete/$', RegistrationTemplateView.as_view( template_name='registration/activation_complete.html', ), name='registration_activation_complete'), url(r'^activate/(?P<activation_key>\w+)/$', activate, { 'backend': 'registration.backends.default.DefaultBackend', 'extra_context': { 'title': _('Account activation'), 'expiration_days': settings.ACCOUNT_ACTIVATION_DAYS,