I keep getting an error that says no module named backend
, this is the directory where my webapp2 application is.
My folder structure:
/project
/backend
/env #python virtual env libraries
main.py #my main entry point where webapp2 app instance is
requirements.txt
app.yaml
My app.yaml:
service: default
handlers:
- url: /dist
static_dir: dist
- url: /.*
script: backend.main.app
libraries:
- name: webapp2
version: latest
- name: jinja2
version: latest
Before my app.yaml
was in backend, but I decided to move to root. Now when I run dev_appserver.py
in root, I keep getting ImportError: No module named backend
I created the virualenv and installed the requirements.txt packages inside the backend
directory.
EDIT: I am unsure if this makes a difference, but I have already deployed my application when the app.yaml
was inside the backend
folder. I am guessing this should not matter since I am trying to test locally by moving the app.yaml
in my project root and running dev_appserver.py app.yaml
, but it seems to not work when I do this.