The last few days I tried to create an App Engine Application based on DJango using PyCharm Professional 2016.3.2..
But everytime I try to create a new App Engine Application using Django as an third-party library PyCharm throws an Error and tells 'Create App Engine Application - Incorrect or corrupted App Engine SKD: cannot finde DJango installation'.
I already tried to install everything again, including Python, PyCharm, Django and the SDK, but it still doesn't work.
I would really appreciate any kind of help, because this problem drives me crazy.
The legacy Appengine SDK ships with some Django versions included in its
lib
folder.However the Google Cloud SDK does not include any Django versions in
lib
, only with Django utilities for its own internal use.The solution is to install Django according to Google's instructions for installing third party packages, that is:
pip install django -t lib
from google.appengine.ext import vendor;vendor.add('lib')
in yourappengine_config.py
moduleYou need to install extras.
And then try to create django (app engine) project again.
As @snakecharmerb observed the django packages are missing in the
app-engine-python
component (1.9.49) of the cloud SDK (138.0.0).They are, however, present in the standalone GAE SDK (also 1.9.49):
So an alternative to vendoring django into your app might be to switch to this SDK instead of the cloud SDK. See What is the relationship between Google's App Engine SDK and Cloud SDK?, including comments.
Note that it's not the recommended way these days, tho.
You could also install both and try to copy/symlink the missing packages into the cloud SDK. YMMV.
To download the GAE SDK in the Download the SDK for App Engine page click on the Optionally, you can also download the original App Engine SDK for Python. "link" - it's actually a control for the expandable download section below: