portal: urls and views + removed crispy forms
[myslice.git] / portal / urls.py
1 # -*- coding: utf-8 -*-
2 #
3 # portal/urls.py: URL mappings for the portal application
4 # This file is part of the Manifold project.
5 #
6 # Authors:
7 #   Jordan AugĂ© <jordan.auge@lip6.fr>
8 # Copyright 2013, UPMC Sorbonne UniversitĂ©s / LIP6
9 #
10 # This program is free software; you can redistribute it and/or modify it under
11 # the terms of the GNU General Public License as published by the Free Software
12 # Foundation; either version 3, or (at your option) any later version.
13
14 # This program is distributed in the hope that it will be useful, but WITHOUT
15 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 # FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17 # details.
18
19 # You should have received a copy of the GNU General Public License along with
20 # this program; see the file COPYING.  If not, write to the Free Software
21 # Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23 from django.conf.urls import patterns, url
24
25 # DEPRECATED #from django.forms.formsets import formset_factory
26 # DEPRECATED #from portal.forms import RegisterUserForm, RegisterUserStep2Form
27 # DEPRECATED #from portal.views import RegisterUserWizardView
28 from portal import views
29
30 # DEPRECATED #named_register_forms = (
31 # DEPRECATED #    ("step1", RegisterUserForm),
32 # DEPRECATED #    ("step2", RegisterUserStep2Form)
33 # DEPRECATED #)
34 # DEPRECATED #
35 # DEPRECATED #register_wizard = RegisterUserWizardView.as_view(named_register_forms,
36 # DEPRECATED #    url_name="register_wizard_step")
37
38 urlpatterns = patterns('',
39     # User registration
40     url(r'^user/register/?$',  views.user_register,  name='user_register'),
41     # Slice request
42     url(r'^user/validate/?$',  views.user_validate,  name='user_validate'),
43     # User confirmation
44     url(r'^slice/request/?$',  views.slice_request,  name='slice_request'),
45     # Slice confirmation
46     url(r'^slice/validate/?$', views.slice_validate, name='slice_validate'),
47 )
48
49 # DEPRECATED #    url(r'^$', views.index, name='index'),
50 # DEPRECATED #    url(r"^registerwizard/(?P<step>[-\w]+)/$", register_wizard,
51 # DEPRECATED #        name="register_wizard_step"),
52 # DEPRECATED #    url(r"^registerwizard/$", register_wizard, name="register_wizard")