Chapter 19 User Accounts (3)
Let users have their own data
In this section, we will create a system to determine the users to which each data belongs, and then restrict access to the page so that users can only use their own data.
Modify the model Topic so that each topic belongs to a specific user.
Restrict access with @login_requ ...
Posted on Wed, 09 Jan 2019 16:48:10 -0800 by esconsult1
The Python Tutorial#Brief Tour of the Standard Library-Part II
The second part introduces more advanced modules to meet professional programming needs, which are rarely used in small scripts.
11.1 Output Formatting
reprlib Modules provide a customized version of large or deeply nested containers repr() Function:
>>> import reprlib
Posted on Wed, 09 Jan 2019 08:48:10 -0800 by secret007
1. First of all, you have to buy a server. (Remember to choose CentOS)
2. Then download a connection software called Putty. (Baidu "putty" has to be downloaded)
3. Open Putty, enter your server's public network ip, and then click Open
4. After opening, enter the username and password to login to the connection. [Figure 1]
Posted on Mon, 07 Jan 2019 19:48:09 -0800 by dercof
The blogger sprouted a new one, spent two days in primary school django and built a simple and deliberately designed vulnerable blog website. At present, the project is set up on Baidu cloud server, access http://220.127.116.11:81/index/ Yes. However, it took me two days to deploy to Apache 2. I thought it was very simple, but I ...
Posted on Mon, 07 Jan 2019 19:36:09 -0800 by kday
flask_python's Server Framework
gunicorn_web service, WSGI container
supervisor_process management tool
nginx_a high performance web server
Create a path for the application first
Building Python's Virtual Environment
We use virtualenv to build a different python isolation environment in our system. The use of ...
Posted on Mon, 07 Jan 2019 13:48:10 -0800 by mkr
Vue+Django REST framework
Set up a website of fresh supermarket with front and back ends separated
3-Model Design and Resource Import
Database design, data table structure
New Virtual Environment
mkvirtualenv -p=D:\softEnvDown\Anaconda2\envs\py36\python.exe mxshop36
Install Django and Django framework (b ...
Posted on Mon, 07 Jan 2019 01:21:09 -0800 by waverider303
** Background: 1. Usually, the test interface is always written code, the management of test cases and the management persistence of test reports are not enough.2. Mobile development and back-end development can't always be done in parallel at work, and a mock dependency is needed to enable them to develop in parallel.3. At the same time, exerc ...
Posted on Sun, 06 Jan 2019 01:03:10 -0800 by skaforey
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: Home page commodity classification display function
Home page commodity c ...
Posted on Fri, 04 Jan 2019 19:39:09 -0800 by Incredinot
7-4 Course Institutions List Page Data Display 2
Go ahead to html for data filling
You can see that all cities are labeled a, and the currently selected city is active.
Then delete the dead city below.
That's the data we added in the background.
You can see that each course organization is a dl
Posted on Fri, 04 Jan 2019 16:06:08 -0800 by powerpants
Python The mutual invocation between modules and C/C++ dynamic libraries will be involved in practical applications. This paper summarizes.
2. Python calls C/C++.
1. Python calls C dynamic link library
Python calls C libraries relatively simple, without any packaging packaged into so, and then use python' ...
Posted on Fri, 04 Jan 2019 10:18:11 -0800 by magi