product variation - template does not exist

5 views
Skip to first unread message

Paddy Joy

unread,
Jan 8, 2009, 12:29:20 AM1/8/09
to Satchmo users
I'm seeing a template does not exist error when trying to open the
prodicut variation manager.

Anyone else get this?

Paddy

TemplateDoesNotExist at /shop/product/admin/maria-top/variations/

product/admin/configurableproduct/variation_manager.html

Request Method: GET
Request URL: http://192.168.199.128:8080/shop/product/admin/maria-top/variations/
Exception Type: TemplateDoesNotExist
Exception Value:

product/admin/configurableproduct/variation_manager.html

Exception Location: /usr/lib/python2.5/site-packages/django/template/
loader.py in find_template_source, line 73
Python Executable: /usr/bin/python
Python Version: 2.5.2
Python Path: ['/var/django/gilliantennant', '/usr/lib/python2.5/site-
packages/pycrypto-2.0.1-py2.5-linux-i686.egg', '/usr/lib/python2.5/
site-packages/Reportlab-2.1.0001-py2.5.egg', '/usr/lib/python2.5/site-
packages/django_registration-0.7-py2.5.egg', '/usr/lib/python2.5/site-
packages/PyYAML-3.06-py2.5-linux-i686.egg', '/usr/lib/python2.5/site-
packages/setuptools-0.6c9-py2.5.egg', '/usr/lib/python2.5/site-
packages/Satchmo-0.9_pre-py2.5.egg', '/usr/lib/python2.5/site-packages/
download?filename=django_threaded_multihost-1.3_0-py2.5.egg', '/usr/
lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/
lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/
site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/
python2.5/site-packages/PIL', '/var/lib/python-support/python2.5']
Server time: Thu, 8 Jan 2009 15:51:54 +1100

Bruce Kroeze

unread,
Jan 8, 2009, 12:34:09 AM1/8/09
to satchm...@googlegroups.com
Fixed in latest trunk a couple minutes ago.
--
Bruce Kroeze
http://solidsitesolutions.com
Dynamic Designs, Optimized

Paddy Joy

unread,
Jan 8, 2009, 3:02:20 AM1/8/09
to Satchmo users
Thanks Bruce, template is now found however I believe the link on the
bottom of the edit product page is not correct.

Currently it is http://mysite.com/product/admin/maria-top/variations/

Should it be http://mysite.com/shop/product/admin/maria-top/variations/
?

I also noticed that there used to be some helper links on the admin
homepage, "edit inventory" etc... I'm not seeing these in the latest
SVN checkout.

Paddy

Shankar Dhanasekaran

unread,
Jan 8, 2009, 4:10:52 AM1/8/09
to satchm...@googlegroups.com
Hello All,
This is a small proposal to enhance the documentation of Satchmo.
About me:
I am Shankar Dhanasekaran from India and you might seen me on this group
a couple of times under my penname shakthi. I am not an expert at either
django or satchmo but am no novice either. I have been working both
these for many months now reading django docs in and out.

I am also working on my own e-commerce store for which I am using
Satchmo.

Proposal:
I like django documentation (everyone likes!) and I wish with the
cooperation from the satchmo team the same kind of documentation can be
brought out for satchmo. I am willing to dedicate an hour or two, daily
or once two days for this. But I cannot do this all alone as my
knowledge about satchmo is very less. If the experts at satchmo can
spend a few min on skype to speak about the code and give me a rough
idea, I will do transcription of the talk and also write my own docs if
the experts give me some starting tips.

I hope this reaches all satchmo well wishers and invite everyone to
share their thought on this.

Thanks,
Shakthi

phoenix24

unread,
Jan 8, 2009, 6:12:26 AM1/8/09
to Satchmo users
that's definitely a good idea, i'll be glad to help out!



On Jan 8, 2:10 pm, Shankar Dhanasekaran <newage.blog...@gmail.com>
wrote:

Shankar Dhanasekaran

unread,
Jan 8, 2009, 6:49:59 AM1/8/09
to satchm...@googlegroups.com
Yes. I am also getting this.

here is my dpaste
http://dpaste.com/106696/

shakthi

Shankar Dhanasekaran

unread,
Jan 8, 2009, 7:12:46 AM1/8/09
to satchm...@googlegroups.com
After adding a discount percentage by entering the value '0.10' in
admin,
i got TemplateSyntaxError
http://dpaste.com/106700/


is it a bug?

Shankar Dhanasekaran

unread,
Jan 8, 2009, 7:26:31 AM1/8/09
to satchm...@googlegroups.com
Thank you for the reply. Let's wait for more response and reply from the
core developers if they will be happy to help this initiative.

regards,
shakthi

Shankar Dhanasekaran

unread,
Jan 8, 2009, 7:31:57 AM1/8/09
to satchm...@googlegroups.com
Hi,
How do I change the currency symbol that is displaced by the side of the
price displayed on each product page?

Actually, I mean to change the default currency of the site from US
Dollar to Indian Ruppees. How do I do this?

Thanks,
Shakthi

Günter Walser

unread,
Jan 8, 2009, 7:33:05 AM1/8/09
to satchm...@googlegroups.com
Yes, seems so. You must import Decimal first in the begin of the module
(file) - then it should work. Something like

try:
from decimal import Decimal
except ImportError:
from django.utils._decimal import Decimal

Please raise also a bug

-----Ursprüngliche Nachricht-----
Von: satchm...@googlegroups.com [mailto:satchm...@googlegroups.com]
Im Auftrag von Shankar Dhanasekaran
Gesendet: Donnerstag, 08. Jänner 2009 13:13
An: satchm...@googlegroups.com
Betreff: Discount temlate error

Shankar Dhanasekaran

unread,
Jan 8, 2009, 7:39:16 AM1/8/09
to satchm...@googlegroups.com
Thanks Günter Walser. I will open a ticket for this. Meantime, can you
explain if this 'importing' need to be done in template file or in the
models.py file? I havent seen importing in template files in satchmo.


Thanks,
Shakthi

On Thu, 2009-01-08 at 13:33 +0100, Günter Walsec wrote:
> Yes, seems so. You must import Decimal first in the begi'tn of the module
> (file) - then it should work. Something lik
>

Günter Walser

unread,
Jan 8, 2009, 7:50:10 AM1/8/09
to satchm...@googlegroups.com
A module is a python file -> you must put it somewhere in the begin of
thefile where the error took place. This is the lates one in the backtrace
(usually) in your case :

File
"/usr/lib/python2.5/site-packages/Satchmo-0.9_pre-py2.5.egg/product/utils.py
", line 18, in calc_discounted_by_percentage
cents = Decimal("0.01")
NameError: global name 'Decimal' is not defined

günter

-----Ursprüngliche Nachricht-----
Von: satchm...@googlegroups.com [mailto:satchm...@googlegroups.com]
Im Auftrag von Shankar Dhanasekaran
Gesendet: Donnerstag, 08. Jänner 2009 13:39
An: satchm...@googlegroups.com
Betreff: Re: AW: Discount temlate error

Chris Moffitt

unread,
Jan 8, 2009, 9:13:31 AM1/8/09
to satchm...@googlegroups.com
Well, I'm the first to admit that the documentation needs some help. I'm willing to do what I can to provide some direction and support. If we can get a few people online at once, maybe we can do some sort of sprint via IRC or something. Either way, I will try and help as much as time permits.

-Chris

Shankar Dhanasekaran

unread,
Jan 8, 2009, 2:30:54 PM1/8/09
to satchm...@googlegroups.com
Thank you Chris for your support.
I am attaching a text file containing the outline for the proposed documentation. I invite everyone to glance the text file and add your generous comments and valuable suggestions.

I am on irc on my nickname shakthi and my skype is ikeeponloving. Chris, let me know when you are free to chat on irc or on skype. We need to have online calender (or something similar) to fillout who is available and what time to coordinate discussions. This will be greatly helpful to work in different timezones and also each one of us who is willing to work in the documentation can choose the topic and time to chat.

Looking forward to hear from more of you. (Bruce, John, Brian et al are you there?)


Thank you,
Shakthi
documentation for satchmo

Chris Moffitt

unread,
Jan 8, 2009, 5:58:55 PM1/8/09
to satchm...@googlegroups.com
Shakthi,

I like the layout you propose for the documentation. In order to make it a bit easier for others to view and comment on the layout, I've added a page to the wiki -
http://www.satchmoproject.com/trac/wiki/DocumentationReorganization

I encourage folks to take a look at the page and give feedback on the proposed layout.

-Chris

Steve Potter

unread,
Jan 8, 2009, 8:05:08 PM1/8/09
to Satchmo users

>
> I also noticed that there used to be some helper links on the admin
> homepage, "edit inventory" etc... I'm not seeing these in the latest
> SVN checkout.
>

I ran into this problem as well and found that it is caused by the
order in which your installed apps are listed. (Controlling the order
in which Django looks for templates)

By moving the contrib.admin app to the end of the list it resolved the
problem for me.


Steve

Steve Potter

unread,
Jan 8, 2009, 8:11:36 PM1/8/09
to Satchmo users


On Jan 8, 4:58 pm, "Chris Moffitt" <ch...@moffitts.net> wrote:
> Shakthi,
>
> I like the layout you propose for the documentation. In order to make it a
> bit easier for others to view and comment on the layout, I've added a page
> to the wiki -http://www.satchmoproject.com/trac/wiki/DocumentationReorganization
>
> I encourage folks to take a look at the page and give feedback on the
> proposed layout.
>
> -Chris
>
> On Thu, Jan 8, 2009 at 1:30 PM, Shankar Dhanasekaran <
>
In general I like the layout. I would like to see somewhere (Maybe
under beyond the basics, or the developers section) an explanation of
how the general users moves through the site and how it relates to the
underlying views, modules, etc... Also if some information could be
integrated about what signals are triggered and when, that would be
great.

Steve

Nathan Ekstrom

unread,
Jan 8, 2009, 10:50:51 PM1/8/09
to satchm...@googlegroups.com
In the in /admin/settings in the internationalization settings there is a default currency symbol field.

Shankar Dhanasekaran

unread,
Jan 8, 2009, 10:52:57 PM1/8/09
to satchm...@googlegroups.com
Thank you Chris for adding the proposal to wiki. I have added a deployment section just now. Once we get more feedback, we can finalize the doc struture and then plan the work accordingly.

Thanks,
Shakthi

Shankar Dhanasekaran

unread,
Jan 8, 2009, 10:56:52 PM1/8/09
to satchm...@googlegroups.com
Thank you Steve for your feedback. I will add 'signals' to the doc. Please can you clarify this in a more detail way on what you actually like to see, probably with an example. I appreciate that greatly.

 "how the general users moves through the site and how it relates to the
underlying views, modules, etc... "
 

Thanks,
Shakthi

Dan Harris

unread,
Jan 10, 2009, 1:07:23 PM1/10/09
to Satchmo users
I would be willing to help out on updating the documentation, let me
know what is needed and i'll see what I can do.

On Jan 8, 10:56 pm, "Shankar Dhanasekaran" <newage.blog...@gmail.com>
wrote:
> Thank you Steve for your feedback. I will add 'signals' to the doc. Please
> can you clarify this in a more detail way on what you actually like to see,
> probably with an example. I appreciate that greatly.
>
> >  "how the general users moves through the site and how it relates to the
> > underlying views, modules, etc... "
>
> Thanks,
> Shakthi
>

Chris Moffitt

unread,
Jan 10, 2009, 1:25:24 PM1/10/09
to satchm...@googlegroups.com
I just added some updated docs based on the various feedback from the group.

http://www.satchmoproject.com/docs/svn/new_installation.html

Let me know if you have any ideas on how to clarify or make it better.
-Chris

Shankar Dhanasekaran

unread,
Jan 10, 2009, 1:46:09 PM1/10/09
to satchm...@googlegroups.com
Dan,
What I'd need is a chat (voice better, or text) for some 15 min (for a few days to your convenience) or send a voice recording as attachments on topics that you are expert at.

You can  also look at http://www.satchmoproject.com/trac/wiki/DocumentationReorganization , which is my initial draft on documentation rework.  I also have an idea of going through threads in this group and collect reusuable guidelines for documentation. I have already started in this work, but most of the threads are time sensitive and are of little importance as the trunk changes.

Let me know your views.

Thanks,
shakthi

Freyr

unread,
Jan 10, 2009, 1:47:54 PM1/10/09
to Satchmo users
Few comments from the newbie:

1) I have a pair of fresh eyes. Either it is those two or my
misunderstanding but. To a new user like me the following line without
explanation does not fully explain it self:

