I have satchmo rev 722 and after installing everyting (mod_python,...) I
launched load_data.py and got the following error.
"ccbe.l10n_country' doesn't exist"
ccbe is the database name.
I have Django svn version 6328 (post sprint).
I noticed a lot of ^M in the l10n model file.
I retried to syncdb and the model for the Country was not created in the
MySql db.
Does it is possible that the l10n has not been imported because of the
^M in it ?
F. Roland
Chris Moffitt a écrit :
It's possible. Does revision 723 work for you?
Now installation fail a bit later. I'll try to fix it or I'll post a new
thread.
F. Roland
John Shaffer a écrit :
Maybe it's an idea to open a page on the Trac Wiki with common "installation/setup" mistakes.
It's with Satchmo svn rev # 727 and Django svn rev # 6364.
Type 'yes' to erase ALL data and reinstall ALL models: no
Type 'yes' to erase any existing Satchmo data and reinstall all models: yes
Deleting existing Satchmo data.
Deleting satchmo.shop
Deleting satchmo.supplier
Deleting satchmo.payment
Deleting satchmo.discount
Deleting satchmo.contact
Deleting satchmo.product
Deleting satchmo.tax
Deleting satchmo.l10n
Satchmo data successfully deleted.
Calling syncdb
Loading 'initial_data' fixtures...
Installing xml fixture 'initial_data' from absolute path.
Problem installing fixture 'initial_data.xml': Data truncated for column
'name' at row 1
Loading 'l10n_data' fixtures...
Installing xml fixture 'l10n_data' from
'/home/ccbe/satchmo_src/satchmo/l10n/fixtures'.
Problem installing fixture
'/home/ccbe/satchmo_src/satchmo/l10n/fixtures/l10n_data.xml': Data
truncated for column 'name' at row 1
Type 'yes' to load sample store data: yes
Creating site...
Creating Customers...
Creating Suppliers...
Creating Categories...
Creating products...
Creating product variations...
Create a test user...
Type 'yes' to load a tax table for the US: yes
Traceback (most recent call last):
File "load_data.py", line 351, in ?
load_US_tax_table()
File "load_data.py", line 334, in load_US_tax_table
state = AdminArea.objects.get(country=us, abbrev=row[0])
File "/home/ccbe/django_src/django/db/models/manager.py", line 69, in get
return self.get_query_set().get(*args, **kwargs)
File "/home/ccbe/django_src/django/db/models/query.py", line 263, in get
raise self.model.DoesNotExist, "%s matching query does not exist."
% self.model._meta.object_name
django.db.models.base.DoesNotExist: AdminArea matching query does not exist.
F.Roland
The server is set up for Latin1 and I can't change it as it's working
like that for a client but I did changed charset and locale to utf8 and
utf8_general_ci in db.opt file. Isn't it sufficient ?
Frédéric
Chris Moffitt a écrit :
I fear to break existing websites by doing changes to my.conf.
I will try to manually change collation on the tables used by the fixture.
Chris Moffitt a écrit :
load_data.py: 'create database %s CHARACTER SET utf8
COLLATE utf8_general_ci']:
After that I relaunched load_data and everything was ok up to the point
that I can see the homepage of the demo store.
But when I click a link to a product I have
TemplateSyntaxError at /product/PY-Rocks/
'comments' is not a valid tag library: Could not load template library
from django.templatetags.comments, No module named comments
Request Method: GET
Request URL: http://www.creativeconvergence.be/product/PY-Rocks/
Exception Type: TemplateSyntaxError
Exception Value: 'comments' is not a valid tag library: Could not load
template library from django.templatetags.comments, No module named comments
Exception Location:
/home/ccbe/django_src/django/template/defaulttags.py in load, line 801
Python Executable: /usr/bin/python
Python Version: 2.4.3
but this is something in the last release of settings-customize.py I
didn't copied in my settings.py which is older from several releases.
I have almost a working shop, I hope to style it a little bit and start
customize it really soon. Thanks for your help.
Frédéric Roland a écrit :
> The tables are latin1_swedish_ci even after having put utf8 in db.opt
> and launch load_data.py and answer no to reset everything and yes to
> reset satchmo.
>
> I fear to break existing websites by doing changes to my.conf.
>
> I will try to manually change collation on the tables used by the fixture.
>
> Chris Moffitt a �crit :