Re: web hosting

2006-04-12 Thread PythonistL
I use Dreamhost and it works OK. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to

Re: possible to filter ManyToMany results?

2006-04-12 Thread Ivan Sagalaev
nkeric wrote: >hello, could anybody pls help? I don't want to write dirty sql if I >could do it via django ORM... > > Well... The only thing I could work out is this: articles = [a for a in g.get_article_list() if a.article_type_id == 1] Drawbacks are obvious: it's always selects all articles

Re: Django vs Rails

2006-04-12 Thread Jeremy Dunck
On 4/12/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > On 4/12/06, Glenn Tenney <[EMAIL PROTECTED]> wrote: > > 3. Rails supports and integrates well with Ajax. I know that this is > > "coming" for Django... sometime "real soon now"... how's it going? > > When might it be out? > > AFAIK, Rails trie

Re: Ecommerce & Django

2006-04-12 Thread Kenneth Gonsalves
On Thursday 13 Apr 2006 5:37 am, ZebZiggle wrote: > It would be great to have all this stuff already done, but the > processing company only has examples in PHP fairly trivial to translate the php example to python - i have done it in one case, although the processing company said it wouldnt wo

Re: Django vs Rails

2006-04-12 Thread Jeremy Dunck
On 4/12/06, Glenn Tenney <[EMAIL PROTECTED]> wrote: > 3. Rails supports and integrates well with Ajax. I know that this is > "coming" for Django... sometime "real soon now"... how's it going? > When might it be out? AFAIK, Rails tries to abstract away the generated JS, and in doing so makes code

Re: Django vs Rails

2006-04-12 Thread simonb
It's a personal choice. Why not take a day and evaluate the contenders by writing a simple little app (voting/wiki/blog etc.) Find which one fits with you. Also think about how and where it will be deployed/hosted and how easy/possible that is with the system you choose. Personally: having written

Re: possible to filter ManyToMany results?

2006-04-12 Thread nkeric
hello, could anybody pls help? I don't want to write dirty sql if I could do it via django ORM... BiG thanks! :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: Problem with threads accessing MySQL database

2006-04-12 Thread kopikopiko
Hi Dave, Thanks for your comment. That is an ingenious way of getting your tasks executed by views. Django is so new to me that I'm clinging to my first conception of how task timing might work lest I become completely lost :-) I'm working on a system to automate interactive TV and synchronise c

Re: Problem with threads accessing MySQL database

2006-04-12 Thread kopikopiko
Hi Dave, Thanks for your comment. That is an ingenious way of getting your tasks executed by views. Django is so new to me that I'm clinging to my first conception of how task timing might work lest I become completely lost :-) I'm working on a system to automate interactive TV and synchronise c

Re: Django time-zone chaos

2006-04-12 Thread [EMAIL PROTECTED]
I did set everything to GMT (even computer time), so now it is fine. There is something wrong Django Timezone. Thanks John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Problem with threads accessing MySQL database

2006-04-12 Thread kopikopiko
Hi Eugene, Thank you for your advice - that makes sense. At the level I'm working at (first project) and given that locking the single connection doesn't kill my application (actions can still be performed in real time and the only delay is to writing logs and statuses back to the database) I'm h

Re: ManyToMany with related_name?

2006-04-12 Thread Russell Keith-Magee
On 4/13/06, Dave St.Germain <[EMAIL PROTECTED]> wrote: I'm trying to create a model that relates back to itself with a ManyToManyField.  Here's my model:I'd like to use a simple ManyToMany, but the objects don't have a distinction between "inserted into" and "insert of".  Does that make sense?Yup.

Re: Ecommerce & Django

2006-04-12 Thread ZebZiggle
I'm just going through the same thing myself. For my particular application, I'm not doing a shopping cart, just a lump sum non-recurring payment. I was going to do all the HTTPS stuff myself to the transaction handler for approval and I'll accept the "means of payment" screens myself in Django.

Re: Using _pre_delete() to stop execution

