VirtualBox CentOS 7+Django+uwsgi+nginx

Django Architecture CentOS 7 system is compatible with Python 2 and Python 3. This project is based on Python 3 environment. Install Django CentOS 7 System Installation django pip3 install django Create the Django project dataPlatform under Windows and add the following code to set.py: #In the MIDDLEWARE_CLASSES ...

Posted by jesus_hairdo on Mon, 31 Dec 2018 15:36:09 -0800

Django Rest Framework Source Analysis (6) - - Serializers

I. Introduction The serialization component in the django rest framework can be said to be its core component and the most commonly used component. It not only has serialization function, but also provides data validation function (similar to form in django). For easy serialization operations, we need to add foreign keys to the model and many ...

Posted by chelnov63 on Mon, 24 Dec 2018 15:54:06 -0800

20-vue Django restful framework to build a fresh supermarket-wheel-seeding map interface and Vue debugging

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: Realization of Rotary Graph Interface and vue Debugging Realization of Ro ...

Posted by socadmin on Mon, 24 Dec 2018 02:51:05 -0800

Django - How to realize the function of data query (table)? datatable - client processing

Background of the problem: In the author's exercise project, users need to query how many books the current system has entered after login. So this brings the following problems: Query conditions that need to be saved for user input The back end needs to process the query conditions entered by the user and return the corresponding data. Front- ...

Posted by kraen123 on Sat, 22 Dec 2018 11:51:06 -0800

19- vue django restful framework to create fresh supermarket - Alipay payment source interpretation

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: Interpretation of Alipay payment source code Interpretation of Alipay pay ...

Posted by lhcpr on Fri, 21 Dec 2018 00:33:05 -0800

Construction of centos+apache+python 34+django+mod_wsgi development environment

Write to yourself, linux Operations and Maintenance Road.linux:centos7.3+apache+python3.4+django+mod_wsgi+sambawindows: eclipse pycharm sublimeRecently, I have been learning python. Although it is convenient to develop under windows, in general, I will put the program into linux environment to run in summer. so... directly build a linux+windows ...

Posted by chito on Sun, 16 Dec 2018 14:30:04 -0800

11- vue django restful framework to create fresh supermarkets - user login and mobile phone registration (2)

Vue+Django REST framework Set up a website of fresh supermarket with front and back ends separated Django rtf completes mobile phone registration and user login (2) user serializer and validator validation (registration function) The registration page requires us to enter the phone number verification number and password. django ...

Posted by skorp on Sat, 15 Dec 2018 00:18:04 -0800

[day 15] python programming: from introductory to practical learning notes - Web Development Based on Django framework - user accounts (2)

Chapter 19 User Accounts (II) Create user accounts In this section, we will create a user registration and authentication system. Application users First use the command Python management. py startapp users to create an application named users. Now your directory should be the same as the following. 1. Add application users ...

Posted by simenss on Thu, 13 Dec 2018 17:18:07 -0800

select_related and prefetch_related for Django query optimization

1. select_related query optimization    select_related obtains all data at one time through multi-table join Association query, and improves performance by reducing the number of database queries, but the association table can not be too many, because the join operation is inherently more performance-consuming. This article ...

Posted by ale_jrb on Thu, 13 Dec 2018 16:27:08 -0800

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

4-5 user modesl.py design Circular reference: When designing apps, each app has a model mark Figure: We define usercourse in user to record user learning courses. There will be two foreign keys: user and course. We'll import Courses.models. If users comment on the course, it will be placed in Courses.models. Comments need to be saved to ...

Posted by Gonwee on Thu, 13 Dec 2018 09:21:13 -0800