Virtualenv has an absolute Path, because i moved my Project to another location it was broken. I found out the actual Path by typing printenv then i typed virtualenv envname to change it to the actual location.

I decided the best way to go about this was to create my own cache key for CMS Pages which I can use to access my page extensions, so I've moved the logic which queries the db; pages = Page.objects.filter(reverse_id=nav_node.attr['reverse_id'])[0:2] page = next((x for x in pages if hasattr(x, 'pagecolourextension')),...

Your cannot set abstract model into your AUTH_USER_MODEL. Basically Abstract Model is not yet a concrete model. You need a concrete User model instead. That's also explain why your Model 'users.UserProfile' is not registered And also, something is strange with your UserProfile, It is suppose to be called User or...

No, you can't. If you look at the source for the placeholder template tag you will see that only name, width, inherit or or are processed. It wouldn't make sense to do this here anyway as the placeholder template tag is rendered during every request and therefore isn't linked to...

I've finally solved my own problem. The association between my CMSPlugin object and the Page is myobj.placeholder.page so the solution to my filtering is; # Get the ImageGalleryPlugin object gallery = get_object_or_404(ImageGalleryPlugin, pk=gallery_id) # Get all other ImageGalleryPlugin objects galleries = ImageGalleryPlugin.objects.all().exclude(pk=gallery.id) # Get all the images in the chosen...

A maybe oversimplified solution for this could be django-front. Create your static pages and add the fields you want to edit. You edit it with a wysiwyg editor. I use it for my terms of service/privacy policy. You will probably be always bothered by migrations and django version when using...

to connect to mysql with django sudo apt-get install git # to install git sudo apt-get install python-pip # to install pip sudo pip install Django # to install Django to your system After that you should go to project path and then execute the following command, the same path...

Note these models don't have any migrations. That's your problem right there. The way you are using CMSPlugin as a base for your new model requires that your model be subject to migration because CMSPlugin is also subject to migrations. The documentation says: Be aware, however, that unmigrated apps...

Found the solution. Turns out the information I was looking for is in the Title model, NOT the page model. The Title model allows you to access all the page title, meta tags, menu titles, etc. So I just created a search index based off of that model and it...

From looking through the codebase here: https://github.com/divio/django-cms/blob/develop/cms/templatetags/cms_tags.py#L284 it appears that the 'name' argument to the placeholder template tag is always interpreted as a string, so, it cannot currently be a variable assignment. Its not completely clear what you intend to do here, but I wonder if you should instead look...

