[day 16] python programming: from introductory to practical learning notes - Web Development Based on Django framework - user account (3)

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#11. Brief Tour of the Standard Library-Part II

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

CentOS + Python 3 + Django + Nginx + uwsgi Server Installation Configuration

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] 1.jpg ...

Posted on Mon, 07 Jan 2019 19:48:09 -0800 by dercof

Based on Ubuntu 16.04 + Apache 2.4 + Django + Python 3 (non-virtual alenv solution)

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://106.12.38.12: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

Python Web deployment: using flask + gunicorn + supervisor + nginx

flask_python's Server Framework gunicorn_web service, WSGI container supervisor_process management tool nginx_a high performance web server Create project mkdir 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

2- vue django restful framework to build fresh supermarket - model design and resource import

Vue+Django REST framework Set up a website of fresh supermarket with front and back ends separated 3-Model Design and Resource Import Resource initialization 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

API Automation Test Platform Implemented by Flask+Python 3--IAPTest Interface Test Platform

** 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

21- vue django restful framework to create fresh supermarket - home page commodity classification display function

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

Driver takes you to learn: Django+Xadmin to build an online education platform [Python 2& 3 Universal] (7) - 4-6

7-4 Course Institutions List Page Data Display 2 Go ahead to html for data filling mark You can see that all cities are labeled a, and the currently selected city is active. mark Then delete the dead city below. mark That's the data we added in the background. mark You can see that each course organization is a dl Simi ...

Posted on Fri, 04 Jan 2019 16:06:08 -0800 by powerpants

Python Interface (3): An Example of Python

I. Problems       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