Пример #1
0
#!./venv/bin/python
import sys
import cbsettings

if __name__ == "__main__":
    cbsettings.configure('mysite.mysettings.factory')

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)
def load_settings(settings):
    unload_settings()
    cbsettings.configure(settings)
    from django.conf import settings
    return settings
Пример #3
0
"""
WSGI config for tunesync project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

import cbsettings

cbsettings.configure("tunesync_project.settings.factory.factory")

application = get_wsgi_application()
Пример #4
0
#!/usr/bin/env python
import os
import sys

import cbsettings

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "perdiem.settings")
    cbsettings.configure('perdiem.settings.switcher')

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)
Пример #5
0
"""
WSGI config for perdiem project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

import cbsettings

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "perdiem.settings")
cbsettings.configure('perdiem.settings.switcher')

application = get_wsgi_application()
Пример #6
0
#!/usr/bin/env python
import os
import sys

import cbsettings
from dotenv import load_dotenv

if __name__ == "__main__":
    load_dotenv()

    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "perdiem.settings")
    cbsettings.configure("perdiem.settings.switcher")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)
Пример #7
0
#!/usr/bin/env python
import os
import sys
import warnings

# Propagate warnings as errors when running tests
if len(sys.argv) >= 2 and sys.argv[1] == 'test':
    warnings.filterwarnings('error')

import cbsettings


if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_FACTORY", "flamingo.settings")
    cbsettings.configure('flamingo.settings.switcher')

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)
Пример #8
0
#!/usr/bin/env python
import sys
import cbsettings


if __name__ == "__main__":
    cbsettings.configure("trailers_shop.settings.Settings")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)