I. create administrator
Django provides admin background for unified management of users, permissions and permission groups, and super user initialization method.
Initialize command line:
python3 manage.py createsuperuser
Follow the prompts to set the user name, mailbox, and password:
Posted by divadiva on Mon, 28 Oct 2019 14:34:07 -0700
I. application scenario of timing start
For example, in the stand-alone environment, we need to use Kafka for data persistence. Since the active time of users is from 10 a.m. to 12 p.m., a large amount of data persistence in this time period may affect the performance of the database and lead to the decrease of user experience. We can choo ...
Posted by strago on Mon, 28 Oct 2019 14:15:34 -0700
1.Oracle batch operation
My watch structure is
1.1 batch insertion
1.1.1 primary key does not use sequence
insert into students(sid,sname,ssal,ssex)
select 9,'Zhang San',3000,'male' from dual
union all select 10,'Li Si',4000,'male' from dual
union all select 11,'Xiaohong',5000,'female' from dual
Posted by Alkimuz on Mon, 28 Oct 2019 08:29:39 -0700
I've heard that ThreadLocal is used to achieve high concurrency. Previously, it was implemented with locks. After reading a lot of data, I found that there is a big difference (it seems that ThreadLocal is not a high concurrency solution strictly). Now let's summarize.
The problem in high concurrency is thread safety, which can be said to be h ...
Posted by storyboo on Mon, 28 Oct 2019 05:57:26 -0700
For the blog system used by many people, the BS architecture is adopted here.Blog system needs user management and blog management
User management: user registration, adding, deleting, modifying and querying users
Blog management: add, delete, change and check blog
The database is required. This time, Mysql5.7.17 is ...
Posted by gbow on Mon, 28 Oct 2019 04:13:45 -0700
An important part of MVC or MVC framework is ORM, which realizes the decoupling of data model and database, that is, the design of data model does not need to rely on specific database, and the database can be easily replaced through simple configuration, which greatly reduces the workload of developers and does not need to f ...
Posted by aximbigfan on Sun, 27 Oct 2019 23:49:45 -0700
iClient for OpenLayers drawing graphics library
In the process of support, I once met a small customer partner who asked me how to store the drawn graphics. In fact, there are many ways. I chose a simpler way to create my own service by using nodejs and connect mysql to store the graphics ...
Posted by kbrij on Sun, 27 Oct 2019 20:06:31 -0700
Forum and background built with node+mongodb
This is the first project background that I have done. If there are any inappropriateness and correction, please give me more advice. This project is only for reference! Thank you.
I put the source code at the bottom of the article. If you need it, you can ...
Posted by curb on Sun, 27 Oct 2019 05:23:53 -0700
This article first appeared on personal website: Using Mockito in Spring Boot projects
Spring Boot can work with most popular testing frameworks: create unit tests through Spring JUnit; generate test data to initialize the database for testing; Spring Boot can work with BDD (behavior driven development) tools, Cucumber and Spock to test applic ...
Posted by WendyLady on Sun, 27 Oct 2019 03:25:22 -0700
0x01 SQL server Foundation
0x02 basic injection
Some versions of SQL server have been installed by hackers. Please check the details at the end of this article.
0x01 SQL server Foundation
Before learning to inject, the most important thing is to understand the specific things of SQL server, so as to better inject operations.
System libr ...
Posted by mikem562 on Sat, 26 Oct 2019 13:26:43 -0700