Changeset - 2388d47b60c4
[Not reviewed]
0 1 0
Christopher Neugebauer - 5 years ago 2017-08-16 04:57:51
chrisjrn@gmail.com
makes static urls work
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
pinaxcon/urls.py
Show inline comments
...
 
@@ -3,2 +3,3 @@ from django.conf.urls import include, url
 
from django.conf.urls.static import static
 
from django.contrib.staticfiles.templatetags.staticfiles import static as _static
 
from django.views.generic import TemplateView
...
 
@@ -6,2 +7,3 @@ from django.views.generic import RedirectView
 

	
 

	
 
from django.contrib import admin
...
 
@@ -40,4 +42,4 @@ urlpatterns = [
 
    # sponsor
 
    url(r"^sponsors/prospectus$", RedirectView.as_view(url="/static/assets/northbaypython_prospectus.pdf"), name="sponsors/prospectus"),
 
    url(r"^northbaypython_prospectus.pdf$", RedirectView.as_view(url="/static/assets/northbaypython_prospectus.pdf"), name="northbaypython_prospectus.pdf"),
 
    url(r"^sponsors/prospectus$", RedirectView.as_view(url=_static("assets/northbaypython_prospectus.pdf")), name="sponsors/prospectus"),
 
    url(r"^northbaypython_prospectus.pdf$", RedirectView.as_view(url=_static("assets/northbaypython_prospectus.pdf")), name="northbaypython_prospectus.pdf"),
 
    url(r"^sponsors/become-a-sponsor$", TemplateView.as_view(template_name="static_pages/sponsors/become_a_sponsor.html"), name="sponsors/become-a-sponsor"),
0 comments (0 inline, 0 general)