This repository has been archived by the owner on Feb 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
urls.py
34 lines (29 loc) · 1.25 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
import django.views.static
import os
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
(r'^userprofile/', include('userprofile.urls')),
(r'^devices/', include('devices.urls')),
(r'^vulns/', include('vulnerabilities.urls')),
(r'^scans/', include('scans.urls')),
(r'^plugins/', include('plugins.urls')),
(r'^falsepositives/', include('falsepositives.urls')),
(r'^subscriptions/', include('subscriptions.urls')),
(r'^compliance/', include('compliance.urls')),
# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
(r'^', include('reaper.sarim.urls')),
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
)
if settings.DEBUG:
urlpatterns += patterns('',
url(r'^site_media/(?P<path>.*)$', django.views.static.serve,
{'document_root': os.path.join(settings.PROJECT_ROOT,'common','static')}, name='static'),
)