Are you interested in developing website but confused where to start with? Then this article is for you. There are a lot many web development frameworks available to start with, Django is the rapid wed development framework preferred by most of the web developers and it is also been used by many companies customized for their independent projects.
1 min read
Will Plaehn, founder and CTO of Last Mile Retail, a retail marketing platform, recently visited Byte Academy as a guest speaker for our Entrepreneur Series. He also gave a workshop on Django, a Python framework while here. Read some of his favorite resources that he shared and referenced in his talk (thanks Will!)...
Topics: Startup Careers Python Programming Tips django
7 min read
Django is a free and open-source collection of libraries written in Python, which follows the model-view-template-controller (MVTC) architectural pattern. It is one of the most popular server-side web frameworks with the motto being ‘Don’t Repeat Yourself’. It is maintained by the Django Software Foundation (DSF), an independent non-profit organization.
3 min read
Let’s say I’m making a blogging web application using Python and the web framework, Django. I want users to be able to publish “Posts” on my blogging website.
When they enter that “Post” into some sort of input form that I have on my website, I want to check the “Post” before I save it to my database.
This is a common scenario for many Django developers. How do we validate form data before we save it to a database?
There’s two common ways to do it: Either validate the Model or validate the Form.
Django has Forms and Models. Very basically, Forms are where users input data on a web application, and Models and where I actually save my information in my program.
Let’s look first at how to validate the Model: