server/python/django2/Readme.md
author ymh <ymh.work@gmail.com>
Fri, 15 Sep 2017 14:11:36 +0200
changeset 658 cac26275af31
parent 613 e00a24b711a0
permissions -rw-r--r--
define version V0.13.02
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