annotate bio/apps.py @ 973:6f55c086db1e

Guess file extension based on content-type. When downloading a file, and no path is supplied to store it, guess the file extension using mimetypes and the content-type header. Also supply a unit test for the HotLinkImageForm.
author Brian Neal <bgneal@gmail.com>
date Thu, 01 Oct 2015 19:44:45 -0500
parents 0b6bf9c5a982
children
rev   line source
bgneal@919 1 from django.apps import AppConfig
bgneal@919 2
bgneal@919 3
bgneal@919 4 class BioConfig(AppConfig):
bgneal@919 5 name = 'bio'
bgneal@919 6 verbose_name = 'Biography'
bgneal@919 7
bgneal@919 8 def ready(self):
bgneal@919 9 import bio.receivers