Skip to content

Commit

Permalink
update path to include bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Sep 1, 2018
1 parent 6b4167d commit ebcb857
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions edc_reference/templates/edc_reference/bootstrap3/home.html
@@ -0,0 +1,2 @@
{% extends edc_base_template %}
{% load static %}
2 changes: 0 additions & 2 deletions edc_reference/templates/edc_reference/home.html

This file was deleted.

2 changes: 1 addition & 1 deletion edc_reference/urls.py
Expand Up @@ -7,5 +7,5 @@

urlpatterns = [
path('admin/', edc_reference_admin.urls),
path('', RedirectView.as_view(url='admin/edc_reference/'), name='home_url'),
path('', RedirectView.as_view(url='/edc_reference/admin/'), name='home_url'),
]
3 changes: 2 additions & 1 deletion edc_reference/views.py
@@ -1,3 +1,4 @@
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.views.generic.base import TemplateView
Expand All @@ -7,7 +8,7 @@

class HomeView(EdcBaseViewMixin, NavbarViewMixin, TemplateView):

template_name = 'edc_reference/home.html'
template_name = f'edc_reference/bootstrap{settings.EDC_BOOTSTRAP}/home.html'
navbar_name = 'edc_reference'
navbar_selected_item = 'reference'

Expand Down

0 comments on commit ebcb857

Please sign in to comment.