mirror of https://github.com/zulip/zulip.git
Serve static files
(imported from commit 143e6273d660ccc54fd1d5170e9d180e82fed5f0)
This commit is contained in:
parent
098618df72
commit
d8e29c3ffe
|
@ -1,4 +1,6 @@
|
|||
from django.conf import settings
|
||||
from django.conf.urls import patterns, include, url
|
||||
import os.path
|
||||
|
||||
# Uncomment the next two lines to enable the admin:
|
||||
# from django.contrib import admin
|
||||
|
@ -14,6 +16,8 @@ urlpatterns = patterns('',
|
|||
url(r'^accounts/login/', 'django.contrib.auth.views.login', {'template_name': 'zephyr/login.html'}),
|
||||
url(r'^accounts/logout/', 'django.contrib.auth.views.logout', {'template_name': 'zephyr/index.html'}),
|
||||
url(r'^accounts/register/', 'zephyr.views.register', name='register'),
|
||||
url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
|
||||
{'document_root': os.path.join(settings.SITE_ROOT, 'static/')})
|
||||
|
||||
# Uncomment the admin/doc line below to enable admin documentation:
|
||||
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
||||
|
|
Loading…
Reference in New Issue