jrief / djangocms-cascade

Build Single Page Applications using the Django-CMS plugin system
MIT License
165 stars 85 forks source link

Version 0.4.0 #10

Closed jrief closed 9 years ago

jrief commented 10 years ago

I would like to release version 0.4.0 to PyPI. There have been reported some issues with Django-CMS, which I was unable to reproduce. Could you please checkout the latest release and check it in your environment.

Does anybody still use 960.gs or Bootstrap-2.3.2?

Jacob

electroniceagle commented 10 years ago

I have hit a few bugs on the derive-from-CascadeModelBase branch (is this the correct branch?):

[djangocms-cascade] bschott@ironman-2 ~/Source/djangocms-cascade/examples (derive-from-CascadeModelBase) 
$ ./manage.py syncdb
/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/publisher/manager.py:5: RemovedInDjango18Warning: `PublisherManager.get_query_set` method should be renamed `get_queryset`.
  class PublisherManager(models.Manager):

/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/models/managers.py:15: RemovedInDjango18Warning: `PageManager.get_query_set` method should be renamed `get_queryset`.
  class PageManager(PublisherManager):

/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/polymorphic/manager.py:11: RemovedInDjango18Warning: `PolymorphicManager.get_query_set` method should be renamed `get_queryset`.
  class PolymorphicManager(models.Manager):

/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/cmsplugin_filer_utils/__init__.py:5: RemovedInDjango18Warning: `FilerPluginManager.get_query_set` method should be renamed `get_queryset`.
  class FilerPluginManager(models.Manager):

/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/admin/change_list.py:39: RemovedInDjango18Warning: `CMSChangeList.get_query_set` method should be renamed `get_queryset`.
  class CMSChangeList(ChangeList):

/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/admin/forms.py:340: RemovedInDjango18Warning: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is deprecated - form PagePermissionInlineAdminForm needs updating
  class PagePermissionInlineAdminForm(forms.ModelForm):

/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/admin/forms.py:442: RemovedInDjango18Warning: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is deprecated - form ViewRestrictionInlineAdminForm needs updating
  class ViewRestrictionInlineAdminForm(PagePermissionInlineAdminForm):

/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/admin/forms.py:491: RemovedInDjango18Warning: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is deprecated - form PageUserForm needs updating
  class PageUserForm(UserCreationForm, GenericCmsPermissionForm):

/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/forms/widgets.py:143: RemovedInDjango18Warning: `PagePermissionInlineAdmin.queryset` method should be renamed `get_queryset`.
  .__new__(mcs, name, bases, attrs))

/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/forms/widgets.py:143: RemovedInDjango18Warning: `ViewRestrictionInlineAdmin.queryset` method should be renamed `get_queryset`.
  .__new__(mcs, name, bases, attrs))

/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/forms/widgets.py:143: RemovedInDjango18Warning: `PageUserAdmin.queryset` method should be renamed `get_queryset`.
  .__new__(mcs, name, bases, attrs))

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute
    django.setup()
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/__init__.py", line 21, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/apps/registry.py", line 115, in populate
    app_config.ready()
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/contrib/admin/apps.py", line 22, in ready
    self.module.autodiscover()
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/contrib/admin/__init__.py", line 23, in autodiscover
    autodiscover_modules('admin', register_to=site)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/utils/module_loading.py", line 74, in autodiscover_modules
    import_module('%s.%s' % (app_config.name, module_to_search))
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/admin/__init__.py", line 11, in <module>
    plugin_pool.plugin_pool.discover_plugins()
  File "/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/plugin_pool.py", line 36, in discover_plugins
    load('cms_plugins')
  File "/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/utils/django_load.py", line 56, in load
    get_module(app, modname, verbose, failfast)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/utils/django_load.py", line 40, in get_module
    module = import_module(module_name)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/utils/importlib.py", line 46, in import_module
    __import__(name)
  File "/Users/bschott/Source/djangocms-cascade/cmsplugin_cascade/cms_plugins.py", line 16, in <module>
    raise ImproperlyConfigured("Plugin {0} as specified in {1}.settings.CMS_CASCADE_PLUGINS could not be loaded".format(p, module))
django.core.exceptions.ImproperlyConfigured: Plugin bootstrap3 as specified in bootstrap3.settings.CMS_CASCADE_PLUGINS could not be loaded

[djangocms-cascade] bschott@ironman-2 ~/Source/djangocms-cascade/examples (derive-from-CascadeModelBase) 
$ pip freeze
Django==1.7
Pillow==2.5.3
South==1.0
cmsplugin-filer==0.10
django-appconf==0.6
django-classy-tags==0.5.1
-e git+https://github.com/jrief/django-cms.git@a000f0bf5d43c10d393e15c89fab6e84da4c4132#egg=django_cms-origin/develop
django-filer==0.9.7
django-mptt==0.6.1
django-polymorphic==0.5.6
django-sekizai==0.7
djangocms-admin-style==0.2.2
djangocms-link==1.4.1
djangocms-text-ckeditor==2.3.0
easy-thumbnails==2.1
html5lib==0.999
jsonfield==1.0.0
six==1.8.0
transifex-client==0.10
wsgiref==0.1.2

[djangocms-cascade] bschott@ironman-2 ~/Source/djangocms-cascade/examples (derive-from-CascadeModelBase) 
$ pip install Django==1.6
Downloading/unpacking Django==1.6
  Downloading Django-1.6-py2.py3-none-any.whl (6.7MB): 6.7MB downloaded
Installing collected packages: Django
  Found existing installation: Django 1.7
    Uninstalling Django:
      Successfully uninstalled Django
Successfully installed Django
Cleaning up...

[djangocms-cascade] bschott@ironman-2 ~/Source/djangocms-cascade/examples (derive-from-CascadeModelBase) 
$ ./manage.py syncdb
Syncing...
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_groups
Creating table auth_user_user_permissions
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Creating table south_migrationhistory

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): 
electroniceagle commented 10 years ago

Debugging this:

[djangocms-cascade] bschott@ironman-2 ~/Source/djangocms-cascade/examples (derive-from-CascadeModelBase) 
$ ./manage.py syncdb
Syncing...
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_groups
Creating table auth_user_user_permissions
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Creating table south_migrationhistory

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (leave blank to use 'bschott'): 
Email address: schott@nimbis.net
Password: 
Password (again): 
Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

Synced:
 > django.contrib.auth
 > django.contrib.contenttypes
 > django.contrib.sessions
 > django.contrib.sites
 > djangocms_admin_style
 > django.contrib.messages
 > django.contrib.admin
 > django.contrib.staticfiles
 > django.contrib.sitemaps
 > mptt
 > south
 > sekizai
 > bootstrap3

Not synced (use migrations):
 - djangocms_text_ckeditor
 - cmsplugin_cascade
 - cms
 - menus
 - filer
 - easy_thumbnails
 - djangocms_link
 - cmsplugin_filer_file
 - cmsplugin_filer_folder
 - cmsplugin_filer_image
(use ./manage.py migrate to migrate these)

[djangocms-cascade] bschott@ironman-2 ~/Source/djangocms-cascade/examples (derive-from-CascadeModelBase) 
$ ./manage.py migrate
Running migrations for djangocms_text_ckeditor:
 - Migrating forwards to 0002_rename_plugin.
 > cms:0001_initial
 > djangocms_text_ckeditor:0001_initial
 > djangocms_text_ckeditor:0002_rename_plugin
 - Loading initial data for djangocms_text_ckeditor.
Installed 0 object(s) from 0 fixture(s)
Running migrations for cmsplugin_cascade:
 - Migrating forwards to 0003_add_sharable_glossary.
 > cmsplugin_cascade:0001_initial
 > cmsplugin_cascade:0002_rename__field_cascadeelement_context__glossary
 > cmsplugin_cascade:0003_add_sharable_glossary
 - Loading initial data for cmsplugin_cascade.
