Created
May 11, 2013 17:55
-
-
Save scheakur/5560807 to your computer and use it in GitHub Desktop.
Google App Engine で Django
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application: scheakur | |
version: 1 | |
runtime: python27 | |
api_version: 1 | |
threadsafe: false | |
libraries: | |
- name: django | |
version: "1.3" | |
handlers: | |
- url: /.* | |
script: main.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PYTHONPATH="/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/django-1.3" | |
python /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/django-1.3/django/bin/django-admin.py startproject scheakur |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
os.environ['DJANGO_SETTINGS_MODULE'] = 'scheakur.settings' | |
import django.core.handlers.wsgi | |
from google.appengine.ext.webapp import util | |
def main(): | |
app = django.core.handlers.wsgi.WSGIHandler() | |
util.run_wsgi_app(app) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment