jquery supplement and Django Basic use _day18

Source: Internet
Author: User
Tags install django

jquery Extended Binding Events
1 <!DOCTYPE HTML>2 <HTMLLang= "en">3 <Head>4     <MetaCharSet= "UTF-8">5     <title></title>6 </Head>7 <Body>8     <inputtype= "text"ID= "INP"><inputID= "BTN"type= "Submit"value= "Add" />9     <ul>Ten         <Li>Content One</Li> One         <Li>Content II</Li> A     </ul> -     <Scriptsrc= "Jquery-1.12.4.js"></Script> -     <Script> the  -  -         $(function () { -             $('#btn'). Click (function () { +             varv= $('#inp'). Val (); -             varLi=Document.createelement ('Li'); + li.innerhtml=v; A             $('ul'). Append (li); at         }); -  -             $('ul'). On ('Click','Li',function () { -             varv= $( This). text (); - v=v+ '+1'; -             $( This). Text (v); in         }) -         }) to  +     </Script> - </Body> the </HTML>

Django Installation and use installation

Python pip3.5 Install Django

Create Project and App
Create Project
Enter the directory you specified first
Django-admin Startproject MySite

MySite
-MySite (config file)
-urls.py Configuring URL correspondence
-manage.py (Manage project)
-App (CMDB)
-models.py Database operations
-admin.py configuration of Django-brought back-office management
-apps.py the current app configuration
-tests.py Unit test
-views.py do business processing ...

jquery supplement and Django Basic use _day18

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.