How to Custom Middleware in DjangoTo create a Django middleware for getting the user's IP address, you will need to do the following:Create a new Python file in your Django project's...
How to Configure Django Local Mail Server Hey guys let's start to few lines of code can send emailsend_mail import this package top of the code section.from django.core.mail import...
How to Create Django FormsDjango Forms: Django forms is a collection of html elements.html forms help to reduce html codes and user friendliness. Forms...
How create Django ModelsDjango Models: Django Models is method used to create database.One class contains one database table.Go to models.pyfrom django.db...
How to configure Django App in Django ProjectHow to configure Django app in Django project.Why its need ? Because project must connected to app.Project asks ...
How to Setup Static and Media Files in Django Settings.py
import os
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
MEDIA_URL = '/media/'
MEDIA_ROOT =...