server/python/django2/Readme.md
author ymh <ymh.work@gmail.com>
Sun, 14 Jul 2024 22:00:08 +0200
changeset 666 9d6550026232
parent 613 e00a24b711a0
permissions -rw-r--r--
Added tag V00.13.04 for changeset 69d13e7dd286
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
594
b45eb8244cd9 Added default to the RENKAN_USER_DISPLAY_FIELD setting. Will default to the USERFIELD_NAME for the user model
durandn
parents: 593
diff changeset
     1
# RENKAN API - Django REST Framework
b45eb8244cd9 Added default to the RENKAN_USER_DISPLAY_FIELD setting. Will default to the USERFIELD_NAME for the user model
durandn
parents: 593
diff changeset
     2
b45eb8244cd9 Added default to the RENKAN_USER_DISPLAY_FIELD setting. Will default to the USERFIELD_NAME for the user model
durandn
parents: 593
diff changeset
     3
## Configuration
b45eb8244cd9 Added default to the RENKAN_USER_DISPLAY_FIELD setting. Will default to the USERFIELD_NAME for the user model
durandn
parents: 593
diff changeset
     4
b45eb8244cd9 Added default to the RENKAN_USER_DISPLAY_FIELD setting. Will default to the USERFIELD_NAME for the user model
durandn
parents: 593
diff changeset
     5
The following setting can be defined:
b45eb8244cd9 Added default to the RENKAN_USER_DISPLAY_FIELD setting. Will default to the USERFIELD_NAME for the user model
durandn
parents: 593
diff changeset
     6
b45eb8244cd9 Added default to the RENKAN_USER_DISPLAY_FIELD setting. Will default to the USERFIELD_NAME for the user model
durandn
parents: 593
diff changeset
     7
	RENKAN_USER_DISPLAY_FIELD
613
e00a24b711a0 make renkanmanager test run locally
ymh <ymh.work@gmail.com>
parents: 594
diff changeset
     8
e00a24b711a0 make renkanmanager test run locally
ymh <ymh.work@gmail.com>
parents: 594
diff changeset
     9
This defines the field that will be used in your user model to serialize the user information your API will send in the responses. ("username", "external_id"...) Will default to the USERNAME_FIELD of the User Model class.
e00a24b711a0 make renkanmanager test run locally
ymh <ymh.work@gmail.com>
parents: 594
diff changeset
    10
e00a24b711a0 make renkanmanager test run locally
ymh <ymh.work@gmail.com>
parents: 594
diff changeset
    11
## Test
e00a24b711a0 make renkanmanager test run locally
ymh <ymh.work@gmail.com>
parents: 594
diff changeset
    12
e00a24b711a0 make renkanmanager test run locally
ymh <ymh.work@gmail.com>
parents: 594
diff changeset
    13
    $ DJANGO_SETTINGS_MODULE=tests.settings django-admin test renkanmanager