<s> """<STR_LIT>""" <EOL> from django . conf import settings <EOL> from django . core . exceptions import ImproperlyConfigured <EOL> from appconf import AppConf <EOL> class StaticFilesConf ( AppConf ) : <EOL> ROOT = '<STR_LIT>' <EOL> URL = None <EOL> DIRS = ( ) <EOL> IGNORE_PATTERNS = ( ) <EOL> EXCLUDED_APPS = ( ) <EOL> STORAGE = '<STR_LIT>' <EOL> FINDERS = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> def configure_root ( self , value ) : <EOL> """<STR_LIT>""" <EOL> root = value or getattr ( settings , '<STR_LIT>' , None ) <EOL> if ( settings . MEDIA_ROOT and root ) and ( settings . MEDIA_ROOT == root ) : <EOL> raise ImproperlyConfigured ( "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> settings . STATIC_ROOT = root <EOL> return root <EOL> def configure_url ( self , value ) : <EOL> """<STR_LIT>""" <EOL> url = value or getattr ( settings , '<STR_LIT>' , None ) <EOL> if not url : <EOL> raise ImproperlyConfigured ( "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> if url == settings . MEDIA_URL : <EOL> raise ImproperlyConfigured ( "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> settings . STATIC_URL = url <EOL> return url <EOL> try : <EOL> from django . contrib . admin . templatetags import admin_static <EOL> except ImportError : <EOL> pass <EOL> else : <EOL> from staticfiles . templatetags . staticfiles import static <EOL> admin_static . static = admin_static . register . simple_tag ( static ) </s>
