Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
3 views

Programming Language

Uploaded by

rr3664470
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Programming Language

Uploaded by

rr3664470
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Programming Language :- Django Framework Lecture No.

1. programming language provide raw material for software development.

2. programming language provide syntax and semantic for software development .

3. c, c++, paython , java, c#, are some popular programming language.

_________________________________________________________________________________

4. Software Technology : Software Technology are non- installable software , but the software
developed by

using software technology are installable.

1.Open Source Technology

2.Closed sourced technology

__________________________________________________________________________________

#Frame Work :- Frameworks are installable software , they provide us pre-designed architecture.

By using framework you can developed software application more easily.

if you develop by using software technology then need to you written common code and

application specific code both.

if you develop software by using framework then you need to written application specific code only
and framework take care of command code.

_________________________________________________________________________________

Technology :- Along With Framework :-

Python for Web :- Django ,flask

python for ml and data science :- Scikit-Learn of python wich is very useful to Machin
learning ,TensorFlow Kera's

Java Framework :-spring ,spring boot, Hibernate, Struts, JSF(java server face )
PHP:- Laravel ,CakePhp, CodeIgniter

Net:- MVC ,Xamarin

__________________________________________________________________________________

Django Framework :- Django is a web framework written in python programming language


developed by Adrian holovat

and Simon Willison in year 2005. Django framework 9is used to developed scalable , maintainable
and secure web

application.

Django framework fallow MVT(Model View Templet) Architecture .

Model:- model contain data base part of your application.

View :- View contain Business Logic of your application .

Template :- Template is a simple .html file , in which you can write html code and python code
both.

__________________________________________________________________________________

Django Install Command :-

Step to create a Django Project :

Install Django Framework --- > pip install Django


Create Django project ----- > Django - admin startproject myproject (project
name)
How to run Django framework ------ python manage.py runserver

Command To Create a Django App :-

1. Python manage.py startapp myapp ( create app & make folder)


2. myapp---> templates--->index.html
After Creation of model you need to register your model in admin.py(views .py)

After registering the model run following command In terminal :-


Python manage.py makemigrations
Python manage.py migrate
Steps to create superuser:-
Write following command in terminal:-
1. Python manage.py createsuperuser
2. Username(leave blank for’computername’):admin
3. Password:admin
4. Re-enter password :admin
5. Python manage.py runserver(for compile or run
program)
6. {{object name. variable }} = for Expresson
7. {% %} = scriptlet for python store value

(csrf) Class site request forgery

Orm(oobject relationship mapping)


Request method= post that means
form is ubmit
Task 1 :- Model Name : Student
Field:-
Rool No.  int p.k
Name -- varchar(50)
Branch-varchar(50)
Year-varchar(30)
Complete CRUD Operation.

You might also like