Tag:view

  • Django 1.8 official document translation: 3-4-1 class based view

    Time:2021-9-18

    Class based view A view is a callable object that receives a request and then returns a response. This callable object can be more than a function. Django provides some classes that can be used as views. They allow you to structure your view and reuse code using inheritance and mixing. Later, we will introduce […]

  • Let IOS developers get started in eight days! (II)

    Time:2021-9-18

    Fluent layout Alignment There is an alignment attribute in the container class, which should be translated as alignment. This attribute is used to control the position of the container’s child controls relative to itself. In our IOS development, we know that the origin of the coordinate system is in the upper left corner. In fluent, […]

  • Simple editing of blog text using typora + markdown syntax

    Time:2021-9-17

    Simple editing of blog text using typora + markdown syntax !!! be careful!!! The input symbol must be in English!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! If it is different, be sure to check whether the input method is in English Using software typora Click to jump to the official website of typora title input#+ space Secondary title input##+ space Tertiary […]

  • DRF automatically generates interface documents coreapi and DRF yasg

    Time:2021-9-17

    Rest framework can automatically help us generate interface documents. Interface documents are presented as web pages. Automatic interface documents can be generated by inheriting fromAPIViewAnd its subclasses. 1. Installation dependency Rest framewrok needs to generate interface documentscoreapiLibrary support. pip install coreapi 2. Set access path of interface document Add the interface document path to the […]

  • Django 1.8 official document translation: 3-4-3 use class based view to process forms

    Time:2021-9-17

    Working with forms using class based views The processing of forms usually has three steps: Initial get (blank or pre filled form) Post with illegal data (usually redisplays forms and error messages) Post with legal data (process data and redirect) Implementing these functions yourself often leads to a lot of duplicate sample code (see using […]

  • Django 1.8 official document translation: 3-2-1 built-in view

    Time:2021-9-16

    Built in view Several of Django’s built-in views are described in the authoring view and elsewhere in the document. File server in development environment static.serve(request, path, documentroot, showindexes=False) In the local development environment, in addition to the static files in your project, there may be some files. For convenience, you want Django as the server. […]

  • Bloc mode of flutter application development

    Time:2021-9-15

    Basic concepts Responsive programming The so-called responsive programming refers to a programming paradigm oriented to data flow and change propagation. The use of responsive programming paradigm means that static or dynamic data streams can be expressed more conveniently in the programming language, and the relevant calculation model will automatically propagate the changed values through the […]

  • Django 1.8 official document translation: 3-1-4 view decorator

    Time:2021-9-15

    View decorator Django provides several decorators for the view to support related HTTP services. Allowed HTTP methods django.views.decorators.httpThe decorator in the package can restrict access to the view based on the requested method. If the conditions are not met, it will returndjango.http.HttpResponseNotAllowed。 require_http_methods(requestmethodlist)[source] The restricted view can only the HTTP method specified by the service. […]

  • Released by mix Vega, it supports the CLI HTTP network framework of swoole and workerman

    Time:2021-9-14

    Mix Vega Vega is a cli HTTP network framework written in PHP and supports spoole and workerman Overview Vega isMixPHP V3+Built in core components (can be used independently), refer togolang gin muxDevelopment, which contains a large number of functions of web application processing (except database processing), including: routing, rendering, parameter acquisition, middleware, file upload processing, […]

  • Django 1.8 official document translation: 3-1-1 URL scheduler

    Time:2021-9-14

    URL scheduler Concise and elegant URL pattern is a very important detail in high-quality web applications. Django allows you to design your URL arbitrarily without being bound by the framework. Not required.phpor.cgiNo similar requirements0,2097,1-1-1928,00Such a meaningless thing. See Berners Lee, inventor of the world wide webCool URIs don’t change, which has excellent arguments on why […]

  • Vue.js-MVVM

    Time:2021-9-10

    Vue is one of the hottest front-end frameworks nowadays. MVVM:Model-View-ViewModel M: Model is the data layer. It may be our fixed dead data or data from the server. However, more data comes from the server (data requested from the network). 5: View is the view layer, which is usually the DOM layer in our front-end […]

  • Summary of transaction knowledge points

    Time:2021-9-9

    The concept of transaction: a set of database operations, either all successful or all failed; Transaction characteristics: atomicity, consistency, isolation and persistence; Possible problems when multiple transactions of the same record are executed at the same time: dirty reading, non repeatability, phantom reading; (in order to solve these problems, the concept of isolation level appears) […]