django user login design of novice Python
Environmental preparation
Front end framework semantic ui
Python 3.6.4
pip install django
The development tool is pyCharm
Data model design
The user table contains the following information
User name
Full name
Gender
Password
Cell-phone number
Creation time
Update time
Is it effective?
The user/models.py user model is as follows
user is the ...
Posted by plouka on Wed, 01 Apr 2020 00:13:14 -0700
Python 3 Django (7) Django has many ways to transfer data from the background to the front.
Django has many ways to transfer data from the background to the front.
Basic form:
from django.shortcuts import render
def main_page(request):
return render(request, 'index.html')
views to HTML usage data
views is passed to HTML to use data
Code in views:
from django.shortcuts import render
def main_page(req ...
Posted by Paragon on Tue, 31 Mar 2020 01:16:00 -0700
Django's simple command and implementation of the first page
1, Create a python virtual environment and install django
2, Create a django project
Command: Django admin startproject project name
eg:
G:\django_learn>workon testvir
(testvir) G:\django_learn>django-admin startproject django_learn
After execution, a django project will be created successfully and the directory will be generated
--- djan ...
Posted by dannylewin on Mon, 23 Mar 2020 08:51:47 -0700
tornado learning notes day04 execution order
Response output - > write
prototype
self.write() function
This is how it is defined in the source code
def write(self, chunk: Union[str, bytes, dict]) -> None:
Effect
Write chunk data to buffer
Four ways to refresh buffer
Program interrupt
Manual refresh
Buffer full
Encounter \n
When you write a print, it is not directly displayed on t ...
Posted by chyan on Mon, 16 Mar 2020 20:31:09 -0700
Design of xdh official website based on django and vue
Preface
This project is designed with three-stage separation
Reception
The foreground page built by materialize framework and the interface written by django used by the backend
Backstage
Use the interface built by Amazon UI template to manage the content of each part
Project environment
python3.7.2
django2.2.9
vue
axios
jQuery
materialize
mys ...
Posted by jrws on Sun, 15 Mar 2020 21:25:46 -0700
Python starts from scratch - renovation of the blog project on the official website from 0
Verify the Python blog from 0 on, and I don't know what I want to verify.Write whatever you think.First set up the official blog.Record a hole in the middle. Official address
1. Preparation:
Tools: pycharm+Anacondar
Environment: Django3+python3.8
2. Create a project:
pycharm->file->new project ...
Posted by Quinton1337 on Sat, 14 Mar 2020 18:29:40 -0700
python tkinter game development
Using python to make simple game cases
Editing environment: Python 3.7
Compiler: vscode
Case Directory:
1. Sequence application - word guessing game
2. Object oriented design application licensing game
3. Graphic interface design - guessing digital games
4.Tkinter graphic drawing - Graphic licensing program
5.Python image processing -- characte ...
Posted by raven_web on Fri, 13 Mar 2020 04:15:39 -0700
User module creation for python framework Django real-world mall project
Create User APP
There will be multiple applications throughout the project and they need to be stored in a separate file package, so create a new apps directory to manage all the sub-applications.
Wear-through users application under apps package directory
python ../../manage.py startapp users
At this ...
Posted by discostudio on Mon, 09 Mar 2020 20:55:51 -0700
Django+Nginx+UWSGI deployment project
For projects written locally, the running results can only be viewed by ourselves and cannot be used by others.
If you want to go online, you can deploy the project on the cloud server through Django+Nginx+UWSGI. At this time, other users only need to enter the URL address to use the project.
Pre depl ...
Posted by pinxxx on Fri, 06 Mar 2020 01:05:24 -0800
Server programming - Django - create web page
Article directory
Foreword ´`
Listview
Detail modification of ListView
Edit the details page of each book
detailView
Paging edit
Conclusion ( ̄)  ̄) A kind of
Foreword ´`
In the previous section, we set up the home page. Here we will create some other pages, such as books author, et ...
Posted by breadcom on Thu, 05 Mar 2020 05:35:10 -0800