描述:django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
解决:
settings中多了几行代码, 删除或放在 secret_keys下方位置.
from rest_framework.pagination import PageNumberPagination
REST_FRAMEWORK = {
'PAGE_SIZE': 2
}
描述:django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
解决:
settings中多了几行代码, 删除或放在 secret_keys下方位置.
from rest_framework.pagination import PageNumberPagination
REST_FRAMEWORK = {
'PAGE_SIZE': 2
}