Open file /etc/default/locale to add or change LC_ALL to the following
LC_ALL="en_US.UTF-8"
Then logout and login again.
Install necessary packages
| import base64 | |
| import os | |
| from tastypie.fields import FileField | |
| from django.core.files.uploadedfile import SimpleUploadedFile | |
| class Base64FileField(FileField): | |
| """ | |
| A django-tastypie field for handling file-uploads through raw post data. | |
| It uses base64 for en-/decoding the contents of the file. | |
| Usage: |
| LOGGING = { | |
| 'version': 1, | |
| 'disable_existing_loggers': False, | |
| 'handlers': { | |
| 'mail_admins': { | |
| 'level': 'ERROR', | |
| 'class': 'django.utils.log.AdminEmailHandler' | |
| }, | |
| 'null': { | |
| 'level':'DEBUG', |
Lead programmer. Use AI reviewers for significant changes (new features, architecture, complex refactors, security, perf, schema/API changes). Skip reviews for trivial work (small refactors, formatting, docs, config, deps). Be skeptical of your own code and reviewer feedback.
Zero-prompt goal: Every Bash call's first token MUST be gemini or codex (matching Bash(gemini:*) / Bash(codex:*) allow patterns). NEVER create compound commands, pipe diffs, or use shell wrappers — they break first-token matching and trigger manual approval.