django sets up a voting website

Yesterday I finally finished the voting page. How to say, I didn't think this book was very helpful to me either. Then I looked at django's documentation and found that it was the same project. But let's start and end well by pasting the Chinese version of the document https://docs.djangoproject.com/zh-hans/2.1/    This time it's time for ...

Posted by Luvac Zantor on Sun, 28 Jul 2019 18:44:10 -0700

Django framework in-depth understanding of _04(DRF url control, parser, responder, version control, paging)

Reading catalogue url control Basic Routing Writing: Most Commonly Used The second way of writing: inherit the ModelViewSet Third way of writing: (Automatically generating routing, you must inherit ModelViewSet) Parser Different data format requests are made at the front end and the results are pars ...

Posted by mgilbert on Mon, 22 Jul 2019 23:39:17 -0700

On-line production environment deployment Djngao+Nginx+Uwsgi

Have you ever thought about porting a Django project from windows to Linux? Linux performance is well known. As a server running Django, it's very suitable. Today, let's share how to run a Django project in the Linux environment of an online cloud machine. Client Access Server Process 1. First, the client requests service resources. 2.nginx, ...

Posted by Ixplodestuff8 on Sat, 20 Jul 2019 19:13:23 -0700

Django Framework Deeply Understanding _03(DRF Authentication Component, Permission Component)

I. Authentication Components Usage method: Write a certification class and create a new file: my_examine.py # Import base classes that need inheritance BaseAuthentication from rest_framework.authentication import BaseAuthentication from rest_framework.exceptions import AuthenticationFailed from app01 import models # Create authentica ...

Posted by wit77 on Wed, 03 Jul 2019 11:47:59 -0700

Django blog development tutorial 4 - Let Django complete translation: migrating database

We've written the code for the blog database model, but that's just Python code. Django hasn't translated it into database language yet, so actually these database tables haven't really been created in the database. Migrating databases In order for Django to complete the translation and create these database tables, we once again invited my eng ...

Posted by onedumbcoder on Fri, 28 Jun 2019 11:26:16 -0700

Model operation based on Django

I. Database Operation 1. Create model tables Basic structure: 1 #coding:Utf8 2 from django.db import models 3 4 class userinfo(models.Model): 5 #Without models.AutoField,By default, a id Auto-addition 6 name = models.CharField(max_length=30) 7 email = models.EmailField() 8 memo = models.TextField() Field Explanation: 1 ...

Posted by jfugate on Thu, 27 Jun 2019 11:17:52 -0700

Nginx + uWSGI + Python + Django deployment instance

Nginx: Nginx is a high-performance Web and reverse proxy server. It has many excellent features:As a Web server: Compared with Apache, Nginx uses fewer resources, supports more concurrent connections and embodies higher efficiency, which makes Nginx especially popular with virtual host providers. Thanks to Nginx for choosing epoll and kqueue as ...

Posted by Cliftron on Sat, 22 Jun 2019 17:50:08 -0700

django database table building process and table structure

Catalog Configure the database Create a table structure Settings of multi-table gateways Self-Creating Association Table Method Joint use of self-built tables and ManyTo ManyField Configure the database In the settings.py file of the Django project, configure database connection inf ...

Posted by peppeto on Wed, 19 Jun 2019 11:36:13 -0700

BBS (Imitate Blog Park System) Project 01 (Project Analysis, Table Structure Design, Registration Function Implementation)

Summary: requirement analysis Table structure design Registration function implementation 1. Demand analysis: Project Requirements (Product Manager, Architect, Development Team Leader talk to customer about project related requirements) Project Design (Architect needs to think about: framework selection, database selection, main functi ...

Posted by mpharo on Wed, 19 Jun 2019 09:59:31 -0700

Using haystack to realize the function of django full-text search engine

Preface django is a powerful web framework of python language. With some plug-ins, it is easy to add search functions to web sites. The search engine uses whoosh, which is a full-text search engine implemented by pure python. It is compact and simple. Chinese search requires Chinese word segmentation, using jieba. Direct use of whoosh in django ...

Posted by kataras on Thu, 30 May 2019 12:02:25 -0700