2006-04-12 Thread Norbert
Thanks for the quick reply, Arthur. I've gone over the MR version of doing this, by overwriting delete(), which seems to be like a good approach. I have not tried to add it to my code, because due to some bad management, I'm currently not working on that particular code. In a way, the problem

Re: Django vs Rails

2006-04-12 Thread James Bennett
On 4/12/06, Glenn Tenney <[EMAIL PROTECTED]> wrote: > 3. Rails supports and integrates well with Ajax. I know that this is > "coming" for Django... sometime "real soon now"... how's it going? > When might it be out? I put in the patch for the initial Django/Dojo mashup (Dojo is the JavaScript to

Re: Django vs Rails

2006-04-12 Thread Adrian Holovaty
On 4/12/06, Glenn Tenney <[EMAIL PROTECTED]> wrote: > 5. Rails has a book or two already out there -- and already out of > sync with the version of Rails recently released. Django's book is > "in the pipeline" but I doubt it'll be out until 0.92 gets released. Django 0.92 will *definitely* be ou

Django vs Rails

2006-04-12 Thread Glenn Tenney
Several friends have been pushing me to look at Rails, so I've been reading through "Agile Web Development with Rails". Some quick thoughts... with a couple of questions thrown in... 1. Ok, there IS the Ruby vs Python thing... I'll leave that to some *other* place for THAT flame fest as I do N

Re: Ecommerce & Django

2006-04-12 Thread Michael
I'm working on similar project in m-r . Currently ready only categories,products - so catalog website ready - shopping cart  -work in progress  - need to finish checkout. I've been thinking to open a project page for this - could happening in next few days(weeks?) Michael --~--~-~--~~-

Model that has more options

2006-04-12 Thread beewee
Hi, I'm trying to create a model where the user can either upload an image or enter a URL to an image or select an given image by a combobox. How this would be possible? (I hope, I'm understandable...) Thanks for your help, Benjamin Wiegand --~--~-~--~~~---~--~

Re: check for none

2006-04-12 Thread Ivan Sagalaev
Jiri Barton wrote: >I want to be able to discern among None, empty list, and non-empty >list; then, I want to tell the user - say nothing, "nothing found", >"found the following:" resp. > > I had a similar (but a bit more complex) thing solved for me by wrapping a list in a dict: result={} -

Re: Ecommerce & Django

2006-04-12 Thread olive
I'm currently working on rewriting a store (for my wife too;) I have originaly wrote in OmniMark language (isn't it exotic ?). It is pretty straightforward with Django, I have already achieve the shopping cart management, user registration, shipping (Chronopost, France), discounts. But the model

Re: Ecommerce & Django

2006-04-12 Thread olive
I'm currently working on rewriting a store (for my wife too;) I have originaly wrote in OmniMark language (isn't it exotic ?). It is pretty straightforward with Django, I have already achieve the shopping cart management, user registration, shipping (Chronopost, France), discounts. But the model

Re: Pluggable User/Registration/Authentication App?

2006-04-12 Thread Max Battcher
Esteban wrote: > I am pretty much fresh blood to Django and I am looking for a pluggable > application that will provide some sort of front end interface to > handle user registration and authentication to an existing project. > For many sites a user system is key, I have been reading around and >

ManyToMany with related_name?

