Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Deploy django app #6560

Locked Answered by JINYUHOON
TheusMarqs asked this question in Help
Apr 19, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

When I had the same problem before, I had experience solving it by changing the configuration structure of vercel.json.
However, it runs in flask, not django.
Additionally, requirements.txt is included in the root folder.

vercel.json

{
    "version" : 2,
    "builds": [
        {
            "src": "application.py",
            "use": "@vercel/python",
            "config": { "maxLambdaSize": "15mb", "runtime": "python3.9" }
        }
    ],
    "routes": [
        {
            "src": "/(.*)",
            "dest": "application.py"
        }
    ]
  }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TheusMarqs
Comment options

Answer selected by QuiiBz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants