Exemple #1
0
 def add_vendor_lib(self):
     """Import and call the function."""
     from moztrap.deploy.paths import add_vendor_lib
     add_vendor_lib()
Exemple #2
0
#!/usr/bin/env python


"""
Runs a Django management command, using the vendor library.

"""
import os, sys
from moztrap.deploy.paths import add_vendor_lib

if __name__ == "__main__":
    add_vendor_lib()

    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "moztrap.settings.default")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)
Exemple #3
0
""" 
Alternative WSGI entry-point that uses requirements/vendor for
dependencies.

"""
import os, sys

base_dir = os.path.dirname(
    os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.insert(0, base_dir)

from moztrap.deploy.paths import add_vendor_lib
add_vendor_lib()

# Set default settings and instantiate application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "moztrap.settings.default")

from django.core.handlers.wsgi import WSGIHandler
application = WSGIHandler()
Exemple #4
0
 def add_vendor_lib(self):
     """Import and call the function."""
     from moztrap.deploy.paths import add_vendor_lib
     add_vendor_lib()