fix bug +fix #46

This commit is contained in:
kingmo888 2024-03-10 22:30:59 +08:00
parent 9731c58128
commit 0aec8b49ec

View File

@ -32,7 +32,7 @@ DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
ALLOWED_HOSTS = ["*"]
AUTH_USER_MODEL = 'api.UserProfile' #AppName.自定义user
ALLOW_REGISTRATION = True # 是否允许注册, True为允许False为不允许
ALLOW_REGISTRATION = os.environ.get("ALLOW_REGISTRATION", True) # 是否允许注册, True为允许False为不允许
# Application definition