mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:39:02 +02:00
manage.py: add workaround for old project layout
Apparently we're using a deprecated directory layout; with some versions of Django this results in an error running manage.py, so add a workaround for this. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
157e377d00
commit
8b6b40018a
|
@ -7,6 +7,8 @@
|
|||
# Copyright (c) Django Software Foundation and individual contributors.
|
||||
# All rights reserved.
|
||||
|
||||
import os
|
||||
|
||||
from django.core.management import execute_manager
|
||||
import imp
|
||||
try:
|
||||
|
@ -19,4 +21,5 @@ except ImportError:
|
|||
import settings
|
||||
|
||||
if __name__ == "__main__":
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
|
||||
execute_manager(settings)
|
||||
|
|
Loading…
Reference in New Issue
Block a user