Guest User

Untitled

a guest
Jul 18th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. {% extends "rest_framework/base.html" %}
  2.  
  3.  
  4. {% block title %} Handy Dev Hints - API {% endblock %}
  5.  
  6. {% block branding %}
  7. <span>
  8. <a class='navbar-brand' rel="nofollow" href="{% url 'html' %}">
  9. -----HTML View----- <span class="version">1</span>
  10. </a>
  11. </span>
  12. {% endblock %}
  13.  
  14. TEMPLATES = [
  15. {
  16. 'BACKEND': 'django.template.backends.django.DjangoTemplates',
  17. 'DIRS': [BASE_DIR, os.path.join(BASE_DIR, 'templates')],
  18. 'APP_DIRS': True,
  19. 'OPTIONS': {
  20. 'context_processors': [
  21. 'django.template.context_processors.debug',
  22. 'django.template.context_processors.request',
  23. 'django.contrib.auth.context_processors.auth',
  24. 'django.contrib.messages.context_processors.messages',
  25. ],
  26. },
  27. },
  28. ]
  29.  
  30. <!DOCTYPE html>
  31. .
  32. .
  33. .
  34. {% block body %}
  35. <body class="{% block bodyclass %}{% endblock %}">
  36.  
  37. <div class="wrapper">
  38. {% block navbar %}
  39. <div class="navbar navbar-static-top {% block bootstrap_navbar_variant %}navbar-inverse{% endblock %}"
  40. role="navigation" aria-label="{% trans "navbar" %}">
  41. <div class="container">
  42. <span>
  43. {% block branding %}
  44. <a class='navbar-brand' rel="nofollow" href="{% url 'html' %}">
  45. -----HTML View-----
  46. </a>
  47. {% endblock %}
Add Comment
Please, Sign In to add comment