Description Submission
974. Subarray Sums Divisible by K
Description Submission
1938. Maximum Genetic Difference Query
Description Submission
Fix “locale.Error: unsupported locale setting”
Reproduce Fix Verification
Filepath of Executing File
The default file path for python is the path of ‘__main__‘, regardless of where the called module is located. To know where the module is, […]
Troubleshoot for peewee
ImproperlyConfigured: MySQL driver not installed You may refer to MySQL API Dependency Installation to install the MySQL Drivers. This issue is stated at ImproperlyConfigured: MySQL […]
MySQL API Dependency Installation for peewee
When using peewee with MySQL, 2 types of API can be used, one is pymysql, another is mysqlclient. They can be used as alternatives, but […]
Dynamically Defining a Database in peewee
In most of the cases, predefining the database if fine, as in the official Quickstart tutorial, following are the 2 major ways, database proxy and […]
Peewee Mod Operator Overload
Mod(modulo) operation is not officially defined for peewee database query. To use the “MOD“ operator, we have to override the operator by ourselves.1 After this, […]