Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyconbalkan/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')

PDF_PATH = 'pyconbalkan/core/static/pdf/'
PDF_ROOT = os.path.join(BASE_DIR, 'pyconbalkan/core/static/pdf/')
4 changes: 2 additions & 2 deletions pyconbalkan/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
from django.views.static import serve

from pyconbalkan.core import views
from pyconbalkan.settings import BASE_DIR, PDF_PATH
from pyconbalkan.settings import PDF_ROOT

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