How can you make a specific action based on the url by base.html?
I have two if -clauses as context statements in base.html. If there is algebra in the GET, then the given context should be shown.
My url.conf
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^algebra/$', 'algebra'),
(r'^mathematics/$', 'mathematics'),
)
My base.html in pseudo-code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<body>
{% if algebra %}
<div>... -- do this -- </div>
{% endif %}
{% if math %}
<div>... -- do this -- </div>
{% endif %}