cd /path/to/your/site-packages/dir

I'd add (e.g. cd /usr/lib/python2.5/site-packages/)

(Unless that was my misunderstanding :))

2) I also find the .pth method (described well by Dan in his post)
cleaner than the ln
(This is very much a matter of taste I believe)

3) To be picky I'd capitalize satchmo in "The easiest way to install
satchmo requirements"

4) I did not see "easy_install http://tinyforge.org/frs/download.php/1/trml2pdf.tar.gz"
be working. I had to manually download and install from there.

5) While "Copy the rest of the required files" section is not working,
it needs to be replaced somehow.

6) You do often use "sudo some_command something" where sudo is only
used in some distros (and e.g. not on Windows)

Well... I hope this Satchmo system will be nice when I finally see it
running :)
And one additional comment, would it be possible to have somewhere a
demo site running. Where you can log in, to see how this looks like.

Now I've spent (too many) hours getting this system to work and still
I've not even had a glimpse to see what it looks like.

Take care,

Freyr

Shankar Dhanasekaran

unread,
Jan 10, 2009, 2:01:38 PM1/10/09
to satchm...@googlegroups.com
I totally agree with Freyr that the documentation needs more clarity. For Satchmo to be adopted by many newbies, documentation is the only key. unless the documentation is pretty good, satchmo will be limited by use only to the expert  groups and will hardly reach the novice.

 I have also spent many hours just hitting at the installation rather than working on it.