Extending from a base.html like that would suggest, like I do, that you have a base.html file at the root template directory of your project to handle the core markup; {% load cms_tags menu_tags sekizai_tags cache i18n %} {% load static from staticfiles %} <head> <meta charset="utf-8"> {% block head...

To prevent the automatic redirect from "/" to "/en/", you have to include a non-i18n pattern in addition to your i18n intro page URL. Otherwise Django will simply take the auto-detected language and check on the i18n patterns. from django.conf.urls import patterns urlpatterns = patterns('', (r'^$', 'cms.views.your_view') ) urlpatterns +=...

You need to implement a copy_relationships method within your plugin model. When publishing you are literally duplicating the model row. You need to tell the related model how to copy its records and associate them to the correct instance. The CMS allows you to define a method copy_relations which you...

For the custom model, a copy_relations(self, oldinstance) method must be defined as part of the model. In this case, you'd use something like: def copy_relations(self, oldinstance): self.authorized_personnel = oldinstance.authorized_personnel.all() This provides the information that Django needs when it makes a published copy of the plugin instance. For more information, see...

The column is unique for sure. The only explanation of this behaviour is that the values are similar but not the same. They could differ in trailing spaces for example. You should check if your django form is properly validated....

I faced the same problem yesterday. What I found after doing some research is that for the cmsplugin-filer plugins you have to create templates for the way you want them to be rendered. E.g., say I want an image to be rendered floating left with some padding and margin (like...

django CMS searches all cms_plugins.py files in your INSTALLED_APPS. It loads them, thus triggering all plugin_pool.register_plugin calls. The relevant code is in https://github.com/divio/django-cms/blob/cb836a668b9e53a642a35b768bf60bda39ac03fa/cms/plugin_pool.py#L33 which triggers https://github.com/divio/django-cms/blob/cb836a668b9e53a642a35b768bf60bda39ac03fa/cms/utils/django_load.py#L48 While that is the preferred way of declaring plugins, note that modules imported by Django on startup can also cause plugins to be registered....

I found the inspiration to solve this error. Somehow, as I said, the database got out of sync with the ORM -I seriously think it had something to do with a bogus upgrade to django-cms 3-. I had to go through all my applications as follows: $ python manage.py dumpdata...

The Problem The issue is the same for Django 1.7 and 1.8 and for foreseeable future version. It is not impossible to happen with 1.6 and earlier versions but unlikely. The issue is that if you use the configuration most likely to be used for a Django project, then Django...

Can you check your TEMPLATES settings. Looking through the source code: By default template for a page set here: TEMPLATE_DEFAULT = ... get_cms_setting('TEMPLATES')[0][0] Source: https://github.com/divio/django-cms/blob/develop/cms/models/pagemodel.py#L41 https://github.com/divio/django-cms/blob/develop/cms/models/pagemodel.py#L77 And looking through source code in utils/conf.py. A template named 'INHERIT' is added to list of available templates. And it looks like you own...

I had the same problem when I installing django-cms on Ubuntu14.04 have tried resolved many errors still not working allways say Pillow not complete installed as well south. Finally found a link which is install django-cms on ubuntu13 have following step by step only removed some lines because I have...

Remove plugins you don't need from INSTALLED_APPS. Alternatively, in an app after all plugin apps in INSTALLED_APPS in either cms_plugins.py or models.py you can use cms.plugin_pool.plugin_pool.unregister_plugin to remove them from the pool: from cms.plugin_pool import plugin_pool from unwanted_plugin_app.cms_plugins import UnwantedPlugin plugin_pool.unregister_plugin(UnwantedPlugin) ...

In your INSTALLED_APPS, you have to put 'django.contrib.admin' below'djangocms_admin_style', like: ... 'djangocms_admin_style', 'django.contrib.admin', ... As the django-cms documentation says: 'djangocms_admin_style', # for the admin skin. You **must** add 'djangocms_admin_style' in the list **before** 'django.contrib.admin'. After that, the style can be displayed correctly....

The problem is in my django settings.py file: MIGRATION_MODULES = { 'cms': 'cms.migrations_django', 'menus': 'menus.migrations_django', 'djangocms_file': 'djangocms_file.migrations_django', ... } I had to introduce the above to get django-cms 3.0.6 to work with django 1.7, a consequence of the fact that migrations in django 1.7 are no longer done with South,...

I may be biased, but I think you should use django CMS. It supports multi-site (I think you require this?), full i18n and it even offers plugins for country-based segmentation on top of all the internationalisation. (So, you could make country-based offers, regardless of the language used on the request)....

I run Django and CMS, etc. on Ubuntu servers all day long, so there is not an issue with the OS for sure. Having said this, running Django locally can be very different than running it in a production environment. Locally, runserver takes care of a lot of things you...

The discussion you refer to predates the 3.x series. Perhaps doing a dumpdata for the models associated with the cms application was the way to go 3 years ago, but, as you discovered, it does not work now. I actually recommend trying the following steps on a mirror of your...

The documented API to add information and settings to page and titles is documented at http://django-cms.readthedocs.org/en/support-3.0.x/how_to/extending_page_title.html and allows adding data to both Page (language-indipendent) and Titles (language-dependent) models. Currently there is no official way to directly extend the PageAdmin.

In my solution to this problem I use aldryn_search to do the integration of Haystack and django-cms. aldryn_search returns a listwith results from all pages, including the ones the current user hast not view-permissions for. To resolve this issue I'm inheriting from AldrynSearchView and override the get_queryset method like this:...

If you create a page in CMS, and add plugins to it, once you hit publish the CMS creates a copy of each of those plugins as they are at that point in time. This gives the page a live version, and enables you to then make changes to it...

In the project's urls.py you use the i18n_patterns instead of simple patterns so url for your page should be: /en/one/ UPDATE: Remove the trailing slashes from the regexes in the project's urls.py. So regex should be r'^' but not the r'^/': urlpatterns = i18n_patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^', include('main.urls')), url(r'^', include('cms.urls')),...

To access the page you can use {{ request.current_page }} To use the plugin system in your templates use {% static_placeholder my_name %} instead of the {% placeholder %} tags. It is always preferable to use the static_placeholders in apphooks as you do not know what template and what placeholders...

The problem is with pillow and python headers. sudo apt-get install python-dev pip install pillow After this follow this intructions if you get this error: EnvironmentError: Pillow is not compiled with JPEG support, see 'Libraries installation issues' documentation section. Getting error while running django-cms demo page...