Installed 0 object(s) from 0 fixture(s)
Running migrations for cms:
 - Migrating forwards to 0069_static_placeholder_permissions.
 > cms:0002_auto_start
 > cms:0003_remove_placeholder
 > cms:0004_textobjects
 > cms:0005_mptt_added_to_plugins
 > cms:0006_apphook
 > cms:0007_apphook_longer
 > cms:0008_redirects
 > cms:0009_added_meta_fields
 > cms:0010_5char_language
 > cms:0011_title_overwrites
 > cms:0012_publisher
 > cms:0013_site_copy
 > cms:0014_sites_removed
 > cms:0015_modified_by_added
 > cms:0016_author_copy
 > cms:0017_author_removed
 > cms:0018_site_permissions
 > cms:0019_public_table_renames
 > cms:0020_advanced_permissions
 > cms:0021_publisher2
 > cms:0022_login_required_added
 > cms:0023_plugin_table_naming_function_changed
 > cms:0024_added_placeholder_model
 > cms:0025_placeholder_migration
 > cms:0026_finish_placeholder_migration
 > cms:0027_added_width_to_placeholder
 > cms:0028_limit_visibility_in_menu_step1of3
 > cms:0029_limit_visibility_in_menu_step2of3_data
 > cms:0030_limit_visibility_in_menu_step3of3
 > cms:0031_improved_language_code_support
 > cms:0032_auto__del_field_cmsplugin_publisher_public__del_field_cmsplugin_publis
 > cms:0033_auto__del_field_title_publisher_is_draft__del_field_title_publisher_st
 > cms:0034_auto__chg_field_title_language__chg_field_cmsplugin_language__add_fiel
 > cms:0035_auto__add_field_globalpagepermission_can_view__add_field_pagepermissio
 > cms:0036_auto__add_field_cmsplugin_changed_date
 > cms:0037_auto__del_pagemoderator__del_field_globalpagepermission_can_moderate__
 > cms:0038_publish_page_permission
 - Migration 'cms:0038_publish_page_permission' is marked for no-dry-run.
 > cms:0039_auto__del_field_page_moderator_state
 > cms:0040_auto__del_field_title_meta_keywords__chg_field_title_meta_description
 > cms:0041_auto__add_usersettings
 > cms:0042_auto__del_field_title_meta_keywords__chg_field_title_meta_description_
 > cms:0043_auto__add_field_usersettings_clipboard
 > cms:0044_killsettings
 - Migration 'cms:0044_killsettings' is marked for no-dry-run.
 > cms:0045_auto__add_field_page_application_urls
 > cms:0046_move_apphooks
 - Migration 'cms:0046_move_apphooks' is marked for no-dry-run.
 > cms:0047_auto__del_field_title_application_urls
 > cms:0048_auto__add_field_page_application_namespace__add_unique_page_publisher_
 > cms:0049_auto__add_field_page_is_home
 > cms:0050_save_home
 - Migration 'cms:0050_save_home' is marked for no-dry-run.
 > cms:0051_auto__add_placeholderreference
 > cms:0051_fix_content_type
 - Migration 'cms:0051_fix_content_type' is marked for no-dry-run.
 > cms:0052_auto__add_placeholderreference__add_staticplaceholder__add_field_page_
 > cms:0053_auto__add_field_title_published__add_field_title_publisher_is_draft__a
 > cms:0054_new_publisher_data
 - Migration 'cms:0054_new_publisher_data' is marked for no-dry-run.
 > cms:0055_auto__del_field_page_publisher_state__del_field_page_published
 > cms:0056_auto__del_field_page_published_languages
 > cms:0057_fix_values
 - Migration 'cms:0057_fix_values' is marked for no-dry-run.
 > cms:0058_placeholderref_table_rename
 > cms:0059_auto__del_pagemoderatorstate
 > cms:0060_auto__add_field_page_xframe_options
 > cms:0061_revers_id_unique
 > cms:0062_auto__add_field_staticplaceholder_site__del_unique_staticplaceholder_c
 > cms:0063_auto__chg_field_staticplaceholder_site
 > cms:0064_staticplaceholder_site_change
 - Migration 'cms:0064_staticplaceholder_site_change' is marked for no-dry-run.
 > cms:0065_auto__add_unique_usersettings_user
 > cms:0066_auto__add_aliaspluginmodel
 > cms:0067_auto__add_field_aliaspluginmodel_alias_placeholder__chg_field_aliasplu
 > cms:0068_auto__chg_field_placeholder_slot
 > cms:0069_static_placeholder_permissions
 - Migration 'cms:0069_static_placeholder_permissions' is marked for no-dry-run.
 - Loading initial data for cms.
