Posts for: #Web-Development

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.

[]

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.

[]

Django Quick Setup Script

Introduction

Once you learn something very neatly and understand it very clearly, it feels like you are wasting time doing things over and over again. Same things in setting up a Django project, you feel like you could save those typing minutes by making a script.

In this article, we will make a script a batch script for windows and a BASH script for Linux/macOS. We will make a virtual environment using python and then install the libraries and dependencies like in this case we will install Django. You can also tinker with these scripts and install other dependencies if you want like Django rest framework, crispy forms, markdown, Redis, etc. We will also make a Django project using the positional parameter passed before running the script from the command line.

[]