[Django]-Django URLs without function in views

11👍

You can use TemplateView.

from django.views.generic import TemplateView

    url(r'^addmusic/$', TemplateView.as_view(template_name="addmusic.html"), name='add-muusic'),
👤elssar

Leave a comment