Calling manage outside of src/
This commit is contained in:
parent
ab18d46bfe
commit
ceef9bbd55
|
@ -2,6 +2,8 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
sys.path.append(os.path.dirname(__file__))
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
os.environ.setdefault(
|
os.environ.setdefault(
|
||||||
"DJANGO_SETTINGS_MODULE",
|
"DJANGO_SETTINGS_MODULE",
|
||||||
|
|
Loading…
Reference in a new issue