Miserlou/Zappa

Zappa detects Flask app as Django app

wanshun123 opened this issue · 1 comments

I am testing Zappa on a basic Flask app (my_app.py):

from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello():
    return 'Hello'
    
if __name__ == '__main__':
    app.run()

In my folder there is nothing but this my_app.py file. Then I run the following (I'm using Windows):

virtualenv venv
venv\Scripts\activate
zappa init

After asking for the environment name, AWS Lambda/API gateway and private S3 bucket, Zappa then says this:

It looks like this is a Django application!
What is the module path to your projects's Django settings?

I am using Zappa version 0.52.0.

I believe this was due to pip install zappa not being run in the virtual environment.