Files @ 2465f2645e2e
Branch filter:

Location: symposion_app/vendor/symposion/sponsorship/urls.py

James Polley
urlize abstracts

I've looked through the database and I can't find any accepted
proposals that actually contain anything to linkify - but I've had
several requests from people that I think are reasonable, things like
being able to link to their project (we ask them to provide a project
url but we don't use that link)

This seems like a reasonably fast way to let those people add a
link. We still have to manually accept changes to their proposal so we
have a chance to look at the content of the url if we want.

The urlize filter adds rel=nofollow to the link automatically.
from django.conf.urls import url
from django.views.generic import TemplateView

from .views import (
    sponsor_apply,
    sponsor_add,
    sponsor_zip_logo_files,
    sponsor_detail
)

urlpatterns = [
    url(r"^$", TemplateView.as_view(template_name="symposion/sponsorship/list.html"), name="sponsor_list"),
    url(r"^apply/$", sponsor_apply, name="sponsor_apply"),
    url(r"^add/$", sponsor_add, name="sponsor_add"),
    url(r"^ziplogos/$", sponsor_zip_logo_files, name="sponsor_zip_logos"),
    url(r"^(?P<pk>\d+)/$", sponsor_detail, name="sponsor_detail"),
]