s
April 3, 2024, 2:58 p.m. |

Simon Willison's Weblog simonwillison.net

Enforcing conventions in Django projects with introspection


Luke Plant shows how to use the Django system checks framework to introspect models on startup and warn if a DateTime or Date model field has been added that doesn't conform to a specific naming convention.


Luke also proposes "*_at" as a convention for DateTimes, contrasting with "*_on" or "*_date" (I prefer the latter) for Dates.


Via lobste.rs

checks convention datetime django framework projects shows startup

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US