Posts for: #Django

Django Basics: Creating Models

Introduction

We have seen the basics of Django templating in the previous parts of the series. Now, we can move on to the more backend stuff in Django which deals with the Databases, queries, admin section, and so on. In this particular part, we’ll cover the fundamental part of any application in Django i.e the Model. We’ll understand what the model is, how to structure one, how to create relationships and add constraints on the fields, etc.

[]

Django Basics: Static Files

Introduction

After creating templates, it should be rather tempting to add some styles and logic to them. Well yes, we’ll see how to add static files in a web application using django. Static files are not only CSS, but also media/images and Javascript files as well. In this part of the series, we’ll cover the basics of working with static files in django including the configuration, rendering and storing of the static files.

[]

Django Basics: Templates

Introduction

After learning the basics of views and URLs, we can now move on to the next concept i.e. Templates. In Django, Templates are quite an important component for the application as it acts as the frontend for the web application. With the help of templates and some features provided by Django, it becomes very intuitive and simple to make dynamic web content. In this part, we understand what are templates and what is the way to render them.

[]

Django Basics: Views and URLS

Introduction

After getting familiar with the folder structure of the Django framework, we’ll create our first view in an app. The basics of creating and mapping a view with a URL will be cleared by the end of this part.

Creating Views

Views are the functions written in python as a logic control unit of the webserver

To create a view or typically-like function, we need to write a function in the views.py file inside of the application folder. The function name can be anything but should be a sensible name as far as its usability is concerned. Let’s take a basic example of sending an HTTP response of “Hello World”.

[]

Django Basics: Folder Structure

Introduction

After setting up the development for the Django framework, we will explore the project structure. In this part, we understand the structure along with the various components in the Project as well as individual apps. We will understand the objective of each file and folder in a brief and hopefully by the end of this part, you’ll be aware of how the Django project is structured and get a good overview of the flow of development in the Django project.

[]

Django Basics: Setup and Installation

Introduction

The crucial aspect of starting to learn any framework is the ease to set it up and Django by far is the easiest of the options out there. There is just a few lines of code to install django if you already have python installed in your system. In this article, we see how to setup a django project along with a virtual environment.

If you already have python and pip installed, you can move on to the virtual environment setup.

[]

Django Basics: What is it?

Introduction

Welcome to Django Basics series, in this series we’ll explore the basics of the Django web framework. In this part, we’ll understand what this web framework provides and what actually the back-end development consists of. We’ll discuss where Django is used and why it is a great choice for beginners as well as experienced developers.

What is Django?

Django is a back-end web framework. It is based on python which means you have to write most of the project’s code in Python. But Django comes with a lot of boilerplate code and thus it becomes quite quick in the development.

[]

Flask and Django - the backend web frameworks

Introduction

We all have seen the buzz around web frameworks like Django, Flask, Node.js, etc but have you taken time to learn all of them? No, and you shouldn’t! Because many web frameworks share the same principle and workflow with a bit of difference. It’s just like learning one programming language and applying the same concepts in a different syntax and mechanism. In the world of web frameworks, this is the case as well, but most of them will disagree with it as every web framework is unique in its design and that’s true, don’t get me wrong.

[]

Django + Auth0 Quick Setup

Introduction

This is a guide and a walkthrough of how to quickly set up a base Django project with Auth0 as integration for authentication and authorization. I will walk you through the Django setup and how to use and integrate the functionalities of the Auth0. I will also discuss how why you should be using Auth0 and why I love it.

The script takes 2:44 minutes time to do everything from scratch. From installing virtualenv in python to integrating the Auth0 application.

[]

Dev Quotes: A platform for developers to quote and get inspired - Auth0 x Hashnode Hackathon

Introduction

No one can understand the joy in finishing a personal project, except the dreamer

It was a while,since I have posted an article here, as I was busy on a project or a hackathon.

Hello, world! I am Meet a student and a self-taught web developer. I like to make and break stuff, especially when it comes to programming and Linux. I like shell scripting and learning different languages at once, love to learn about Vim and Linux everyday.

[]