Skip to content

Commit c3484b8

Browse files
author
Kátia Nakamura
authored
Merge pull request #3 from PythonBalkan/develop
settings: replace PDF_PATH to PDF_ROOT instead
2 parents 68ed2f3 + d1bfd8e commit c3484b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyconbalkan/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@
121121
STATIC_URL = '/static/'
122122
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
123123

124-
PDF_PATH = 'pyconbalkan/core/static/pdf/'
124+
PDF_ROOT = os.path.join(BASE_DIR, 'pyconbalkan/core/static/pdf/')

pyconbalkan/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
from django.views.static import serve
2121

2222
from pyconbalkan.core import views
23-
from pyconbalkan.settings import BASE_DIR, PDF_PATH
23+
from pyconbalkan.settings import PDF_ROOT
2424

2525
urlpatterns = [
2626
url(r'^$', views.home, name='index'),
27-
url(r'^coc$', serve, {'path': 'coc_pyconbalkan.pdf', 'document_root': os.path.join(BASE_DIR, PDF_PATH)}),
27+
url(r'^coc$', serve, {'path': 'coc_pyconbalkan.pdf', 'document_root': PDF_ROOT}),
2828
url(r'^admin/', admin.site.urls),
2929
]

0 commit comments

Comments
 (0)