This is a sample Python application deployed to Heroku. It's a reasonably simple app - but a good foundation for understanding how to get the most out of the Heroku platform.
-
-
- To deploy your own copy, and learn the fundamentals of the Heroku platform, head over to the
Getting Started with Python on Heroku tutorial.
+
+ To deploy your own copy, and learn the fundamentals of the Heroku platform, head over to either of the following tutorials:
+
-
+
How this sample app works
- - This app was deployed to Heroku, either using Git or by using Heroku Button on the repository.
-
- - When Heroku received the source code, it fetched all the dependencies in requirements.txt, creating a deployable slug.
- - The platform then spins up a dyno, a lightweight container that provides an isolated environment in which the slug can be mounted and executed.
+ - This app was deployed to Heroku using Git.
+ - When Heroku received the source code, it fetched all the dependencies in requirements.txt, creating a deployable build artifact.
+ - The platform then spins up a dyno, a lightweight container that provides an isolated environment in which the build artifact can be mounted and executed.
- You can scale your app, manage it, and deploy over 150 add-on services, from the Dashboard or CLI.
Next Steps
- - If you are following the Getting Started guide, then please head back to the tutorial and follow the next steps!
- - If you deployed this app by deploying the Heroku Button, then in a command line shell, run:
-
- git clone https://github.com/heroku/python-getting-started.git - this will create a local copy of the source code for the app
- cd python-getting-started - change directory into the local source code repository
- heroku git:remote -a <your-app-name> - associate the Heroku app with the repository
- - You'll now be set up to run the app locally, or deploy changes to Heroku
-
+ - If you are following the Getting Started on Heroku with Python or Getting Started on Heroku Fir with Python guide, then please head back to the tutorial and follow the next steps!
Helpful Links
-
-
- Please do work through the Getting Started guide, even if you do know how to build such an application. The guide covers the basics of working with Heroku, and will familiarize you with all the concepts you need in order to build and deploy your own apps.
+
+
+
+
+ Please do work through the Getting Started guide, even if you do know how to build such an application. The guide covers the basics of working with Heroku, and will familiarize you with all the concepts you need in order to build and deploy your own apps.
+
+
{% endblock %}
diff --git a/project.toml b/project.toml
new file mode 100644
index 000000000..ec4f08cbd
--- /dev/null
+++ b/project.toml
@@ -0,0 +1,19 @@
+[_]
+schema-version = "0.2"
+
+[io.buildpacks]
+# Exclude files from local Pack CLI builds, where .gitignore doesn't apply.
+# TODO: Add trailing slash to entries that are directories, once this issue is fixed:
+# https://github.com/buildpacks/pack/issues/2402
+exclude = [
+ "__pycache__",
+ ".git",
+ ".gitignore",
+ ".github",
+ ".venv",
+ ".DS_Store",
+ ".env",
+ "staticfiles",
+ "db.sqlite3",
+ "venv",
+]
diff --git a/requirements.txt b/requirements.txt
index e80db5cab..db5f46b0f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,12 +1,7 @@
-django>=5.1,<5.2
-gunicorn>=22,<23
-dj-database-url>=2,<3
-whitenoise[brotli]>=6,<7
+django>=6.1,<6.2
+gunicorn>=26,<27
+dj-database-url>=3,<4
+whitenoise>=6,<7
-# Uncomment these lines to use a Postgres database. Both are needed, since in production
-# (which uses Linux) we want to install from source, so that security updates from the
-# underlying Heroku stack image are picked up automatically, thanks to dynamic linking.
-# On other platforms/in development, the precompiled binary package is used instead, to
-# speed up installation and avoid errors from missing libraries/headers.
-#psycopg[c]; sys_platform == "linux"
-#psycopg[binary]; sys_platform != "linux"
+# Uncomment to use a Postgres database.
+#psycopg[binary]
diff --git a/runtime.txt b/runtime.txt
deleted file mode 100644
index 8a7cba521..000000000
--- a/runtime.txt
+++ /dev/null
@@ -1 +0,0 @@
-python-3.12.5