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.

[]

Basics of curl command

Introduction

We all might have used the curl command but might be unaware of it. It’s super old and still serves a great purpose. It has been available since 1996 and still is widely used in many embedded technologies, web API testing, CLI applications, etc. In this article, we’ll see some basics of using the curl command along with its applications.

What is the curl command?

Curl or cURL command is the utility or tool to access the internet from the command line interface using various protocols. This looks trivial but it can blow up your mind! Most people use this tool for fetching and processing the data from the servers/internet from their terminal without the browser but there is a lot more to it. It is used in various embedded devices for accessing the network in a lightweight and accessible way. Let’s see how you can use the curl command from the very basics.

[]

Crossposting with a single script: Crossposter.sh

Introduction

If you have been writing articles you know the pain to get some attention, if you have already been cross-posting your articles it usually takes some time to do that. This task can be automated with a shellscript. If you have been cross-posting articles on medium.com, dev.to and at hashnode.com, then I have a treat for you.

Introducing crossposter.sh!!

What is Crossposter.sh?

Crosspost to dev.to/hahsnode/medium from the command line.

Crossposter.sh is a shellscript(BASH) to automate crossposting to platforms like dev.to, medium.com and hashnode.com. The script takes in markdown version of your post with a few inputs from you and posts it to those platforms. You would require a token/key for each of those platforms to post it from the command line. You can check out the official repository of Crossposter.

[]

Hacktoberfest 2021

Introduction

This was my second year as a Hacktoberfest participant, First year was very dry and not so exciting as this turned out to be a cracker of an experience. With more than month gone in with only a few contributions, the second half of October was a splendid one for me where I made a lot more than in entire 2 years.

This is my Contributions so far in this month:

[]

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.

[]

Comment/Uncomment Code: Vim for Programmers

Introduction

We as programmers always fiddle with commenting out code for code testing, documenting the function of code, and most importantly debugging. So you can’t wait to comment on a large chunk of code manually, as it is quite a tedious thing to do. Let’s do it effectively in Vim.

In this part of the series, I’ll cover how to comment/uncomment chunks/blocks of code effectively in Vim. We will see and use some commands, keybindings for doing so, and also we would add certain components to our vimrc file as well to design some custom key mappings. Let’s get faster with Vim.

[]

What is Machine Learning?

Introduction

We all hear about terms like Machine Learning, Artificial Intelligence, and others, but what do they actually mean and why do you need to care about these as a developer. This won’t be a perfect guide in terms of experience but surely enough to get anyone through the basics of Machine Learning.

This is not the kind of article I write but, having such challenges can help me become a better technical writer, this is the challenge put forward in the Hashnode Bootcamp 4 to get out of my comfort zone. Here’s my take on what I know about Machine Learning till now (P.S. Half of the stuff I discovered and re-learned during writing).

[]

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.

[]

Object-Oriented Programming in C++: Constructors

Introduction

After learning a bit about classes, objects, and access modifiers, we can move on to another important concept of Constructors and Destructors. This part will cover Constructors. We’ll explore what are constructors, why we need them, types of constructors, and their semantics in C++ as usual.

So without wasting any time, let’s get started.

What is a constructor

A constructor is a method just like another method in a class, but it has a special name for a reason. The name itself speaks, Constructor, which will get called just after the object gets created. A constructor is just a method but it should only have the name same as of the class, that’s the thing that distinguishes it from other methods.

[]