Django small note

Django small note

A small problem routing relationship map:

The URL that represents the caret to the beginning of the $ symbol indicates a certain ending certain which limits the beginning and end of the regular, also fixed length

But the admin / 123 can not be matched to the admin Why? $ Symbolic role it?

This is because the admin django comes with, some of the special, but our custom that when mapping a route relationship, you need to add this unity on the caret ^ and the $ symbol.

Route distribution:

Each APP below can have its own independent url.py static template file folder templates

APP also means that each can be developed independently, without interaction.

When developed, will be distributed to each task APP different programmers to develop, finally, a summary of the time, the project manager will be all

APP total folder of the project the following configuration register setting a bit,

 

Multi-table queries, forward and reverse, to take a look at the database, look at the video that day, review the sql statement multi-table queries and then how to write this in writing in accordance with

I just need to grasp this orm do not need to go back and look at the sql statement that this is too much trouble with orm python is more convenient

 

The first to use this orm in aggregate function, you first have to come to guide

What is the query object / ???

The establishment of a lot of relational tables There are three main methods:

ajaxs profile:

Partial refresh, asynchronous submit

We learned ajax based jquery you must first import in the process of writing the jQuery

Small example:

Input automatically generate three boxes on the page

Click on the submit button user input after the first two numbers is completed, automatically calculate and

Note that the front end of the rear end of the acquired data is a string type, filed

Guess you like

Origin www.cnblogs.com/1832921tongjieducn/p/11505470.html