Skip to content

Commit 1083907

Browse files
author
Kátia Nakamura
committed
coc: add code of conduct view with pdf
1 parent b02e32a commit 1083907

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed
429 KB
Binary file not shown.

pyconbalkan/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@
119119
# https://docs.djangoproject.com/en/1.11/howto/static-files/
120120

121121
STATIC_URL = '/static/'
122-
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
122+
STATIC_ROOT = os.path.join(BASE_DIR, 'pyconbalkan/core/static')

pyconbalkan/urls.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616
from django.conf.urls import url
1717
from django.contrib import admin
1818

19+
from pyconbalkan import settings
1920
from pyconbalkan.core import views
21+
from django.views.static import serve
2022

2123
urlpatterns = [
2224
url(r'^$', views.home, name='index'),
25+
url(r'^coc$', serve, {'path': '/pdf/coc_pyconbalkan.pdf', 'document_root': settings.STATIC_ROOT}),
2326
url(r'^admin/', admin.site.urls),
2427
]

0 commit comments

Comments
 (0)