add prospectus pdf into static, set up url redirection
This commit is contained in:
parent
6a1f32d4f8
commit
0c14e46ff9
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
BIN
static/assets/northbaypython_prospectus.pdf
Normal file
BIN
static/assets/northbaypython_prospectus.pdf
Normal file
Binary file not shown.
Loading…
Reference in a new issue