A step by step guide.

Photo by James Harrison on Unsplash

This is the moment where some developers feel lost: the deployment time. Something that should be trivial sometimes isn’t, but it shouldn’t be so hard (in fact, it is not). Hopefully, by the end of this guide, you’ll be able to host your Django project on Heroku, which is a great cloud service, especially because Heroku is a cloud PaaS (Platform as a Service) and also offers a free plan with which you can deploy your project with a full database provision.

Before you start, you have to make some configurations on your project to make it work on the…

Spoiler: You have to use widgets.

Photo by Joshua Aragon on Unsplash

Everyone who uses Django knows how good the Django forms can be. But when you are using it for the first time a question raises up: How can I style it? How can I add a class?

Well, there’s a way (quite simple actually), your have to use widgets.

But what is that exactly? Let’s see the definition of widget, according to Django Docs:

A widget is Django’s representation of an HTML input element. The widget handles the rendering of the HTML, and the extraction of data from a GET/POST dictionary that corresponds to the widget.

In other words, widget…

Gustavo C. Maciel

I write about some things I found interesting.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store