simonw / simonwillisonblog

The source code behind my blog
https://simonwillison.net/
Apache License 2.0
203 stars 19 forks source link

Upgrade to dev version of Django to get faceting #318

Closed simonw closed 1 year ago

simonw commented 1 year ago

To try out this:

simonw commented 1 year ago

CircleCI is failing, and I think it's because it's still running python 3.7. https://app.circleci.com/pipelines/github/simonw/simonwillisonblog/709/workflows/63b67b7a-ebac-4249-8ead-6df4869a6b48/jobs/719

simonw commented 1 year ago

From https://circleci.com/developer/images/image/cimg/python looks like I should use:

cimg/python:3.11.2
simonw commented 1 year ago

Now fails with: https://app.circleci.com/pipelines/github/simonw/simonwillisonblog/710/workflows/3264e883-a321-4ead-8e79-5e6ff011de59/jobs/720

#!/bin/bash -eo pipefail
export DATABASE_URL=postgres://circleci:@localhost/circle_test
python3 -m venv venv
. venv/bin/activate
pip install -U pip setuptools
pip install -r requirements.txt
python manage.py migrate --noinput
python manage.py collectstatic

Error: [Errno 2] No such file or directory: '/home/circleci/project/venv/bin/python3'

Exited with code exit status 1

CircleCI received exit code 1
simonw commented 1 year ago
image