File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
rest_framework_docs/templates/rest_framework_docs Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 3737 'django.contrib.sessions' ,
3838 'django.contrib.messages' ,
3939 'django.contrib.staticfiles' ,
40+
41+ 'rest_framework' ,
42+ 'rest_framework_docs' ,
4043)
4144
4245MIDDLEWARE_CLASSES = (
Original file line number Diff line number Diff line change 1818
1919urlpatterns = [
2020 url (r'^admin/' , include (admin .site .urls )),
21+ url (r'^docs/' , include ('rest_framework_docs.urls' )),
2122]
Original file line number Diff line number Diff line change 1717
1818 {% regroup endpoints by name_parent as endpoints_grouped %}
1919
20+ {% if endpoints_grouped %}
2021 {% for group in endpoints_grouped %}
22+
2123 < h1 id ="{{ group.grouper|lower }} "> {{group.grouper}}</ h1 >
2224
2325 < div class ="panel-group " role ="tablist ">
@@ -64,5 +66,8 @@ <h4 class="panel-title title">
6466 </ div >
6567
6668 {% endfor %}
69+ {% else %}
70+ < h2 class ="center "> There are currently no api endpoints to document.</ h2 >
71+ {% endif %}
6772
6873{% endblock %}
You can’t perform that action at this time.
0 commit comments