Menu:

Backwards-incompatible changes

↑ info  #

Here you find changes that require a admin intervention.

On our development history page is a list of all "visible changes" and improvements.

↑ 11.03.2010 - settings.DATABASES and new JS-SHA-Login  #

Important: 2569 and 2572 needs some admin intervention otherwise a svn up makes your side down!

↑ database settings  #

  • You must update your database settings into the new django format, e.g.:
Diff
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
-DATABASE_ENGINE = 'sqlite3'    # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
-DATABASE_NAME = 'test.db3'     # Or path to database file if using sqlite3.
-DATABASE_USER = ''             # Not used with sqlite3.
-DATABASE_PASSWORD = ''         # Not used with sqlite3.
-DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
-DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
+DATABASES = {
+    'default': {
+        'ENGINE': 'django.db.backends.sqlite3',
+        'NAME': 'test.db3'
+    }
+}

see also:

If you use a other settings than sqlite3 with test.db3 you will get the error that database tables doesn't exists. Because Django didn't used your old config from local_settings.py!

↑ login  #

The new JS-SHA-Login implementation 2572 has changed some JavaScript media files:

media/PyLucid/pylucid_js_tools.js (modified)
media/PyLucid/shared_sha_tools.js (modified)
media/PyLucid/sha_login_input_password.js (deleted)

Please update your media files, if not done in svn update...

Since 2577 you will see only "loading..." if media files not updated.

↑ 10.03.2010 - mark first/last main menu entry  #

  • 2567 - The main menu template main_menu_items.html changed, you must only recognised this, if you overwrite this template:
Diff
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Index: branches/0.9/pylucid_project/pylucid_plugins/main_menu/templates/main_menu/main_menu_items.html
===================================================================
--- branches/0.9/pylucid_project/pylucid_plugins/main_menu/templates/main_menu/main_menu_items.html
+++ branches/0.9/pylucid_project/pylucid_plugins/main_menu/templates/main_menu/main_menu_items.html
@@ -4,5 +4,5 @@
             {% if node.visible %}
                 {% if node.current %}<strong>{% endif %}
-                <a href="{{ node.pagemeta.get_absolute_url }}" hreflang="{{ node.pagemeta.language.code }}" title="{{ node.pagemeta.get_title }}" class="level_{{ node.level }}{% if node.active %} active{% endif %}{% if node.current %} current{% endif %}">{{ node.pagemeta.get_name }}</a>
+                <a href="{{ node.pagemeta.get_absolute_url }}" hreflang="{{ node.pagemeta.language.code }}" title="{{ node.pagemeta.get_title }}" class="{{ node.css_class }}">{{ node.pagemeta.get_name }}</a>
                 {% if node.current %}</strong>{% endif %}
             {% endif %}

↑ 02.03.2010 - NEW: tools / template overwrite  #

You must run:

to see the new menu point: PyLucid admin menu -> tools -> overwrite templates

↑ 01.03.2010 - Headline Anchor in admin  #

We activate the TOC/HeadLineAnchor in the django admin panel with 2553.
The static file media/PyLucid/pylucid_admin.css has been updated.
Possibly, you must copy the file into your media directory.

Since 2536 you should create a 'update_journal' PluginPage. Otherwise staff members get this error message on a page witch contains the lucidTag update_journal:

Can't get a 
PluginPage for plugin 'update_journal', please create one. 

See also: user manual

↑ 29.01.2010 - Use jquery from django  #

Django contains jQuery since Django changeset 12297. So we delete our own copy of jQuery and use it from django.

You must copy jquery.min.js into your media path, if you get the JavaScript alert error:

Error loading file [/django_media/js/jquery.min.js] !

Copy django/contrib/admin/media/js/jquery.min.js into your django media path, e.g.:

Bash
1
/home/FooBar$ cp PyLucid_env/src/django/django/contrib/admin/media/js/jquery.min.js /var/www/YourSite/media/django/js/

(see also: static media files)

↑ 05.11.2009 - Changed the ManyToManyField in the design model.  #

With Changeset 2348, among other things, we changed the ManyToManyField in the design model. It seems that this is problematic in later django updates.

You must change a database column name if you get this error:

OperationalError: (1054, "Unknown column 'pylucid_design_headfiles.editablehtmlheadfile_id' in 'on clause'")

Solution: Change the column name:

SQL
1
ALTER TABLE `pylucid_design_headfiles` CHANGE `pylucid.editablehtmlheadfile_id` `editablehtmlheadfile_id` INT( 11 ) NOT NULL

↑ sub pages:  #

↑ See also:  #

tag navi changes | history | update