Commits

Jannis Leidel committed fc4deda

Minor bikeshedding about the utility module name.

Comments (0)

Files changed (5)

storages/backends/azure_storage.py

         "Could not load Azure bindings. "
         "See https://github.com/WindowsAzure/azure-sdk-for-python")
 
-from storages.util import setting
+from storages.utils import setting
 
 
 def clean_name(name):

storages/backends/gs.py

 from django.core.exceptions import ImproperlyConfigured
 
 from storages.backends.s3boto import S3BotoStorage, S3BotoStorageFile
-from storages.util import setting
+from storages.utils import setting
 
 try:
     from boto.gs.connection import GSConnection, SubdomainCallingFormat

storages/backends/s3boto.py

     raise ImproperlyConfigured("Could not load Boto's S3 bindings.\n"
                                "See https://github.com/boto/boto")
 
-from storages.util import setting
+from storages.utils import setting
 
 boto_version_info = tuple([int(i) for i in boto_version.split('.')])
 

storages/util.py

-from django.conf import settings
-
-
-def setting(name, default=None):
-    """
-    Helper function to get a Django setting by name or (optionally) return
-    a default (or else ``None``).
-    """
-    return getattr(settings, name, default)

storages/utils.py

+from django.conf import settings
+
+
+def setting(name, default=None):
+    """
+    Helper function to get a Django setting by name or (optionally) return
+    a default (or else ``None``).
+    """
+    return getattr(settings, name, default)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.