Installed 0 object(s) from 0 fixture(s)
Running migrations for menus:
 - Migrating forwards to 0001_initial.
 > menus:0001_initial
 - Loading initial data for menus.
Installed 0 object(s) from 0 fixture(s)
Running migrations for filer:
 - Migrating forwards to 0014_auto__add_field_image_related_url__chg_field_file_name.
 > filer:0001_initial
 > filer:0002_rename_file_field
 > filer:0003_add_description_field
 > filer:0004_auto__del_field_file__file__add_field_file_file__add_field_file_is_pub
 > filer:0005_auto__add_field_file_sha1__chg_field_file_file
 > filer:0006_polymorphic__add_field_file_polymorphic_ctype
 > filer:0007_polymorphic__content_type_data
 - Migration 'filer:0007_polymorphic__content_type_data' is marked for no-dry-run.
No filer contentypes to migrate. This is probably because migrate is running on a new database.
 > filer:0008_polymorphic__del_field_file__file_type_plugin_name
 > filer:0009_auto__add_field_folderpermission_can_edit_new__add_field_folderpermiss
 > filer:0010_folderpermissions
 - Migration 'filer:0010_folderpermissions' is marked for no-dry-run.
 > filer:0011_auto__del_field_folderpermission_can_add_children__del_field_folderper
 > filer:0012_renaming_folderpermissions
 > filer:0013_remove_null_file_name
 - Migration 'filer:0013_remove_null_file_name' is marked for no-dry-run.
 > filer:0014_auto__add_field_image_related_url__chg_field_file_name
 - Loading initial data for filer.
Installed 0 object(s) from 0 fixture(s)
Running migrations for easy_thumbnails:
 - Migrating forwards to 0016_auto__add_thumbnaildimensions.
 > easy_thumbnails:0001_initial
 > easy_thumbnails:0002_filename_indexes
 > easy_thumbnails:0003_auto__add_storagenew
 > easy_thumbnails:0004_auto__add_field_source_storage_new__add_field_thumbnail_storage_new
 > easy_thumbnails:0005_storage_fks_null
 > easy_thumbnails:0006_copy_storage
 - Migration 'easy_thumbnails:0006_copy_storage' is marked for no-dry-run.
 > easy_thumbnails:0007_storagenew_fks_not_null
 > easy_thumbnails:0008_auto__del_field_source_storage__del_field_thumbnail_storage
 > easy_thumbnails:0009_auto__del_storage
 > easy_thumbnails:0010_rename_storage
 > easy_thumbnails:0011_auto__add_field_source_storage_hash__add_field_thumbnail_storage_hash
 > easy_thumbnails:0012_build_storage_hashes
 - Migration 'easy_thumbnails:0012_build_storage_hashes' is marked for no-dry-run.
 > easy_thumbnails:0013_auto__del_storage__del_field_source_storage__del_field_thumbnail_stora
 > easy_thumbnails:0014_auto__add_unique_source_name_storage_hash__add_unique_thumbnail_name_s
 > easy_thumbnails:0015_auto__del_unique_thumbnail_name_storage_hash__add_unique_thumbnail_sou
 > easy_thumbnails:0016_auto__add_thumbnaildimensions
 - Loading initial data for easy_thumbnails.
Installed 0 object(s) from 0 fixture(s)
Running migrations for djangocms_link:
 - Migrating forwards to 0003_auto__add_field_link_anchor__chg_field_link_page_link.
 > djangocms_link:0001_initial
 > djangocms_link:0002_auto__add_field_link_phone
 > djangocms_link:0003_auto__add_field_link_anchor__chg_field_link_page_link
 - Loading initial data for djangocms_link.
