2π
Solved it myself! This turned out to be a configuration error on my part. When you have a Django project with multiple apps, the app.yaml file needs to be βoutsideβ the project directory. In other words, the app.yaml file needs to be sitting next to manage.py
instead of next to settings.py
. That way, all the apps in your project will automatically get included in the PYTHONPATH.
Note: You may also need to add the following 2 lines to app.yaml:
env_variables:
DJANGO_SETTINGS_MODULE: 'myproj.settings'
π€melsam
0π
This is not typically how a django project is organized.
Right now, your app is living inside the project. Those should instead be living side by side.
Assuming your project is named proj
and your app app
, this is what your directory layer should look like:
.
βββ manage.py
βββ app
βΒ Β βββ __init__.py
βΒ Β βββ admin.py
βΒ Β βββ models.py
βΒ Β βββ tests.py
βΒ Β βββ views.py
βββ proj
βββ __init__.py
βββ settings.py
βββ urls.py
βββ wsgi.py
π€Thomas Orozco
- [Answered ]-Django Static Files Not Loading in Deployment
- [Answered ]-How to send Token with POST request to Django REST api from Android App?
- [Answered ]-JSON field postgress like
- [Answered ]-Django-countries and TastyPie: Get country name
Source:stackexchange.com