feat(api): add API login template to use current login form
ref: #345 #346
This commit is contained in:
@ -74,6 +74,12 @@ if settings.API_ENABLED:
|
||||
]
|
||||
|
||||
|
||||
urlpatterns += [
|
||||
path('api/v2/auth/', include('rest_framework.urls')),
|
||||
]
|
||||
|
||||
|
||||
|
||||
if settings.DEBUG:
|
||||
|
||||
urlpatterns += [
|
||||
|
9
app/templates/rest_framework/login.html
Normal file
9
app/templates/rest_framework/login.html
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
{% extends 'registration/login.html' %}
|
||||
|
||||
|
||||
{% block branding %}
|
||||
<h3 style="margin: 0 0 20px;">Centurion ERP</h3>
|
||||
{% endblock %}
|
||||
|
2
makefile
2
makefile
@ -40,7 +40,7 @@ lint: markdown-mkdocs-lint
|
||||
|
||||
test:
|
||||
cd app
|
||||
pytest --cov --cov-report term --cov-report xml:../artifacts/coverage.xml --cov-report html:../artifacts/coverage/ --junit-xml=../artifacts/unit.JUnit.xml **/tests/unit
|
||||
pytest --cov --cov-report term --cov-report xml:../artifacts/coverage.xml --cov-report html:../artifacts/coverage/ --junit-xml=../artifacts/unit.JUnit.xml **/tests/unit **/tests/functional
|
||||
|
||||
|
||||
clean:
|
||||
|
Reference in New Issue
Block a user