~shakthi

Chris Moffitt

unread,
Jan 10, 2009, 2:52:19 PM1/10/09
to satchm...@googlegroups.com
Fair comments.

The real issue (in my mind) is how much Python and Django experience can we reasonably expect people to have before they start trying to get Satchmo working.

For example, your comment about site-packages as being /usr/lib/python2.5/site-packages on your distro is correct. However, it's not always going to be that on every distro and it's definitely not the same on Windows (and probably not Mac). What can we put in here to be clear but not have a ton of "or" statements?

My philosophy is that Satchmo is for someone that needs to customize a store. If all you need is a simple store that only sells 2 products, then you're probably going to be happier with some sort of hosted solution. However, if you have unique needs, there's almost no getting around the fact that you will need to do some coding and you will need to understand how Django and Python work.

Don't let my comments discourage anyone from making the documenation cleaner but IMHO the documentation gaps are much bigger when we talk about doing really cool customizations than in getting the install working.

I realize that last sentence will bug some people. Especially those struggling to get it installed. However, installation is generally something you get done once and it's pretty trivial to do again. Yeah, it can suck in the process but once you know how to do it for Django, Satchmo isn't that unique in the install process. The nature of Django and Python don't always lend itself to a cookbook installation approach.

Lastly, as far as a demo project - you can see one version here - http://demo.satchmoproject.com/store/

