Link rest api on website
This commit is contained in:
parent
3a68972c03
commit
c065720ded
@ -23,6 +23,6 @@ from parts import views as parts_views
|
||||
urlpatterns = [
|
||||
url(r'^admin/login/', parts_views.login_view),
|
||||
path('admin/', admin.site.urls),
|
||||
path('api/v1/', include('api.urls')),
|
||||
path('api/v1/', include('api.urls'), name='api-root'),
|
||||
path('', include('parts.urls')),
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
@ -36,6 +36,7 @@
|
||||
<a href="#" class="nav-link dropdown-toggle text-primary" id="navbar-user-dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">{{ base.navbar.username }}</a>
|
||||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbar-user-dropdown">
|
||||
<li><a class="dropdown-item" href="{% url 'logout' %}">Logout</a></li>
|
||||
<li><a class="dropdown-item" href="{% url 'api-root' %}">REST API</a></li>
|
||||
{% if base.navbar.show_admin %}
|
||||
<li><a class="dropdown-item text-success" href="{% url 'admin:index' %}">Administration</a></li>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user