Installed 0 object(s) from 0 fixture(s)
Running migrations for cmsplugin_filer_file:
 - Migrating forwards to 0004_fix_table_names.
 > cmsplugin_filer_file:0001_initial
 > cmsplugin_filer_file:0002_auto__add_field_filerfile_target_blank
 > cmsplugin_filer_file:0003_auto__add_field_filerfile_style
 > cmsplugin_filer_file:0004_fix_table_names
     - renaming cmsplugin_filerfile to cmsplugin_filer_file_filerfile
     - renaming cmsplugin_filerfile to cmsplugin_filer_file_filerfile
 - Loading initial data for cmsplugin_filer_file.
Installed 0 object(s) from 0 fixture(s)
Running migrations for cmsplugin_filer_folder:
 - Migrating forwards to 0005_fix_table_names.
 > cmsplugin_filer_folder:0001_initial
 > cmsplugin_filer_folder:0002_auto__add_field_filerfolder_style
 > cmsplugin_filer_folder:0003_move_view_option_to_style
 - Migration 'cmsplugin_filer_folder:0003_move_view_option_to_style' is marked for no-dry-run.
 > cmsplugin_filer_folder:0004_auto__del_field_filerfolder_view_option
 > cmsplugin_filer_folder:0005_fix_table_names
     - renaming cmsplugin_filerfolder to cmsplugin_filer_folder_filerfolder
     - renaming cmsplugin_filerfolder to cmsplugin_filer_folder_filerfolder
 - Loading initial data for cmsplugin_filer_folder.
Installed 0 object(s) from 0 fixture(s)
Running migrations for cmsplugin_filer_image:
 - Migrating forwards to 0012_fix_table_names.
 > cmsplugin_filer_image:0001_initial
 > cmsplugin_filer_image:0002_auto__add_field_filerimage_image_url__chg_field_filerimage_image
 > cmsplugin_filer_image:0003_auto__add_thumbnailoption__add_field_filerimage_thumbnail_option
 > cmsplugin_filer_image:0004_auto__del_field_thumbnailoption_is_scaled__del_field_thumbnailoption_i
 > cmsplugin_filer_image:0005_rename_float_to_alignment
 > cmsplugin_filer_image:0006_auto__add_field_filerimage_original_link
 > cmsplugin_filer_image:0007_rename_caption_to_caption_text
 > cmsplugin_filer_image:0008_auto__add_field_filerimage_file_link
 > cmsplugin_filer_image:0009_auto__add_field_filerimage_use_original_image
 > cmsplugin_filer_image:0010_auto__add_field_filerimage_target_blank
 > cmsplugin_filer_image:0011_auto__add_field_filerimage_style
 > cmsplugin_filer_image:0012_fix_table_names
     - renaming cmsplugin_filerimage to cmsplugin_filer_image_filerimage
     - renaming cmsplugin_filerimage to cmsplugin_filer_image_filerimage
 - Loading initial data for cmsplugin_filer_image.
Installed 0 object(s) from 0 fixture(s)

[djangocms-cascade] bschott@ironman-2 ~/Source/djangocms-cascade/examples (derive-from-CascadeModelBase) 
$ ./manage.py runserver
Validating models...

0 errors found
September 15, 2014 - 16:31:03
Django version 1.6, using settings 'bootstrap3.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 67, in __call__
    return self.application(environ, start_response)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
    self.load_middleware()
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/core/handlers/base.py", line 49, in load_middleware
    mw_instance = mw_class()
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/middleware/locale.py", line 24, in __init__
    for url_pattern in get_resolver(None).url_patterns:
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/core/urlresolvers.py", line 346, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/core/urlresolvers.py", line 341, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/Users/bschott/Source/djangocms-cascade/examples/bootstrap3/urls.py", line 4, in <module>
    admin.autodiscover()
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/contrib/admin/__init__.py", line 29, in autodiscover
    import_module('%s.admin' % app)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/admin/__init__.py", line 11, in <module>
    plugin_pool.plugin_pool.discover_plugins()
  File "/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/plugin_pool.py", line 36, in discover_plugins
    load('cms_plugins')
  File "/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/utils/django_load.py", line 56, in load
    get_module(app, modname, verbose, failfast)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/utils/django_load.py", line 40, in get_module
    module = import_module(module_name)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/Users/bschott/Source/djangocms-cascade/cmsplugin_cascade/cms_plugins.py", line 16, in <module>
    raise ImproperlyConfigured("Plugin {0} as specified in {1}.settings.CMS_CASCADE_PLUGINS could not be loaded".format(p, module))
