Closed quater closed 9 years ago
Have you tried to run the reference implementation?
If I run
export DJANGO_SETTINGS_MODULE=bs3demo.settings
./manage.py makemigrations
I get quite a lot of warnings, but it works.
I haven't tested all combinations, but can it be that the you have another order in INSTALLED_APPS
? Please compare with the reference implementation.
Thank you for your quick turnaround!
I have tried the reference implementation but stumbled over a different error. As suggested, I'll go through the list of 'INSTALLED_APPS' and remove everything which is not essential in order to narrow down. I will also check out the reference implementation again.
I'll keep you updated.
You were right!
Still using my own instance, I have replaced the INSTALLED_APPS
with the ones from the bs3demo.settings
and the python manage.py makemigrations
command run successfully.
INSTALLED_APPS = (
'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',
'djangocms_text_ckeditor',
'django_select2',
'cmsplugin_cascade',
'cmsplugin_cascade.sharable',
'cms',
'menus',
'mptt',
'filer',
'easy_thumbnails',
'sekizai',
'project'
)
(env)vagrant@vagrant-ubuntu-trusty-64:~/workspace$ python manage.py migrate
/home/vagrant/workspace/env/local/lib/python2.7/site-packages/cms/publisher/manager.py:5: RemovedInDjango18Warning: `PublisherManager.get_query_set` method should be renamed `get_queryset`.
class PublisherManager(models.Manager):
/home/vagrant/workspace/env/local/lib/python2.7/site-packages/cms/models/managers.py:15: RemovedInDjango18Warning: `PageManager.get_query_set` method should be renamed `get_queryset`.
class PageManager(PublisherManager):
/home/vagrant/workspace/env/local/lib/python2.7/site-packages/cms/admin/change_list.py:39: RemovedInDjango18Warning: `CMSChangeList.get_query_set` method should be renamed `get_queryset`.
class CMSChangeList(ChangeList):
/home/vagrant/workspace/env/local/lib/python2.7/site-packages/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):
/home/vagrant/workspace/env/local/lib/python2.7/site-packages/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):
/home/vagrant/workspace/env/local/lib/python2.7/site-packages/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):
/home/vagrant/workspace/env/local/lib/python2.7/site-packages/django/forms/widgets.py:143: RemovedInDjango18Warning: `PagePermissionInlineAdmin.queryset` method should be renamed `get_queryset`.
.__new__(mcs, name, bases, attrs))
/home/vagrant/workspace/env/local/lib/python2.7/site-packages/django/forms/widgets.py:143: RemovedInDjango18Warning: `ViewRestrictionInlineAdmin.queryset` method should be renamed `get_queryset`.
.__new__(mcs, name, bases, attrs))
/home/vagrant/workspace/env/local/lib/python2.7/site-packages/django/forms/widgets.py:143: RemovedInDjango18Warning: `PageUserAdmin.queryset` method should be renamed `get_queryset`.
.__new__(mcs, name, bases, attrs))
Operations to perform:
Synchronize unmigrated apps: filer, mptt, sharable, django_select2, djangocms_admin_style, sitemaps, sekizai, easy_thumbnails
Apply all migrations: cmsplugin_cascade, sessions, admin, sites, auth, menus, contenttypes, cms, djangocms_text_ckeditor
Synchronizing apps without migrations:
Creating tables...
Creating table filer_folder
Creating table filer_folderpermission
Creating table filer_file
Creating table filer_clipboard
Creating table filer_clipboarditem
Creating table filer_image
Installing custom SQL...
Installing indexes...
Running migrations:
Applying cmsplugin_cascade.0001_initial.../home/vagrant/workspace/env/local/lib/python2.7/site-packages/filer/fields/multistorage_file.py:106: SyntaxWarning: MultiStorageFileField can handle only File objects;<function generate_filename_multistorage at 0x7f1dfec4e398> passed
"%s passed" % upload_to, SyntaxWarning)
OK
In the light of this, this problem seems to be related to the order of the apps.
I have not yet figured out what resolves it for my Django CMS instance, provided I stick to the current set of applications, but I'll let you know the result.
The problematic apps are djangocms_inherit
and djangocms_link
. It doesn't matter where about they are listed within INSTALLED_APPS
. Once they are listed the problem is encountered.
To check out your Bootstrap example, I have created the vagrant startup script below. https://github.com/quater/djangocms-cascade-vagrant
Feel free to utilize this script as part of your repository.
What for is djangocms_inherit? djangocms_link is useless with djangocms-cascade anyway. All linking functionality (and more) is covered.
I don't know what djangocms_inherit
is for. It comes with the django-installer
as part of the "standard plugin" along with djangocms-link
.
Details can be seen here.
I'll change my deployment scripts so that they don't use the "django-installer" any more and then hand select the apps/ plugins in the future.
I cannot get "djangocms-cascade 0.4.0" to work on Django CMS 3.0.7 with Django 1.7.1.
Environment
Prior to applying the "djangocms-cascade" specific settings, I verified that Django CMS is working.
Installed "djangocms-cascade 0.4.0" with below command:
pip freeze
"djangocms-cascade" specific settings in the "settings.py"
Error when running 'makemigrations' or 'migrate'
Research
The problem might to be related to this... https://docs.djangoproject.com/en/dev/releases/1.7/#standalone-scripts