Skip to main content

Posts

Showing posts matching the search for django

Django Introduction & Installation in Python

It is a Web-based Framework of Python which provides MVT(Model, View, Template) Design pattern to create a Dynamic web application. Django MVC is also known as MVT architecture. MVT means Model, View, and Template,   Model is used to provide a data access layer, View is used to provide business access layer or Code layer,  and Template is used to provide user access layer or design. Why Django is best as compare to other frameworks:- 1) Django contains predefined libraries to create secure, reliable, and Fast dynamic web applications. 2) Django Framework is Open Source so that we can easily customize the Django Framework program code and structure. 3) Django provides rapid application development tools because it has an inbuilt app to create a login , admin dashboard, user management (ACL access control list ),  Session management, etc. 4) Django Framework can easily be integrated with HTML, CSS, JS, and Jquery to design web pages. 5) Django Framework ...

Create Python Virtual Environment and develop userdashboard in Django application

In this article i have explained 1) What is virtual environment 2) How to create virtual environment 3) How to install django under virtual environment 4) how to start django server under virtual environment 5) how to create login form using django auth application ' What is a Virtual Environment? It is another way to install Django under a specific directory, It will be used to host the Django applications under live web server,  This code can live anywhere on your computer. Step1st: run the following command:- Open Command Prompt and create folder mkdir foldername cd foldername Run Command To Create Virtual Environment py -m venv environmentname Type Command py -m venv myproject (myproject) D:\django_auth\myproj>py -m venv myproject Enter into Environtname\Scipts\activate.bat Type Command myproject\Scripts\activate.bat (myproject) D:\django_auth\myproj>myproject\Scripts\activate.bat py -m pip install django py -m django --version django-admin startproject projectname python...

Django API Development, How to create API in Django

API means application programming interface, it is used to communicate dynamic data from one application to another application. API provides a modern design pattern to develop applications means we can create one separate application to create an API that can be consumed into another application, another application can be the same technology or different technology. This means we can create Django REST API that can be used in android, ios, REACT, NODE, Java, .NET, and PHP. What does API provide? It provides a Restful URL to implement functionality using different HTTP Methods? 1)   GET:-   It is used to fetch the record from the server 2)  POST:-  It is used to insert the record into the server 3)   PUT:-   It is used to update the record into the server 4)  Delete:-  It is used to delete the record into the server 5)  Patch:-  It is used to partially update the content of the server What type of Data API return:- A...

Python + Django Live Interview session

Python Live Interview | TOP 20 Interview Question of Python, Django | Django + PYTHON MOCK Interview This is Python Live Interview, session We have posted this session to know the live experience of the interviewee during the interview and provide important interview questions. If any positive point you got then you can apply and if any negative point you got then you can improve in your skills. Share it on your group and Jobseeker for interview assistance. #pythonprogramming #computerscience #jobseekers #interviewquestions This Shiva Concept Solution video on "Django Interview Questions and Answers" will help you understand the 50 most asked Django Interview Questions with their best answers. It will help in preparing for your upcoming Django Developer Interviews. I am providing the LIVE Interview session, you can view all sessions and check your technical skills, you can also learn common mistakes during the interview. Interview on Core concept of Python:- Python Live ...

Python Interview Question and Answer

Python Interview Question and Answer HR Round Interview Question: 1) Can you walk us through your background and how it led you to this role? 2) What motivates you to join our company? 3) How do you handle a situation where you disagree with your manager? 4) Describe a time you went above and beyond in your role. 5). How do you manage stress and tight deadlines? 6) What are your strengths and areas for improvement? 7) How do you stay updated with the latest technologies and industry trends? Technical Interview Question: 1. How does Python handle memory management and garbage collection? Answer : Python uses reference counting to track object references and a cyclic garbage collector to handle circular references. When an object’s reference count drops to zero, it’s deallocated. The gc module detects cycles using a mark-and-sweep algorithm. Example : import gc class Node : def __init__ (self): self. next = None node1, node2 = Node(), Node() node1. next , node2. next = no...

File Uploading Tutorials in Django

It is used to upload external files such as doc files, excel files, video files, image files, audio files, JSON files, CSV files, or dataset files in the Django application in the project then we use the file handling concept. Django supports all HTML elements to design form hence we can use  <input type="file" />   for file upload UI. We will create <form > with enctype="multipart/form-data"    and the method will be posted. Django provides FileSystemStorage class under  django.core.files.storage and save() to save the external file under the Django media directory. note: don't forget to write the setting.py code and urls.py code under the project. Step for file uploading on Django:- 1)  Create a design file using .html under the templates folder. <!DOCTYPE html> <html> <head> <title></title> </head> <body> <form method="POST"  enctype="multipart/form-data">    ...