Django builds personal blog platform 6 --- front end templates template index page
Django builds personal blog platform 6 - front end templates template index page
Django's template template renders official documents: Official documents
You can go to the template website to find your favorite website, and refer to its style and layout. You can also refer to mine. Don't be afraid. The Internet is an open source platform ...
Posted by ciaranmg on Mon, 31 Jan 2022 20:34:33 +0100
Spark BigData Program: big data real-time stream processing log
Spark BigData Program: big data real-time stream processing log
1, Project content
Write python scripts to continuously generate user behavior logs of learning websites.Start Flume to collect the generated logs.Start Kafka to receive the log received by Flume.Use Spark Streaming to consume Kafka's user logs.Spark Streaming cleans the data ...
Posted by iriedodge on Mon, 31 Jan 2022 13:43:09 +0100
Django configures CSRF (Cross Site Request Forgery) protection
Django configures CSRF (Cross Site Request Forgery) protection
to configure
In the project settings Add the following to the PY file.
MIDDLEWARE = [
'django.middleware.csrf.CsrfViewMiddleware',
]
The implementation of cross domain Request Forgery protection is mainly divided into two steps
Step 1:
Django's CSRF protection requi ...
Posted by davidlenehan on Sat, 29 Jan 2022 16:04:09 +0100
Notes on website development - ([Django] html form storage Mysql method)
1, Preparation link
Under development, no open source project, the details are inconvenient to show, only for Development notes. Environmental Science:
python3.8
django4.0
Mysql
compiler:
pycharm
sqlyog
Preliminary preparation: Notes on website development - (Introduction to django)
2, Front end html file
<form action="/now/use ...
Posted by amrigo on Sat, 29 Jan 2022 14:53:16 +0100
Multiple crawlers crawl data and write it into the database in Django ----- the crawled service manages multiple crawlers
Cause: when implementing a system, we need to add the scratch crawler framework, which involves multiple crawlers. Originally, we just wanted to simply start the crawler. We refer to the fifth link, but it is still inconvenient. Later, we learned that scratch can manage crawlers, such as modify, delete, add, run, etc., so we introduced the scra ...
Posted by oliverj777 on Fri, 28 Jan 2022 21:06:43 +0100
Django password and security
Django password and security
Cryptography is a technique used to confuse (information represented by public and standard information coding is transformed into communication by a transformation means) Information code that cannot be read by anyone other than both parties). Is to transform normal (identifiable) information into unrecognized inf ...
Posted by jme on Thu, 27 Jan 2022 23:48:53 +0100
Integrated installation of Nginx+UWSGI+Django
1. Nginx+openssl installation:
1, Download dependent files pcrenginx
1,pcre:
PCRE A library is a set of functions that use Perl 5 Regular expression pattern matching is implemented with the same syntax and semantics.PCRE Have your own native API,And a group with POSIX regular expression API Corresponding wrapper function.
...
Posted by hookit on Thu, 27 Jan 2022 06:48:38 +0100
User login of Mido Mall (QQ login)
2, QQ login
2.1 QQ login development document
QQ login: the so-called third-party login means that the user can successfully log in to the project without entering a password in the project.
1. Application steps for QQ Internet developers
If you want to realize QQ login, you need to become a developer of QQ Internet and pass the aud ...
Posted by prslou on Sat, 22 Jan 2022 12:15:32 +0100
DRF authority authentication
1, First of all, understand the process of CBV in Django. The full name of CBV is Class Base View, and its Chinese name is class view. In short, the use method of CBV in Django is class name as_view() before entering as_ In view (), the dispatch() method will be executed first. In Django's view, the dispatch() method only reflects the url and ...
Posted by piet on Wed, 19 Jan 2022 01:04:44 +0100
Introduction to Django Database (SQlite) tutorial
1: Create a project
django-admin startproject mysite
Once created, the project directory structure is as follows:
Manage. Py ----- Tools inside a Django project that can call Django shells, databases, etc.
settings.py -- Contains default settings for the project, including database information, debug flags, and other work variables.
ur ...
Posted by lotrfan on Tue, 18 Jan 2022 18:32:23 +0100