GithubHelp home page GithubHelp logo

django-learning's Introduction

django-learning

Learning Python Framework Django

Learning

What is Django? 1.Django is python web framework 2.Django is backend server side web framework. 3.Django makes easier to build web pages using python. Take cares of difficult stuff so that we can concentrate on building web apps. 4.Provides many built in features.

MVT

Django follows MVT design patterns:

Model - data we want to present, usually data from a database View - A request handler that returns the relevant template and content - based on the request from the user. Template - A text file (like an HTML file) containing the layout of the web page, with logic on how to display the data.

Set up the Environment Download and install python Check you pip is working Install Django pip install Django django-admin --version django-admin startproject python manage.py startapp login python manage.py runserver python manage.py migrate python manage.py makemigrations python manage.py startapp emp python manage.py createsuperuser

Lets Understand .Project structure .URLs URLs Define .Views functions & classes .Templates HTML Templates .Models-CRUD OPERATIONS

Let build employee management

Add Employee View Employee Delete Employee Update Employee

from website.models import Student student=Student(name="Durgesh",college="ABC",age=22,is_active=True) student.name student.college student.age student.save() x=Student.objects.get(id=1) x.name all=Student.objects.all() for i in all: print(i.name)

django-learning's People

Contributors

yadavikas004 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.