Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% extends "rest_framework/base.html" %}
- {% block title %} Handy Dev Hints - API {% endblock %}
- {% block branding %}
- <span>
- <a class='navbar-brand' rel="nofollow" href="{% url 'html' %}">
- -----HTML View----- <span class="version">1</span>
- </a>
- </span>
- {% endblock %}
- TEMPLATES = [
- {
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [BASE_DIR, os.path.join(BASE_DIR, 'templates')],
- 'APP_DIRS': True,
- 'OPTIONS': {
- 'context_processors': [
- 'django.template.context_processors.debug',
- 'django.template.context_processors.request',
- 'django.contrib.auth.context_processors.auth',
- 'django.contrib.messages.context_processors.messages',
- ],
- },
- },
- ]
- <!DOCTYPE html>
- .
- .
- .
- {% block body %}
- <body class="{% block bodyclass %}{% endblock %}">
- <div class="wrapper">
- {% block navbar %}
- <div class="navbar navbar-static-top {% block bootstrap_navbar_variant %}navbar-inverse{% endblock %}"
- role="navigation" aria-label="{% trans "navbar" %}">
- <div class="container">
- <span>
- {% block branding %}
- <a class='navbar-brand' rel="nofollow" href="{% url 'html' %}">
- -----HTML View-----
- </a>
- {% endblock %}
Add Comment
Please, Sign In to add comment