A model template in your Django app
A guide to creating and using abstract base classes in Django to reduce code repetition for common timestamp fields like 'added' and 'edited'.
J-O Eriksson is a passionate Python developer sharing practical tutorials on Django, project structure, and developer workflows. His blog focuses on clean, reusable code and real-world tips for building maintainable Python applications.
13 articles from this blog
A guide to creating and using abstract base classes in Django to reduce code repetition for common timestamp fields like 'added' and 'edited'.
A tutorial on creating a custom Django management command to populate a database from an external API, using a beer data example.
A guide on using a pre-built Django template to quickly set up a Django application with features like user authentication, Docker, and testing.
A guide to organizing Django settings for different environments (development/production) and managing secrets securely.
A developer shares an improved workflow for completing Python coding exercises on an iPad using the new iPadOS, Safari, and Pythonista.
A developer shares a workflow for completing Python coding exercises from PyBites on an iPad using the Pythonista app.
A tutorial explaining Python list and string slicing syntax, parameters, and behavior with examples.
A tutorial on using Python's itertools.groupby function to group and sort data, demonstrated with an employee list example.
A developer documents building a Flask web app with user authentication and a code diary feature as part of the #100DaysOfCode challenge.
A tutorial on using Python's pandas library to clean CSV data and export it to JSON format for data layer integration.
A developer details their workflow for building and deploying a static website using Pelican, GitHub, Netlify, and CircleCI across multiple devices.
A Python programming tip showing how to replace multiple if-statements with a dictionary for cleaner, more readable code, using a simple calculator example.
A tutorial explaining how to create and use Python decorators that accept arguments, with code examples.