django internationalization and background switching between English and Chinese

The deployment site of the project is: China mainland and the east coast of the United States, the server data of the two regions are not synchronized, the server pages of the Chinese region are displayed in Chinese, the server pages of the American region are displayed in English, the backstage of the project is developed with ...

Posted by poelinca on Fri, 10 May 2019 13:45:56 -0700

Django - Third Party Reference

Indexes         Rich Text Editor           1.1 in Admin           1.2 Custom Use           1.3 display         Full-text Retrieval           2.1 Create Engine and Index           2.2 use         Sending mail   Rich Text Editor With rich text editors, website ...

Posted by Afrojojo on Fri, 10 May 2019 11:28:49 -0700

Django Builds a Personal Blog: Comment on the Blog

In the age of no Internet, we use diaries to record our daily experience. When I was young, I had a diary with a lock. I was afraid that others would see what was written in it. The key was hidden in it. Now the times have changed, the online version of the diary: blog, but the more people want to see the better. After others have read your dee ...

Posted by mr_griff on Fri, 10 May 2019 03:16:38 -0700

Template Variables and Template Filters

1 Template Path Configuration and Search Template paths are configured in settings.py of configuration files in two ways: DIRS defines a list of directories, which the template engine searches in list order to find template source files. The templates folder is under the project and directory. APP_DIRS informs the template engine whether it ...

Posted by macpaul on Fri, 10 May 2019 01:16:41 -0700

python Actual Warfare - Blog System (Improvement)

The last blog of Blog System hasn't realized the functions of tag search, date search and classification search. This blog is mainly an increase of the above functions. Add comments Step 1: Create a new app:comment, add a new app in the main set. py, and modify the main urls.py file from django.conf.urls import url, include from django.contrib ...

Posted by chelerblondi on Thu, 09 May 2019 17:56:39 -0700

Django project deployment

I. Nginx+uWSGI+Django Deployment Production Environment principle Why Nginx Django has a runserver that directly starts a Web Server. Why do you want Nginx to start a Web Server? Nginx performs better than Django's own Web Server Did you ever think that if we want to be accessed by WEB, we need a WEB Server written by Python (Dja ...

Posted by drtanz on Thu, 09 May 2019 15:08:38 -0700

The first Django application

1. Create projects 1.1 New Project First, create a new project named mysite with the following commands: django-admin startproject mysite # Or use django-admin.py Run successfully and generate some directories: mysite/ manage.py # Command Line Tools for Managing Django Projects mysite/ # Packages, including ...

Posted by terrabull on Thu, 09 May 2019 09:42:40 -0700

django session tracking technology

Catalog Session tracking technology in django What is Session Tracking Technology HTTP Stateless Protocol Cookie overview What is cookie? cookie source code cookie Extra Long Time cookie Extra Long Time Cook Effective Path delete cookie session Why use session instead of cookie Other methods of session session settings Last logon time bas ...

Posted by sumolotokai on Mon, 06 May 2019 07:20:39 -0700

Django Road: Installation and Configuration

Django Road: Installation and Configuration MTV Model Template View Business Processing of Database Template Files Understanding the Django framework, full-featured I. Install the basic configuration of Django & Django Install Django pip3 django Configure Django 1. Configure Django environment variables D:\Program files\pyt ...

Posted by ultrasound0000 on Fri, 03 May 2019 14:30:38 -0700

Django - Common Function

Indexes         I. Static files         II. Middleware         3. Admin Site           3.1 List Page Options           3.2 Edit Page Options           3.3 Rewrite Template         IV. Uploading Pictures           4.1 Upload pictures in admin          ...

Posted by ochi on Mon, 29 Apr 2019 14:00:36 -0700