add prospectus pdf into static, set up url redirection

This commit is contained in:
Joshua Simmons 2017-08-13 16:19:12 -07:00
parent 6a1f32d4f8
commit 0c14e46ff9
2 changed files with 3 additions and 0 deletions

View file

@ -2,6 +2,7 @@ from django.conf import settings
from django.conf.urls import include, url from django.conf.urls import include, url
from django.conf.urls.static import static from django.conf.urls.static import static
from django.views.generic import TemplateView from django.views.generic import TemplateView
from django.views.generic import RedirectView
from django.contrib import admin from django.contrib import admin
@ -41,6 +42,8 @@ urlpatterns = [
# sponsor # sponsor
# TODO add /sponsors # TODO add /sponsors
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"), url(r"^sponsors/become-a-sponsor$", TemplateView.as_view(template_name="static_pages/sponsors/become_a_sponsor.html"), name="sponsors/become-a-sponsor"),
# news # news

Binary file not shown.