crosspost your articles to devto, codenewbie, medium and hashnode
Posts for: #Python
Podevcast
Developer podcast at a single place
Podevcast: A single source for developer podcasts
Introduction
Hello Developers! Want to listen to programming podcasts from a single place? Podevcast is the place you should be searching for.
I am Meet Gor and I present this project as a submission to the Netlify x Hashnode Hackathon. Podevcast is a webpage(static) for listening to podcasts centered around developers and programming. Just pick your favorite one and start listening straight away. Let’s dive into the making of Podevcast. Head on to https://podevcast.netlify.app/ to check out the live app.
Django Basics: CRUD API
Introduction
After understanding the admin section and setting up a database, we can finally move on to the CRUD API in Django. We will create a API in pure Django with Model Form, Class Based Views and templates. We will go in two parts in this section, first revising the workflow of the app creation and setup, the next part all about CRUD API. We’ll dive into a lot of familiar topics and concepts from previous parts but there are is still a lot to learn beyond the basics.
Django Basics: Admin Section
Introduction
In the previous section, we configured the database in our Django project. We will move ahead and interact with the Admin Section in Django. Django has a built-in Admin Section which we can use to manage our apps and models. We will create a admin account(superuser) and try to render our custom Model in the Admin Interface. We shall further discuss the customization in the Admin section as per our requirements and necessity.
Django Basics: Database Configurations
Introduction
In this part of the series, we will create an external database and configure the settings for that database. We also look into the process of migrations which is to convert a model which we created in the previous part into the actual structure/schema for the database. I’ll be using PostgreSQL for most of the demonstrations but it should be similar for other database management tools. This part will make your Django project link to a local database.
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”.