view custom_search/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 78b459d4ab17
children
line wrap: on
line source
from django.apps import AppConfig


class CustomSearchConfig(AppConfig):
    name = 'custom_search'
    verbose_name = 'Custom Search'

    def ready(self):
        import custom_search.receivers