-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
25 lines (22 loc) · 918 Bytes
/
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
from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic import RedirectView
import django.views.static
import django.contrib.auth.views
import os.path
import settings
urlpatterns = [
url(r'', include('people.urls')),
url(r'^admin/', admin.site.urls),
url(r'^tinymce/', include('tinymce.urls')),
url(r'^login/$', django.contrib.auth.views.login, {'template_name': 'login.html'}, name='login'),
url(r'^logout/$', django.contrib.auth.views.logout, {'next_page': '/'}, name='logout'),
]
# Get Django to serve media files in debug mode.
if settings.DEBUG:
urlpatterns += [url(r'^media/(?P<path>.*)$',
django.views.static.serve,
{'document_root': settings.MEDIA_ROOT})]
admin.site.site_header = 'Family Tree Peter'
admin.site.site_title = 'Family Tree Peter'
admin.site.index_title = 'Family Tree Peter'