In my model, I put
from nesh.thumbnail import ImageWithThumbnailField
but that fails unless I drill down a layer deeper and put
from nesh.thumbnail.field import ImageWithThumbnailField
which then fails when it tries to import something else. So what's up?
Should I install thumbnail, utils and who knows what else as
applications in my project or is it just something awry in my python
path or something?
Also, the reason the first one doesnt work is because that class exists
within the field.py. So if you try to import it from a place it doesnt
exist, it doesnt work.
You might also try
from nesh.thumbnail import field
to get everything in that file imported.
Did you delete your old tables from the db first? You need to do that
manually. If you don't have any important data in there, it's probably
easiest to just delete the whole db and start over. One run of syncdb
will rebuild the whole thing.
>
>
> >
>
--
----
Waylan Limberg
way...@gmail.com
Syncdb only seems to have any effect on the gretschpages project, not
the nesh project
bax...@gretschpages.com wrote:
> Because I'm using python 2.4 and dreamhost was markedly NOT helpful, I
> had to install the PIL myself. I wonder if that's the problem?
I use the Ian Bicking's "virtual python" on Dreamhost
(http://peak.telecommunity.com/DevCenter/EasyInstall#creating-a-virtual-python).
I installed PIL myself to generate thumbnails. So far it works great. It
should not be a problem unless you installed it incorrectly.
Thanks,
Eugene
PS: IIRC, Dreamhost has PIL pre-installed. In fact it is the only
package they have installed on the vanilla Python installation.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFYjT/NBGe1BFjGFcRAqC3AJ4wKKaMvTcfy692MQIVWuBMtqGJ0wCdHOQI
7u14ew0KGUDyv9XfXQaEeWI=
=NOM1
-----END PGP SIGNATURE-----