Skip to content

Port to Django 5.2#635

Open
FreneticScribbler wants to merge 7 commits intomasterfrom
django5
Open

Port to Django 5.2#635
FreneticScribbler wants to merge 7 commits intomasterfrom
django5

Conversation

@FreneticScribbler
Copy link
Member

Dockerfile is not very well optimised, it currently produces a 1.66GB image!!

Probably think about switching to using docker / postgres DB in development workflow, using sqlite has caused owt but problems in the past. Some work has been done to that end in this PR, much remains.

Caveat emptor

Any newer and the mystery importlib metadata error appears. Weird! >_>
Having two distinct test flavours is giving me a headache
Makes a VERY big image, I suspect we can optimise this a lot...
Copy link

@code-review-doctor code-review-doctor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth considering. View full project report here.

'NAME': str(BASE_DIR / 'db.sqlite3'),
}
'default': {
'ENGINE': 'django.db.backends.{}'.format(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

f-string is easier to read, write, and less computationally expensive than legacy string formatting. Explained here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh shut up you

@FreneticScribbler
Copy link
Member Author

Should look at updating python from 3.10 at some point too. And probably defining it in a single source of truth - currently it's manually defined in the dockerfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant