1 2 3 4 | nullFile = lambda r: HttpResponse()
# As you might've figured out, you use it in urls.py with:
# (r'myRegex', 'some.module.nullFile'),
|
More like this
- Debug-only static serving by ludvig.ericson 5 years, 4 months ago
- Search DjangoSnippets with Firefox by Natim 3 years, 8 months ago
- Improved Accept header middleware by ludvig.ericson 4 years, 8 months ago
- Django & cache headers by ludvig.ericson 5 years, 10 months ago
- Inline truncate by character number by esanchez 4 years, 10 months ago
Comments