ImproperlyConfigured: Plugin bootstrap3 as specified in bootstrap3.settings.CMS_CASCADE_PLUGINS could not be loaded
jrief commented 10 years ago

branch 0.4.0 is still under heavy development, therefore these kind of errors are unfortunately unavoidable. As soon as I have some time, I'll release it.

electroniceagle commented 10 years ago

If you don't mind, I'll document my progress here so others can hopefully get the example working. I think the bootstrap3 example is failing because import_module in cms_plugins.py is importing the example.bootstrap3 rather than cmsplugin_cascade.bootstrap3.

$ git diff
diff --git a/cmsplugin_cascade/cms_plugins.py b/cmsplugin_cascade/cms_plugins.py
index 77da8be..3055256 100644
--- a/cmsplugin_cascade/cms_plugins.py
+++ b/cmsplugin_cascade/cms_plugins.py
@@ -1,4 +1,5 @@
 # -*- coding: utf-8 -*-
+from __future__ import absolute_import
 from django.conf import settings
 from django.core.exceptions import ImproperlyConfigured
 from django.utils.importlib import import_module
@@ -7,7 +8,7 @@ from django.utils.importlib import import_module
 for module in getattr(settings, 'CMS_CASCADE_PLUGINS'):
     try:
         # if a module was specified, load all plugins in module settings
-        module_settings = import_module('{0}.settings'.format(module))
+        module_settings = import_module('cmsplugin_cascade.{0}.settings'.format(module))
         module_plugins = getattr(module_settings, 'CMS_CASCADE_PLUGINS', [])
         for p in module_plugins:
             try:

This is probably the wrong long-term fix, but it got farther:

$ ./manage.py runserver
Validating models...

0 errors found
September 15, 2014 - 17:05:41
Django version 1.6, using settings 'bootstrap3.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 67, in __call__
    return self.application(environ, start_response)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
    self.load_middleware()
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/core/handlers/base.py", line 49, in load_middleware
    mw_instance = mw_class()
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/middleware/locale.py", line 24, in __init__
    for url_pattern in get_resolver(None).url_patterns:
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/core/urlresolvers.py", line 346, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/core/urlresolvers.py", line 341, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/Users/bschott/Source/djangocms-cascade/examples/bootstrap3/urls.py", line 4, in <module>
    admin.autodiscover()
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/contrib/admin/__init__.py", line 29, in autodiscover
    import_module('%s.admin' % app)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/admin/__init__.py", line 11, in <module>
    plugin_pool.plugin_pool.discover_plugins()
  File "/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/plugin_pool.py", line 36, in discover_plugins
    load('cms_plugins')
  File "/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/utils/django_load.py", line 56, in load
    get_module(app, modname, verbose, failfast)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/src/django-cms/cms/utils/django_load.py", line 40, in get_module
    module = import_module(module_name)
  File "/Users/bschott/.virtualenvs/djangocms-cascade/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/Users/bschott/Source/djangocms-cascade/cmsplugin_cascade/cms_plugins.py", line 17, in <module>
    raise ImproperlyConfigured("Plugin {0} as specified in {1}.settings.CMS_CASCADE_PLUGINS could not be loaded".format(p, module))
ImproperlyConfigured: Plugin buttons as specified in bootstrap3.settings.CMS_CASCADE_PLUGINS could not be loaded
jrief commented 9 years ago

Please recheck with 0.4.0