Re: Django for eCommerce?

2005-12-21 Thread Kenneth Gonsalves
On Thursday 22 Dec 2005 5:00 am, James Bennett wrote: > products to. The hardest part would be payment processing; you'd > need to write code in your checkout view that would take payment > details and send that information through your processing > service. hey, this would take several hours - u

Re: help passing data from view to template

2005-12-21 Thread Colleen Owens
Okay, yeah this was a dumb question, foolishly asked before I got through part 4 of the tutorial. I see now that calling get_link_list from within my template will do what I need. I didn't realize that get_link_list would preserve ordering.On 12/21/05, Colleen Owens <[EMAIL PROTECTED]> wrote: I'm a

Re: Django for eCommerce?

2005-12-21 Thread James Bennett
On 12/21/05, Michael Hipp <[EMAIL PROTECTED]> wrote: > Could anyone elaborate - perhaps with pointers to docs or example code to > implement some of the features? Here's how I'd imagine it would be set up: Models: Product (related ManyToMany to Category) Category (related ManyToMany to Produ

Re: Django for eCommerce?

2005-12-21 Thread Ian Holsman
from my understanding there is no opensource 'shopping cart' or 'product database' application which you can just download and install. but i'm sure if you want to sponsor one there will be a couple of hands going up to do it. what Jacob meant is that all the bits for you to build a eCommerce si

Re: concept problem with apps

2005-12-21 Thread James Bennett
On 12/21/05, Armin <[EMAIL PROTECTED]> wrote: > Thanks James for the great example. So, online store which is a huge > project all by itself will not be broken down to multiple apps? But > will be used as a simple package. If it would be easier to maintain as one application, do it as one applica

Re: Django for eCommerce?

2005-12-21 Thread Michael Hipp
Jacob Kaplan-Moss wrote: On Dec 21, 2005, at 10:24 AM, Michael Hipp wrote: How suitable is Django for an eCommerce site (SSL, shopping cart, product database, accounts, etc.)? Very well suited. Thank you. Could anyone elaborate - perhaps with pointers to docs or example code to implem

Re: concept problem with apps

2005-12-21 Thread Waylan Limberg
On 12/21/05, James Bennett <[EMAIL PROTECTED]> wrote: > > Client A is an individual who wants to have a weblog. > > Client B is a company that wants to have an online store. > > Client C is a company that wants to have both an online store and a weblog. > > So you could write a 'weblog' applicatio

Re: additional data for generic views

2005-12-21 Thread patrick k
thanks - that´s it. > > if your view uses DjangoContext (which the generic views do I belive) > than the user is just > > {{ user }} > so something like > {% for group in user.get_group_list %} > {{ group }} > {% endfor %} > should work. > > regards > Ian > > On 12/22/05, patrick k <[EMAIL PR

Re: additional data for generic views

2005-12-21 Thread Ian Holsman
if your view uses DjangoContext (which the generic views do I belive) than the user is just {{ user }} so something like {% for group in user.get_group_list %} {{ group }} {% endfor %} should work. regards Ian On 12/22/05, patrick k <[EMAIL PROTECTED]> wrote: > > while trying to implement a sy

Re: concept problem with apps

2005-12-21 Thread Armin
Thanks James for the great example. So, online store which is a huge project all by itself will not be broken down to multiple apps? But will be used as a simple package. Armin

Re: concept problem with apps

2005-12-21 Thread James Bennett
On 12/21/05, Armin <[EMAIL PROTECTED]> wrote: > I don't quite understand the need for multiple 'apps'. They share the > same 'session' variables... so you wouldn't run 2 different websites as > two different apps. Basically, I want to get some examples of > situations I'd need to use apps. You do

additional data for generic views

2005-12-21 Thread patrick k
while trying to implement a system for project-management into our django-based admin-interface, i´m having a small problem here. right now, i´m using generic views for the "notes". when a user wants to create a note, he/she has to select a user or a user-group which relates to that note. for the

help passing data from view to template

2005-12-21 Thread Colleen Owens
I'm a Django newbie. This follows up on a question I asked before and a very helpful answer to on this list. So I have a list of dates and for each date I have a list of link objects I want to display. I'm trying to figure out how to best pass this data from my view to the template. I tried this

Re: Django for eCommerce?

2005-12-21 Thread Jacob Kaplan-Moss
On Dec 21, 2005, at 10:24 AM, Michael Hipp wrote: How suitable is Django for an eCommerce site (SSL, shopping cart, product database, accounts, etc.)? Very well suited. Jacob

Re: concept problem with apps

2005-12-21 Thread Armin
Sorry... i typed that in a pda; a painful process indeed. I don't quite understand the need for multiple 'apps'. They share the same 'session' variables... so you wouldn't run 2 different websites as two different apps. Basically, I want to get some examples of situations I'd need to use apps.

Re: Django built-in web server?

2005-12-21 Thread Michael Hipp
Joseph Kocherhans wrote: On 12/21/05, *Michael Hipp* <[EMAIL PROTECTED] > wrote: The documentation says "Django comes with its own Web server for development purposes." I'd like to use this for development and experimentation. But I can find nothi

Re: Django built-in web server?

2005-12-21 Thread Joseph Kocherhans
On 12/21/05, Michael Hipp <[EMAIL PROTECTED]> wrote: The documentation says "Django comes with its own Web server for developmentpurposes." I'd like to use this for development and experimentation. But I canfind nothing about where it lives or how to configure and run it. Any pointers? You're proba

Django built-in web server?

2005-12-21 Thread Michael Hipp
The documentation says "Django comes with its own Web server for development purposes." I'd like to use this for development and experimentation. But I can find nothing about where it lives or how to configure and run it. Any pointers? Thanks, Michael

Django for eCommerce?

2005-12-21 Thread Michael Hipp
Hello, just trying to get started with Django. Question... How suitable is Django for an eCommerce site (SSL, shopping cart, product database, accounts, etc.)? Thank you, Michael Hipp Heber Springs, Arkansas, USA

Re: Problem in Admin section, in shell works great

2005-12-21 Thread Robert Wittams
Burhan wrote: > class META: > admin = meta.Admin( > list_display=('name','price'), > list_filter=('price'), This list_filter value is not a tuple. It is just a string in brackets. This means that we iterate th

Re: Importing stuff in your app's models module?

2005-12-21 Thread Aggelos Orfanakos
Thanks for your response. I'm looking forward to this branch. :-)

Re: single table inheritance

2005-12-21 Thread Marcos Sánchez Provencio
According to sets theory you should not even care about order of columns, the same as happens with the elements of a Python dict. You can always tweak the generated sql for aesthetics... El mié, 21-12-2005 a las 01:03 +, braver escribió: > Is there a way to do single table inheritance in dja

Re: concept problem with apps

2005-12-21 Thread Jeroen Ruigrok van der Werven
Perhaps it is just me, but I have a bit of difficulty understanding what you are trying to ask here. Could you please rephrase it? Thanks, -- Jeroen Ruigrok van der Werven

Re: Problem in Admin section, in shell works great

2005-12-21 Thread Adrian Holovaty
On 12/21/05, Burhan <[EMAIL PROTECTED]> wrote: > Any idea? I suspect its the 'name' and that this is a reserved name > in Django. Is there a list of such things? I have run into this > problem before (while naming my app admin). Hmmm, no, "name" certainly isn't a reserved name. It must be some

Re: Importing stuff in your app's models module?

2005-12-21 Thread Adrian Holovaty
On 12/21/05, Aggelos Orfanakos <[EMAIL PROTECTED]> wrote: > I recently wanted to tweak how a model was being saved, so I used the > _pre_save method of it. In the _pre_save method I needed to use the > gethostbyaddr and herror of the socket module. To my surprise, I got > problems [1] when having

Re: downloadable django documentation?

2005-12-21 Thread Jacob Kaplan-Moss
On Dec 21, 2005, at 2:57 AM, Burhan wrote: For the impatient, you can disable CSS in your browser and get a nice 'print friendly' version. There's also a nice print stylesheet. Jacob

Importing stuff in your app's models module?

2005-12-21 Thread Aggelos Orfanakos
I recently wanted to tweak how a model was being saved, so I used the _pre_save method of it. In the _pre_save method I needed to use the gethostbyaddr and herror of the socket module. To my surprise, I got problems [1] when having "from socket import gethostbyaddr, herror" in module-level. It wor

Problem in Admin section, in shell works great

2005-12-21 Thread Burhan
Hello: I have the following model: class JobType(meta.Model): name = meta.CharField(maxlength=20, verbose_name='Job Type') price = meta.FloatField( max_digits=5, decimal_places=2, verbose_name='Price',

Re: downloadable django documentation?

2005-12-21 Thread Burhan
For the impatient, you can disable CSS in your browser and get a nice 'print friendly' version.

Re: SQL Injection

2005-12-21 Thread hugo
>They escape the string in the manner appropriate to the database >backend being used. In the above case if you were using MySQL your >string would become: Actually they use the parameter binding way of doing it: they pass both the SQL and a list of parameters to the DBAPI and so it's up to the d