The usage of aggregate and annotate GROUP BY in django

Contact with django has been a long time, but the way of using QuerySet query set has been relatively low-end, only using filter/Q function/exclude to query, when the amount of data is relatively small, it is OK, but if the amount of data is large, and the query is more complex, then the efficiency of using multiple filters to query will be ve ...

Posted by Retired Bill on Thu, 10 Jan 2019 13:03:10 -0800

8-vue Django restful framework to create fresh supermarket-commodity category data display (part two)

Vue+Django REST framework Set up a website of fresh supermarket with front and back ends separated Django rtf completes the commodity category page vue Displays the List of Commodities Page Data Click on a navigation level class to display the data. Or click on the search to find the results These two functions need to be compl ...

Posted by joel danny on Thu, 10 Jan 2019 12:36:10 -0800

13-vue Django restful framework to create fresh supermarket-drf authority verification

Vue+Django REST framework Using Python 3.6 and Django 2.0.2 (Django-rest-framework) and front-end vue to develop front-end and back-end separated mall website The project supports Alipay payment (temporarily does not support WeChat payment), supports mobile phone SMS verification code registration, supports third party login. sen ...

Posted by allworknoplay on Tue, 08 Jan 2019 19:33:11 -0800

django Rest Framework Series 4 - Authentication & Permissions

Official address: http://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/ Currently, our API does not limit who can edit or delete snippets code. We need some more advanced behavior to ensure that: snippets code is always associated with the Creator Only authenticated users can create snippets Only the creator of ...

Posted by jzimmerlin on Tue, 08 Jan 2019 16:21:09 -0800

16-vue Django restful framework to create fresh supermarket-shopping cart function realization

Django 2.0.2 (Django-rest-framework) and the front-end and back-end separated mall website developed by front-end vue Online demo address: http://vueshop.mtianyan.cn/ github source code address: https://github.com/mtianyan/VueDjangoFrameWorkShop This section: Shopping cart function Functional Requirements Analysis of Shopping Cart ...

Posted by leetcrew on Sun, 06 Jan 2019 22:27:10 -0800

Driver takes you to learn: Django+Xadmin to build an online education platform [Python 2 & 3 Universal] (7) - 7 - End uuuuuuuuuuuu

7-7 modelform Submitted to me for Learning Consultation 1 Corresponding table userask form validates the fields first and then saves them to the database. You can see that many of our forms and our model s are the same. How do we reuse code? Use modelform to solve this problem. # encoding: utf-8 from django import forms from operation.models i ...

Posted by saku on Sat, 05 Jan 2019 20:48:10 -0800

6- vue django restful framework to create fresh supermarkets - complete the list of goods page (below)

request and response in drf drf encapsulates django request and response in one layer. Browser requests are encapsulated by drf to extend the standard http request REST framework's Request class extends the standard HttpRequest, adding support for REST framework's flexible request parsing and request authentication Extended on the ...

Posted by avvllvva on Sat, 05 Jan 2019 14:06:09 -0800

Configure the Django_Apache_Mysql environment under Linux (CentOS 7.5)

This article describes how to deploy the Django + Mysql + Apache environment on Linux. We know that Django's built-in http server can only work in a single thread. It is possible to do development and debugging, but the production environment usually has multi-user concurrency, and the performance of django's simple HTTP server for handling a ...

Posted by prashant0812 on Thu, 03 Jan 2019 20:30:09 -0800

django rest framework personal learning notes (2) - Tutorial 1. Serialization

Serialization -- serialization Official website address Preface This tutorial will introduce the creation of a simple web API. Throughout the learning process, the various components of the REST framework will be introduced one by one to give you a comprehensive understanding of all things if combined.This tutorial will be quite detailed, so be ...

Posted by pornophobic on Tue, 01 Jan 2019 16:00:08 -0800

Django|Nginx|Uwsgi|Redis|Websocket Configuration, Use and Deployment

Introduction Where to Start mysql installation Install Nginx Install php virtual environment Redis Installation and Configuration Redis installation Configure redis to use unix domain sockets Configure Redis as the back end of django session storage and caching django-websocket-redis install To configure deve ...

Posted by TheBentinel.com on Tue, 01 Jan 2019 09:51:08 -0800