add django.setup
This commit is contained in:
@@ -16,7 +16,6 @@ from django.conf import settings
|
||||
import django
|
||||
|
||||
django.setup()
|
||||
settings.configure()
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
||||
Reference in New Issue
Block a user