From 28c388f6efe398db86d2db0af0222b7ae436c083 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Tue, 2 Sep 2025 20:52:59 +0100 Subject: [PATCH] Update Python version on PythonAnywhere docs --- docs/3-deployment/deployment-on-pythonanywhere.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/3-deployment/deployment-on-pythonanywhere.rst b/docs/3-deployment/deployment-on-pythonanywhere.rst index 726f325e2..592b8be1a 100644 --- a/docs/3-deployment/deployment-on-pythonanywhere.rst +++ b/docs/3-deployment/deployment-on-pythonanywhere.rst @@ -34,11 +34,9 @@ Make sure your project is fully committed and pushed up to Bitbucket or Github o git clone # you can also use hg cd my-project-name - mkvirtualenv --python=/usr/bin/python3.10 my-project-name + mkvirtualenv --python=/usr/bin/python3.12 my-project-name pip install -r requirements/production.txt # may take a few minutes -.. note:: We're creating the virtualenv using Python 3.10 (``--python=/usr/bin/python3.10```), although Cookiecutter Django generates a project for Python 3.12. This is because, at time of writing, PythonAnywhere only supports Python 3.10. It shouldn't be a problem, but if is, you may try changing the Python version to 3.12 and see if it works. If it does, please let us know, or even better, submit a pull request to update this section. - Setting environment variables in the console --------------------------------------------