Browse Source

Imports Fix

Kevin Cummings 5 years ago
parent
commit
eb9ea6354b

+ 6 - 1
coderedcms/blocks/__init__.py

@@ -36,9 +36,10 @@ from .html_blocks import (
     RichTextBlock,
     TableBlock
 )
-from .content_blocks import (
+from .content_blocks import (  # noqa
     CardBlock,
     CarouselBlock,
+    ContentWallBlock,
     ImageGalleryBlock,
     ModalBlock,
     NavDocumentLinkWithSubLinkBlock,
@@ -52,6 +53,10 @@ from .layout_blocks import (
     GridBlock,
     HeroBlock
 )
+from .metadata_blocks import (  # noqa
+    OpenHoursBlock,
+    StructuredDataActionBlock
+)
 
 # Collections of blocks commonly used together.
 

+ 2 - 2
coderedcms/project_template/project_name/settings/dev.py

@@ -1,4 +1,4 @@
-from .base import *  # noqa: F401, F403
+from .base import *  # noqa
 
 # SECURITY WARNING: don't run with debug turned on in production!
 DEBUG = True
@@ -13,6 +13,6 @@ EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
 WAGTAIL_CACHE = False
 
 try:
-    from .local_settings import *  # noqa: F401, F403
+    from .local_settings import *  # noqa
 except ImportError:
     pass

+ 3 - 3
coderedcms/project_template/project_name/settings/prod.py

@@ -1,4 +1,4 @@
-from .base import *  # noqa: F401, F403
+from .base import *  # noqa
 
 # SECURITY WARNING: don't run with debug turned on in production!
 DEBUG = False
@@ -67,13 +67,13 @@ TEMPLATES = [
 CACHES = {
     'default': {
         'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
-        'LOCATION': os.path.join(BASE_DIR, 'cache'),  # noqa: F405
+        'LOCATION': os.path.join(BASE_DIR, 'cache'),  # noqa
         'KEY_PREFIX': 'coderedcms',
         'TIMEOUT': 14400,  # in seconds
     }
 }
 
 try:
-    from .local_settings import *  # noqa: F401, F403
+    from .local_settings import *  # noqa
 except ImportError:
     pass