예제 #1
0
"""
WSGI config for speedy 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/dev/howto/deployment/wsgi/
"""

import os
import sys
from pathlib import Path

from django.core.wsgi import get_wsgi_application

sys.path.insert(0, str(Path(__file__).absolute().parent.parent.parent))
from speedy.core.settings.utils import env

os.environ.setdefault("DJANGO_SETTINGS_MODULE",
                      "speedy.net.settings.{}".format(env('ENVIRONMENT')))

application = get_wsgi_application()
예제 #2
0
"""
WSGI config for speedy 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/dev/howto/deployment/wsgi/
"""

import os
import sys
from pathlib import Path

from django.core.wsgi import get_wsgi_application

sys.path.insert(0, str(Path(__file__).absolute().parent.parent.parent))
from speedy.core.settings.utils import env

os.environ.setdefault("DJANGO_SETTINGS_MODULE",
                      "speedy.composer.settings.{}".format(env('ENVIRONMENT')))

application = get_wsgi_application()
예제 #3
0
"""
WSGI config for speedy 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/dev/howto/deployment/wsgi/
"""

import os
import sys
from pathlib import Path

from django.core.wsgi import get_wsgi_application

sys.path.insert(0, str(Path(__file__).absolute().parent.parent.parent))
from speedy.core.settings.utils import env

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "speedy.mail.settings.{}".format(env('ENVIRONMENT')))

application = get_wsgi_application()


예제 #4
0
#!/usr/bin/env python
import os
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).absolute().parent.parent.parent))

from speedy.core.settings.utils import env

if (__name__ == "__main__"):
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "speedy.composer.settings.{}".format(env('ENVIRONMENT')))

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)


예제 #5
0
#!/usr/bin/env python
import os
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).absolute().parent.parent.parent))

from speedy.core.settings.utils import env

if (__name__ == "__main__"):
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "speedy.composer.settings.{}".format(env('TESTS_ENVIRONMENT')))

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)


예제 #6
0
#!/usr/bin/env python
import os
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).absolute().parent.parent.parent))

from speedy.core.settings.utils import env

if (__name__ == "__main__"):
    os.environ.setdefault(
        "DJANGO_SETTINGS_MODULE",
        "speedy.mail.settings.{}".format(env('TESTS_ENVIRONMENT')))

    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
from pathlib import Path
sys.path.insert(0, str(Path(__file__).absolute().parent.parent.parent))

from speedy.core.settings.utils import env

if (__name__ == "__main__"):
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "speedy.net.settings.{}".format(env('TESTS_ENVIRONMENT')))

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)