Django and Vue develop web separately

@3 month concentrated essence Django and Vue joint project development Project environment construction 1. Build a virtual environment Virtual environment establishment 2. Install django Activate virtual environment, install Django, build myweb project pip installation slow reference: https://blog ...

Posted by webrajesh on Sat, 18 Jan 2020 05:01:20 -0800

Experience and skills summary of Python Django development

Article directory 1. Data transfer between front and back stations 2. Several common methods of interacting with database and returning data 3. Solutions of multiple buttons corresponding to one form 4. Form control and operation in HTML 5. Message frame message usage 6. Auto now, auto now add of Dat ...

Posted by Ilovetopk on Sat, 18 Jan 2020 04:11:04 -0800

Django Web framework teaching notes

Catalog Article directory Catalog Query data Field lookup query predicate Modify data record Delete record Aggregate query F object Q object - Q() Native database operation method Query data The query of database needs to use manager object Call the query interface through the MyModel.ob ...

Posted by BDKR on Thu, 16 Jan 2020 07:22:00 -0800

Django framework: design model

1. Design model We used to operate the database by writing sql statements. Can we operate the database without writing sql statements? Of course, it's time to use the ORM framework. 1.1 ORM framework O is object, which means class object, R is relation, translated into Chinese is relation, which means data table in relational database, M is map ...

Posted by pocobueno1388 on Wed, 15 Jan 2020 03:06:21 -0800

django2: routing path syntax

Catalog 1. Problem introduction 2. Use example 3.path converter 4. Custom converter 4.1 definition 4.2 registration 5. Use regular expressions 6.Import changes 7. Code rewriting 8. summary September 23. Django The 2.0a1 version has been rel ...

Posted by murali on Sun, 12 Jan 2020 01:50:56 -0800

How to force the client to refresh JavaScript files?

We're currently working in a private beta, so we're still making fairly rapid changes, although obviously we'll slow down the process as usage increases. That said, one of the problems we encountered was that after the introduction of the new JavaScript file update, the client browser still uses the cached version of the file, and they can't s ...

Posted by shashiku on Wed, 08 Jan 2020 02:53:41 -0800

django paging system

1. Create the project and set it in settings.py and other basic operations 2. Add data to the database. This database uses mysql database, If using mysql database, pay attention to ① mysql should be introduced into the init file in the created project file import pymysql pymysql.install_as_MySQLdb() And set the relevant in ...

Posted by Mistat2000 on Thu, 02 Jan 2020 15:00:01 -0800

Django instance - static access

Project framework Mydjango blog migrations static jquery-3.3.1.slim.min.js templates index.html login.html admin.py apps.py models.py tests.py urls.py views.py Mydjango settings.py urls.py wsgi.py ...

Posted by jbulaswad on Thu, 02 Jan 2020 10:39:33 -0800

Solutions to problems encountered in the deployment of CentOS 7.4 deployment automation OpsManage

  Install Python Because I installed centos7, I don't need to install python2.7. Just follow the steps below. yum install zlib zlib-devel readline-devel sqlite-devel bzip2-devel openssl-devel gdbm-devel libdbi-devel ncurses-libs kernel-devel libxslt-devel libffi-devel python-devel zlib-devel sshpass gcc git -y mv /usr/bin/ ...

Posted by dannydefreak on Wed, 01 Jan 2020 07:44:27 -0800

centos7 installation jumpserver fortress machine numerous problems detailed explanation (exchange post)

Prepare materials: ip:192.168.220.130 System: centos7 Reference documents: I found a Chinese version that is easy to see http://docs.jumpserver.org/zh/docs/   1. The first two problems are the configuration file is wrong: So I want to put the configuration file here. If I don't want the vi command, it's recommended to c ...

Posted by bachx on Mon, 30 Dec 2019 12:13:21 -0800