Esempio n. 1
0
File: wsgi.py Progetto: ballab1/cesi
import os
from run import configure
from version import __version__

app, _ = configure('/etc/cesi/conf.toml')
Esempio n. 2
0
import os
from run import configure

app, _ = configure(os.environ["UTOPIA_CONFIG_PATH"])
Esempio n. 3
0
::

    $ /Users/hide/ve/docs/bin/tomato.py $HOME/ve/docs/src/tomate/sample/app start

'''
if __name__ == '__main__':
    import sys,os 
    if len(sys.argv) < 2:
        sys.stderr.write('you need path of your django application')
        sys.exit(1) 

    sys.path.append(os.path.dirname(sys.argv[1]))    #: Important
    sys.path.append(sys.argv[1])    #: Important

    from django.core.management import execute_manager
    import imp 
    try:
        imp.find_module('settings') # Assumed to be in the same directory.
    except ImportError:
        import sys 
        sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__)
        sys.exit(1)
    
    import settings
    import run 
    
    if __name__ == "__main__":
        sys.argv = run.configure(sys.argv) #
        print "tomate manager",sys.argv
        execute_manager(settings) 
Esempio n. 4
0
 def setUp(self):
     run.configure()
     super(ServerTestCase, self).setUp()
Esempio n. 5
0
import os
from run import configure

app, _ = configure(os.environ["CESI_CONFIG_PATH"])
Esempio n. 6
0
 def setUp(self):
     run.configure()
     super(ServerTestCase, self).setUp()