forked from ShaastraWebops/ERP
-
Notifications
You must be signed in to change notification settings - Fork 1
/
urls.py
43 lines (38 loc) · 1.55 KB
/
urls.py
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
from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from erp.tasks.views import *
from erp.users.views import *
from erp.home.views import *
from erp.create_test_data import *
import haystack
from haystack.views import SearchView
from haystack.forms import ModelSearchForm
from haystack.forms import SearchForm
from haystack.views import search_view_factory
haystack.autodiscover()
admin.autodiscover()
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',(r'^createdata/', do_it_all),
#search
(r'^search/', include('haystack.urls')),
(r'^search/', search_view_factory(
form_class=ModelSearchForm)),
(r'^erp/$', include('erp.home.urls')),
(r'^erp/home/',include('erp.home.urls')),
#(r'^erp/users/', include('erp.users.urls')),
#(r'^erp/dashboard/',include('erp.dashboard.urls')),
# Make the above 2 URLConfs look like these 2 below
(r'^erp/(?P<owner_name>\w+)/users/', include('erp.users.urls')),
(r'^erp/(?P<owner_name>\w+)/dashboard/',include('erp.dashboard.urls')),
(r'^erp/(?P<owner_name>\w+)/', include('erp.tasks.urls')),
#(r'^now/sign.html$', sign_in, ),
# Examples:
# url(r'^$', 'erp.views.home', name='home'),
# url(r'^erp/', include('erp.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
)