2006-04-12 Thread Dave St.Germain
I'm trying to create a model that relates back to itself with a ManyToManyField.  Here's my model:class PressRun(models.Model):    starttime = models.DateTimeField(db_index=True)    endtime = models.DateTimeField (validator_list=[endAfterStartValidator])    name = models.CharField(maxlength=100,bla

Ecommerce & Django

2006-04-12 Thread Chris Moffitt
Hello everyone, I've been lurking around here for a little bit, trying to get a feel for Django. I recently had the need to set up an eCommerce site for my wife. After looking at all the alternatives, I chose OsCommerce which seems to be the dominate Open Source ecommerce application. It is pr

Re: where is the meta?

2006-04-12 Thread Adrian Holovaty
On 4/12/06, yi huang <[EMAIL PROTECTED]> wrote: > today i update the django magic-removal svn,and install new version > i read new db-api.html , and see > models.ForeignKey(Poll, edit_inline=meta.TABULAR > > but where to import meta module. > > and the old code "models.TABULAR" is wrong now.

check for none

2006-04-12 Thread Jiri Barton
Hello girls and boys, how do I check if a variable is None in a template? The following do not work... {% ifequal variable None %} {% ifequal variable|default_if_none:"skip" "skip" %} I want to be able to discern among None, empty list, and non-empty list; then, I want to tell the user - say n

Re: Strange exception when creating a user.

2006-04-12 Thread Justin
I've actually seen that error as well with the M-R branch. It used to show up every once in a while, maybe one out of 10 or 15 times when I was creating a new post in my blog model. Whatever it was, it seems to have been fixed as of a week or two ago, so I never really bothered to report it. -Jus

Re: Problem with threads accessing MySQL database

2006-04-12 Thread DavidA
Hi kopikopiko, I thought I'd chime in on how I'm solving a similar problem. I also have a task scheduling app written in Django, but I actually run the tasks through Django rather than outside of it: I have a special view (/tasks/trigger) which remembers the last time the view ran and checks for

Re: where is the meta?

2006-04-12 Thread Dave St.Germain
models.TABULAR should workOn 4/12/06, yi huang <[EMAIL PROTECTED]> wrote: today i update the django magic-removal svn,and install new versioni read new db-api.html , and see models.ForeignKey(Poll, edit_inline=meta.TABULAR but where to import meta module.and the old code "models.TABULAR" is wr

where is the meta?

2006-04-12 Thread yi huang
today i update the django magic-removal svn,and install new versioni read new db-api.html , and see models.ForeignKey(Poll, edit_inline=meta.TABULAR but where to import meta module.and the old code "models.TABULAR" is wrong now. -- http://codeplayer.blogbus.com/ --~--~-~--~~

Re: querying for an empty set in m-r?

2006-04-12 Thread Brian Elliott
Russell, Just wanted to thank you for responding to my post. You did interpret my question correctly, though I was obviously hoping to avoid using raw SQL. Anyway, thanks again. Brian On Apr 12, 2006, at 1:10 AM, Russell Cloran wrote: > > Hi, > > On Tue, 2006-04-11 at 21:20 -0400, Max Ba

Re: querying for an empty set in m-r?

2006-04-12 Thread Brian Elliott
Max, Just wanted to thank you for responding to my question. You are correct that the list comprehension is pythonic, though I was ideally looking for a efficient method from a database perspective. Thanks, Brian On Apr 12, 2006, at 2:16 AM, Max Battcher wrote: > > Russell Cloran wrote: >

Re: web hosting

2006-04-12 Thread Jeremy Dunck
On 4/12/06, tgone <[EMAIL PROTECTED]> wrote: > > Does anyone know of a good hosting company that already has Django > installed? http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Pluggable User/Registration/Authentication App?

2006-04-12 Thread Esteban
I am pretty much fresh blood to Django and I am looking for a pluggable application that will provide some sort of front end interface to handle user registration and authentication to an existing project. For many sites a user system is key, I have been reading around and found the authentication

web hosting

2006-04-12 Thread tgone
Does anyone know of a good hosting company that already has Django installed? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com

Re: possible to filter ManyToMany results?

2006-04-12 Thread nkeric
Ivan Sagalaev wrote: > g.get_article_list(article_type_id__exact=1) > It's g.get_article_list(article_type__id__exact=1). Note 2 underscores > before "id" which means field "id" of a parent table. sorry for mistyped that, I tried this: >>> g.get_article_list(article_type__id__exact=1) Traceb

Re: querying for an empty set in m-r?

2006-04-12 Thread Max Battcher
Russell Cloran wrote: > Hi, > > On Tue, 2006-04-11 at 21:20 -0400, Max Battcher wrote: >> if sometag.article_set.count() == 0: >> pass # your code here > > This will test if one tag has an empty article_set. AFAICT, the question > is on how to find all tags which have an empty article_set. Y