Add variable environment needed for bs3demo
@@ -6,6 +6,8 @@ sys.path.insert(0, os.path.abspath(os.path.pardir))
if __name__ == "__main__":
from django.core.management import execute_from_command_line
-
+ if os.environ.get('BOOTSTRAP') == "3":
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bs3demo.settings')
+ else:
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bs4demo.settings')
execute_from_command_line(sys.argv)