Also, if you have trunk, cd into /satchmo/projects/simple
and type python manage.py runserver

You'll then have a full demo system up and running including the admin.

-Chris

Dan Harris

unread,
Jan 10, 2009, 5:21:32 PM1/10/09
to Satchmo users
Chris,

the changes to the installation docs look great. I agree that the
install docs should not be a document on how to install dependencies,
one would hope people know how to do it (perhaps link to a python
primer or something)? One thing that could be nice is just a quick 1
sentence explanation of why each dependency is rquired? Some of them
are fairly obvious, but it's always nice to know at a glance why I am
required to install a dependency (for instance django-threaded-
multihost or django-app-plugins).

Also i do not believe the easy_install for trml2pdf works. I installed
from source, but attempting the command provided yields the following
message (for me):

Downloading http://tinyforge.org/frs/download.php/1/trml2pdf.tar.gz
Processing trml2pdf.tar.gz
error: Couldn't find a setup script in /var/folders/ID/
IDSoGyBaGJetN6tAKOii2k+++TI/-Tmp-/easy_install-2uUenB/trml2pdf.tar.gz

This happen for anyone else?

Anyways the install docs look great, much clearer than before (which
is to be expected since the module re-organization was recently merged
into trunk).

Cheers,

Dan

Freyr

unread,
Jan 11, 2009, 7:54:19 AM1/11/09
to Satchmo users
Appreciate the very good reply and good tips Chris.
I notice already some good improvements to the documention.

Tnx.

Freyr
Reply all
Reply to author
Forward
0 new messages