Commit graph

103 commits

Author SHA1 Message Date
bronsen
e6034e1e10 [todo] add new item about logging 2025-03-14 14:16:37 +01:00
bronsen
ef894d2b2a [CI] select test deployment when running tests on CI 2025-03-14 14:16:16 +01:00
bronsen
ecd80c291a [deployment] select .env according to env var 2025-03-14 14:15:51 +01:00
bronsen
3fdc60d9e5 [CI] add woodpecker config for use on code.c-base.org 2025-03-14 13:28:53 +01:00
bronsen
063b2959a6 [project] settings.py react to the DEPLOYMENT variable 2025-03-14 12:43:38 +01:00
bronsen
474df0342c [project] create pyproject.toml, readme, version file
`pdm build` even builds this package; no idea if it would be
installable/usable though
2025-03-14 12:37:30 +01:00
bronsen
a3a71f318d [git] add datadump to project-specific gitignore
The global gitignore is still in effect. That one was created using
https://www.toptal.com/developers/gitignore/api/python,vim,direnv,pycharm+all,rust,node,django,python,visualstudiocode
2025-03-14 12:05:12 +01:00
bronsen
3a68239291 [dependencies] ruff got an update 2025-03-14 11:15:54 +01:00
bronsen
0b57968101 [just] sync using pip-tools' pip-sync
pip-sync uninstalls packages that are not in the specified requirements
file; we want that
2025-03-14 11:13:19 +01:00
bronsen
5bd66aeae8 [collector views] prominently display Teil number 2025-03-13 20:08:54 +01:00
bronsen
550843f2a8 [project] export/import works well enough via dumpdata/loaddata 2025-03-13 19:55:49 +01:00
bronsen
c1383ca376 [dev] add django debug toolbar to dev env 2025-03-13 19:55:08 +01:00
bronsen
470e690c61 [dependencies] split them up further 2025-03-13 19:55:08 +01:00
bronsen
cd2066024f [project] add TODO list 2025-03-13 19:55:08 +01:00
bronsen
b69b65a6fa [collector admin] massively improve usability of the TeileAdmin 2025-03-13 19:17:28 +01:00
bronsen
90f23d1e1f [collector templates] remove broken form from detail.html 2025-03-13 19:17:09 +01:00
bronsen
6386d25fff [collector views] switch some views to class-based ones 2025-03-13 19:03:57 +01:00
bronsen
59596f3064 [collector views] wrap attempt to create a new Teil in a transaction 2025-03-13 18:42:14 +01:00
bronsen
f1ab7afb6f [tests] Ensure it is ok the enter the same name twice 2025-03-13 18:41:20 +01:00
bronsen
819bbfc7d9 [tests] use hypothesis to generate test data 2025-03-13 18:13:41 +01:00
bronsen
1f100d329b [pytest] create session-scoped django.test.Client fixture 2025-03-13 18:13:16 +01:00
bronsen
55be0c8370 [tests] Ensure new Teil is entered into the DB 2025-03-13 17:45:01 +01:00
bronsen
8500ebb157 [tests] Tell pytest to always create a new db and to NOT run migrations 2025-03-13 17:44:32 +01:00
bronsen
3edd39f013 [collector view] emit warning log when a Teil aready existed 2025-03-13 17:43:46 +01:00
bronsen
30f6d6c8c1 [config] load testing env when under pytest 2025-03-13 17:15:23 +01:00
bronsen
04cb10d13c [just] add testing recipe 2025-03-13 17:14:54 +01:00
bronsen
f1a24af335 [tests] Tell pytest where/how to find tests 2025-03-13 17:14:26 +01:00
bronsen
27c9a3a35b [collector] can now collect Teile and list them
If a newly entered Teil already exists, we ignore that and do nothing.

"name" could become a primary key...
2025-03-13 16:32:31 +01:00
bronsen
1870d50ccf [collector admin] register Teil model in admin 2025-03-12 23:52:36 +01:00
bronsen
6214610edc [collector view] rudimentary implementation of list and detail view 2025-03-12 23:52:18 +01:00
bronsen
d6ff246804 [codestyle] format settings module 2025-03-12 23:13:14 +01:00
bronsen
804bce4719 [django] set timezone and disable i18n 2025-03-12 23:12:41 +01:00
bronsen
15279ee99c [collector] rename model to singular form, but provide verbose_name* in Meta 2025-03-12 23:11:58 +01:00
bronsen
77c67c637c [collector model] implement __str__() 2025-03-12 23:00:48 +01:00
bronsen
67a4063a21 [collector model] add prefix to name of index 2025-03-12 22:55:48 +01:00
bronsen
1e4d474e23 [dependencies] require django-stubs so the LSP is less confused 2025-03-12 22:55:14 +01:00
bronsen
ac4bf13d1b [collector] make the app a package 2025-03-12 22:33:24 +01:00
bronsen
3ef59b7b70 [dependencies] recompile requirements 2025-03-12 22:32:48 +01:00
bronsen
59368e86ae [django] activate collector app 2025-03-12 22:32:26 +01:00
bronsen
67bb3e0777 [collector] create initial model and migration 2025-03-12 22:32:06 +01:00
bronsen
8cc5d405b4 [dev] install django-extensions for shell_plus and show_urls 2025-03-12 21:39:43 +01:00
bronsen
92e38ffb37 [django] condense settings file by removing empty lines 2025-03-12 21:20:36 +01:00
bronsen
e002a4e272 [just] add runserver recipe 2025-03-12 21:17:46 +01:00
bronsen
592b84625e [collector] start the app that will collect parts data 2025-03-12 21:17:08 +01:00
bronsen
56a03452d8 [codestyle] remove unused import 2025-03-12 18:17:10 +01:00
bronsen
932b1347e5 [just] more linting recipes 2025-03-12 18:16:29 +01:00
bronsen
5837d0d86c [django] configure settings via django-environ
django-environ reads from a file `.env` which is not under version
control.

Perhaps we should add a `.env.dist` or similar.
2025-03-12 18:16:13 +01:00
bronsen
9f22508d4b [dependencies] require django-environ and psycopg 2025-03-12 18:14:50 +01:00
bronsen
e6b75c8046 [config] make sure django finds itself in our config folder 2025-03-12 17:33:04 +01:00
bronsen
89b4e7d650 [dev] add justfile for a few tasks/recipes 2025-03-12 17:29:38 +01:00