Ejemplo n.º 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
Ejemplo n.º 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()
Ejemplo n.º 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)
Ejemplo n.º 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()
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)