#!/home2/ngtherap/python27/bin/python27 import sys, os import os import sys import gae2django gae2django.install() if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "thinkster_django_angular_boilerplate.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
# Django settings for django_gae2django project. # NOTE: Keep the settings.py in examples directories in sync with this one! import os import gae2django gae2django.install() DEBUG = True TEMPLATE_DEBUG = DEBUG PROJECT_DIR = os.path.dirname(__file__) ADMINS = ( # ('Your Name', '*****@*****.**'), ) MANAGERS = ADMINS DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. DATABASE_NAME = 'dev.db' # Or path to database file if using sqlite3. DATABASE_USER = '' # Not used with sqlite3. DATABASE_PASSWORD = '' # Not used with sqlite3. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. # If running in a Windows environment this must be set to the same as your
#!/usr/bin/env python import gae2django # Use gae2django.install(server_software='Dev') to enable a link to the # admin frontend at the top of each page. By default this link is hidden. gae2django.install(server_software='Django') from django.core.management import execute_manager try: import 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(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) sys.exit(1) if __name__ == "__main__": execute_manager(settings)
"""WSGI application script.""" import os import sys # os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir)) sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) sys.path.insert(1, os.path.dirname(__file__)) import gae2django # Use gae2django.install(server_software='Dev') to enable a link to the # admin frontend at the top of each page. By default this link is hidden. gae2django.install(server_software='Django') os.environ['DJANGO_SETTINGS_MODULE'] = 'paylogic.settings_paylogic' # apply patches import paylogic.patches # NOQA import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
#!/usr/bin/env python import os import sys import gae2django # Use gae2django.install(server_software='Dev') to enable a link to the # admin frontend at the top of each page. By default this link is hidden. gae2django.install(server_software="Django") from django.core.management import execute_from_command_line if __name__ == "__main__": # apply patches if "--settings=paylogic.settings_build" in sys.argv: settings = "paylogic.settings_build" else: settings = "paylogic.settings_paylogic" os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings) import paylogic.patches # NOQA execute_from_command_line(sys.argv)