Learn how to deploy your Django app in 2 minutes. on Heroku.
Now that we've created the data for our blog, we'll learn how to show it using the Django ORM in this chapter. Wait, what? O-R, what?
Django follows the DRY principle of software development or the Don't repeat yourself principle, aiming to minimize writing code or repeating code.
"Code without tests is broken by design." - Jacob Kaplan-Moss
It's good to visualize our models before defining them in our models.py for us to see how our model structure would be laid out. The figure below shows how we will determine the database of the blog we're building.
It's good to visualize our models before defining them in our models.py to see how our model structure would be laid out. The figure below shows how we will determine the database of the blog we're building.
A walk through on how to generate the a project
Learn to jumpstart a production-ready blog using the Cookiecutter-Django framework and how to deploy it to Heroku