開発したdjangoアプリをGoogleコンソールにデプロイする際に問題があります。 まず、アプリのすべてのファイルの名前をランダムに変更します。また、ウェブサイトの.appspot.comにアクセスしようとすると、内部エラーが発生します。googleクラウドでdjangoアプリを導入するにはどうすればよいですか?
はapp.yamlをファイルを作成しました:
# [START runtime]
runtime: python27
entrypoint: gunicorn -b :$PORT mysite.wsgi
threadsafe: true
# [END runtime]
handlers:
- url: /static
static_dir: website/static
- url: /.*
script: main.application
libraries:
- name: django
version: 1.11
また、作成したappengine_cofig.pyファイル:事前に助けを
# Copyright 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# [START vendor]
from google.appengine.ext import vendor
vendor.add('lib')
# [END vendor]
おかげで....
エラーがコード内にある場合、要求ログにはスタックトレースが含まれている必要があります。それを見つけて質問に追加してください。アクセスしているビューのビューコードも含めてください。さもなければ、この質問は答えられません。 – snakecharmerb
あなたのポストに情報が足りないため、本当に助けになることはありません。目立つ重要な点の1つは、柔軟な環境からのシンタックスを標準環境と組み合わせていることです( 'entrypoint'は柔軟な環境にのみ適用されます)。 – BrettJ
**初心者の視点から** ...どうすれば私のdjangoのウェブサイトを起動し、Googleのアプリケーションエンジンで動かすことができますか? –