need to load config early
This commit is contained in:
parent
551be76c8b
commit
5f025c4948
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
from django.core.validators import MaxLengthValidator
|
from django.core.validators import MaxLengthValidator
|
||||||
|
|
||||||
|
#load config from json
|
||||||
|
import app.models
|
||||||
|
app.models.load_config()
|
||||||
|
|
||||||
NEW_USERNAME_LENGTH = 255
|
NEW_USERNAME_LENGTH = 255
|
||||||
|
|
||||||
def monkey_patch_username():
|
def monkey_patch_username():
|
||||||
|
|
Loading…
Reference in a new issue