I'm trying to deploy my Django 1.10 app in Google Cloud App Engine flexible environment but i'am having the following error:
ImportError: No module named src
I'm following the official tutorial, located in: https://cloud.google.com/python/django/flexible-environment
The error is generated when I run the following command:
gcloud app deploy
after a while, the console showme this error:
ERROR: (gcloud.app.deploy) Error Response: [9]
Application startup error:
[1] [INFO] Starting gunicorn 19.7.1
[1] [INFO] Listening at: http://0.0.0.0:8080 (1)
[1] [INFO] Using worker: sync
[9] [INFO] Booting worker with pid: 9
[9] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named src.settings
[9] [INFO] Worker exiting (pid: 9)
[1] [INFO] Shutting down: Master
[1] [INFO] Reason: Worker failed to boot.
This is my app.yaml config:
# [START runtime]
runtime: python
env: flex
entrypoint: gunicorn -b :$PORT core.wsgi
beta_settings:
cloud_sql_instances: nazkter-zed:us-central1:nazkter-zed
runtime_config:
python_version: 3
# [END runtime]
and this is my proyect structure:
- core/
-- app.yaml
-- requeriments.txt
-- manage.py
-- core/
--- __init__.py
--- settings.py
--- wsgi.py
--- urls.py
-- app1/
--- __init__.py
--- admin.py
--- apps.py
--- models.py
--- views.py
--- urls.py
I'm been arround this error all day and I want to know what is generating it.