summaryrefslogtreecommitdiff
path: root/codeless/urls.py
blob: 10b6aa383d3cdd27256727b70e04ff2288951cdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    # Examples:
    # url(r'^$', 'codeless.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
    url(r'^shipment/$', 'inventory.views.shipment', name='shipment'),
    url(r'^order/$', 'inventory.views.order', name='order'),
    url(r'^fulfillment/$', 'inventory.views.fulfillment', name='fulfillment'),
    url(r'^payment$', 'inventory.views.payment', name='payment'),
    url(r'^pay/$', 'inventory.views.pay', name='pay'),
    url(r'^signup/$', 'inventory.views.signup', name='signup'),
    url(r'^new_product/$', 'inventory.views.new_product', name='new_product'),
    url(r'^digital_inventory/$', 'inventory.views.digital_inventory', name='digital_inventory'),
    url(r'^add_product/$', 'inventory.views.add_product', name='add_product'),
    url(r'^update_stock/(?P<uid>[\*\w\-]+)$',
        'inventory.views.update_stock', name='update_stock'),
    url(r'^update_status/(?P<uid>[\*\w\-]+)$',
        'inventory.views.update_status', name='update_status'),
    url(r'^home/product/(?P<uid>[\*\w\-]+)$',
        'inventory.views.product', name='product'),
    url(r'^home/$', 'inventory.views.home', name='home'),
    url(r'^accounts/login/$', 'inventory.views.login', name='login'),
    url(r'^logout/$', 'inventory.views.logout', name='logout'),
    url(r'^password_reset/$', auth_views.password_reset,
        {'template_name': 'inventory/reset/password_reset_form.html'},
        name='password_reset'),
    url(r'^password_reset/done/$', auth_views.password_reset_done,
        {'template_name': 'inventory/reset/password_reset_done.html'},
        name='password_reset_done'),
    url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
        auth_views.password_reset_confirm,
        {'template_name': 'inventory/reset/password_reset_confirm.html'},
        name='password_reset_confirm'),
    url(r'^reset/done/$', auth_views.password_reset_complete,
        {'template_name': 'inventory/reset/password_reset_complete.html'},
        name='password_reset_complete'),
]


if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)