CBSE CLASS 12

CBSE Class 12 : Python

Revision tour

CBSE Class 12 : Functions

Functions

User defined functions

Resursion

Recursion Examples

CBSE Class 12: Inbuilt Functions

String Inbuilt Functions
Math Inbuilt Functions
Date and Time Inbuilt Functions
Random Module

CBSE Class 12 : Data File Handling

Data File Handling

Character by Character reading
Word by word reading
Line by line reading

CBSE Class 12 : Data Structures

Introduction to Data Structures
Stacks and its Applications
Implementation of Stacks
Queue and its Applications
Implementation of Queue

CBSE Class 12 : Interface Python With SQL

Class 12 Interface Python With SQL

Example : 1 Student Record management

Example :2 Bank Record Management

CBSE Class 12 : Web Development With Django

Introduction To Django

Example 1: To Test Django

Example 2: To Display Welcome Message

Example 3: To Display Data in Table Format

CBSE Class : Communication And Network Concepts

Full Forms

Computer Networks

Wired and Wireless Networks

New Technologies

Network Devices

Network Stack

IP Address

Transmission Control Protocol

Basic Network Tools and Applications

Switching techniques

 

Network topologies

Society Law and Ethics

Society Law and Ethics

Digital Property Rights

LICENSING

CYBERCRIME

Cyber Forensics

Technology And Society

Gender and Disability issues

 

CBSE Class 12 : Sample Papers

Class 12 Python Sample Paper 1
Class 12 Python Sample Paper 1 (Solution)
Class 12 Python Sample Paper 2
Class 12 Python Sample Paper 2 (Solution)

CBSE Class 12 : Practical File

Practical File Programs

CBSE Class 12 :  Python Project

Student management System

Student Management System 2

Banking System

MarkSheet Management System

Stock Management System

Telephone Directory

Digital Directory

CBSE Class 12 Django Example 1

Django Introduction     Example : 1 To test Python Django working    Example :2 To display welcome message    Example :3 To To Display Students Data In Table Format

Setting the Path of Python

* setting PYTHON_HOME
* Select the path of python
* C:\Python37
* Set the path (PYTHON_HOME)
* PYTHON_HOME= C:\Python37;
* AND CHANGE IN PATH as
* %PYTHON_HOME%;

Suppose we have a folder
E:\DJANGO

To test Django
GO TO folder e:\django

Step :1 : Create a project in django

E:\Django>django-admin startproject welcome
E:\Django>dir
Volume in drive E is disk_2_2
Volume Serial Number is 4CD9-C42C
Directory of E:\Django
12/15/2019 08:46 PM <DIR> .
12/15/2019 08:46 PM <DIR> ..
12/15/2019 08:46 PM <DIR> welcome
0 File(s) 0 bytes
3 Dir(s) 109,864,316,928 bytes free
E:\Django>

CBSE Class 12 Python Django

Step:2 : go inside the project folder using “cd” command.

E:\Django>cd welcome
E:\Django\welcome>

CBSE Class 12 Python Django

Step:3 : Create an application

E:\Django\welcome>python manage.py startapp testapp

E:\Django\welcome>dir
Volume in drive E is disk_2_2
Volume Serial Number is 4CD9-C42C

Directory of E:\Django\welcome

12/15/2019 08:51 PM <DIR> .
12/15/2019 08:51 PM <DIR> ..
12/15/2019 08:46 PM 648 manage.py
12/15/2019 08:51 PM <DIR> testapp
12/15/2019 08:51 PM <DIR> welcome
1 File(s) 648 bytes
4 Dir(s) 109,864,263,680 bytes free
E:\Django\welcome>

CBSE Class 12 Python Django

Step:4 : Run the server so that we can check whether django is running or not.

E:\Django\welcome>python manage.py runserver
Watching for file changes with StatReloader
Performing system checks…

System check identified no issues (0 silenced).

You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run ‘python manage.py migrate’ to apply them.
December 15, 2019 – 21:15:48
Django version 2.2.3, using settings ‘welcome.settings’
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

CBSE Class 12 Python Django

Step:5 Now copy and paste

http://127.0.0.1:8000/

we get output as

CBSE Class 12 Python Django

If the above screen gets displayed on the browser it means our django is running properly.

Congrats

Django Introduction     Example : 1 To test Python Django working    Example :2 To display welcome message    Example :3 To To Display Students Data In Table Format

Number Of Visitors

0270432