I hereby claim:
- I am rixx on github.
- I am rixx (https://keybase.io/rixx) on keybase.
- I have a public key ASDSgbthxeP9hBggbdd7FMbQjKNL5zCBJumGVUtGRwDsawo
To claim this, I am signing this object:
from django.db import models | |
from urlman import NamedUrls | |
class Event(models.Model): | |
code = models.CharField(max_length=20) | |
class urls(NamedUrls): | |
base = 'orga:event.list' | |
detail = 'orga:event.view', {'event': self.code} |
I hereby claim:
To claim this, I am signing this object:
import os | |
from django.http import Http404, FileResponse | |
def get_static(request, path, content_type): | |
path = os.path.join(settings.BASE_DIR, 'pretalx/static', path) | |
if not os.path.exists(path): | |
raise Http404() | |
return FileResponse(open(path, 'rb'), content_type=content_type) |
import sqlite3 | |
import sys | |
def usage(): | |
print("Usage: covsource.py <file> <linenos>") | |
print(" e.g. covsource.py foo/bar.py 14,15\n") | |
print(" or covsource.py foo/bar.py 14-27\n") | |
sys.exit(1) |
import json | |
import sqlite3 | |
from datetime import datetime | |
import requests | |
from tqdm import tqdm | |
BASE_URL = "https://code.djangoproject.com/jsonrpc" | |
DJANGO_MAX_TICKET = 33562 |
[zammad] | |
token = secrettoken | |
url = https://my.domain.com | |
[pushover] | |
user = secretusertoken | |
app = secretapptoken |
There are a bunch of man page browsers available online. They have different data sources, feature sets, and disadvantages, so here is a short comparison table:
Name | ls man page | No Trackers/Ads | Clickable Headings | Links² | ToC¹ | Local Search | Noteworthy |
---|---|---|---|---|---|---|---|
Arch manual pages | ls |
threads.net | |
threads.instagram.com |
def defuzzy(message): | |
import pathlib, polib | |
pofiles = list(pathlib.Path(".").glob("pretalx/**/**/django.po")) | |
for path in pofiles: | |
po = polib.pofile(path) | |
entry = po.find(message) | |
if entry and entry.fuzzy: | |
entry.flags.remove("fuzzy") | |
entry.previous_msgid = None | |
po.save() |
Short (well, I tried) collection of thoughts and impressions after moving to Django-native template-based form rendering with pretalx, my ~medium-sized(?) Django project.
When Carlton threatened to read my code (shock, horror), I decided to just write up my impressions, and a gist/pastebin/etc seemed the right format, cuz this isn’t polished enough for a blog post, and also way not constructive enough.