Skip to content

Commit

Permalink
Updated staticfiles to handle dev testing
Browse files Browse the repository at this point in the history
  • Loading branch information
renancamm committed Sep 15, 2017
1 parent a9392a9 commit 75db479
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,5 @@ venv
*.pyc
staticfiles
.env

staticfiles/*
File renamed without changes
4 changes: 3 additions & 1 deletion mozblog/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url, include
from django.conf import settings
from django.conf.urls.static import static
from django.views.generic import RedirectView
from django.contrib import admin

Expand All @@ -23,4 +25,4 @@
url(r'^blog/', include('blog.urls')),
url(r'^admin/', admin.site.urls),
url(r'^accounts/', include('django.contrib.auth.urls')),
]
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{% block sidebar %}

{% load static %}
<img src="{% static 'logo.png' %}" alt="logo" class="img-fluid">
<img src="{% static 'blog/logo.png' %}" alt="logo" class="img-fluid">


<nav class="nav flex-column mt-3">
Expand Down

0 comments on commit 75db479

Please sign in to comment.