DEV Community

Dave Parr
Dave Parr

Posted on • Edited on • Originally published at daveparr.info

1 1

Building my first Django project

I'm working through Django for Beginners by William S. Vincent. The second chapter gets us into developing our first app. It simply displays a single page with an unformatted Hello World on it, but I really appreciated how the project is so fully fleshed out end to end. You start a project with a clean pipenv, and make the files and folders through the CLI. The django framework provides some really nice methods to 'boilerplate' the multiple files needed in each project, and having this introduced at the start and then fill in the details later when you are hands on is definitely the best way to go.

Introducing migrations and the url-view-model[-template] core concepts was pretty simple in practice, though a little confusing initially. "I've just made a bunch of files with this single startapp command, what do they all do?" was admittedly my first reaction.

The best part of the way this book is set up is the definition of done used in the core workflow. A project isn't done unless it has a commit history, is hosted on GitHub and deployed on Heroku. I'm really a fan of approaching deployment in Chapter 2, just like version control and dev environments in Chapter 1. These concepts are your friends, not your monsters :)

Incidentally, having only been aware of Heroku in passing, I really like the PAAS set up. Very usable, the cli tools make the whole thing a doddle and the end satisfaction of being able to point at something that's actually on the web and say 'I did that!' is always a little more satisfying than 'It works on my machine?'.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay