is_approved patch for django.contrib.auth

2006-08-31 Thread Bryan
In the Django Developers group/mailing-list, I brought up an enhancement for adding the is_approved field to django's contrib.auth. This request was declined. It was suggested that I add this to the profile class instead. This doesn't make sense to me, because authentication should be independen

Re: mod_python whoes

2006-08-31 Thread Graham Dumpleton
Frank Stüss wrote: > Thanks to you. > > So it is like it is. No short changes on a virtually hosted production server > with mod_python :) > > And my second problem doesn't belong in this list. After googling again i > found that it may be caused by a wrong compiled mod_python (two mod_python > v

Re: Django Books

2006-08-31 Thread zenx
Picio, sorry for the misunderstanding! You will find the links that Jeremy has posted very useful :D (PS: I'm from Spain) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: mod_python whoes

2006-08-31 Thread Frank Stüss
Thanks again for anticipation. The strange thing is: Apache *has* been restarted (as of message of my provider). That's why i talked about a cache or something. I found others experiencing this problem, too. We will see. I totally agree that a special module reloading mechanism doesn't belong

A combined django + apache + mod_python distro

2006-08-31 Thread Iwan Memruk
Another question: is there something that prevents distributing a full pre-configured environment for Django, including Apache and mod_python? Looks like the licensing for each of the three projects allows that. Such a distro would be very appealing to the users and it would fit the RAD ideology of

Re: Django on shared hosting - no effect until restart

2006-08-31 Thread viestards
> With FCGI, do a touch on your .fcgi file. That always works for me. I write "aaa" in fcgi file, which must cause syntax error, save it, but nothing happens. > Easier way of course is to develop with the built-in development > server, and only start Apache when your development is done. My hos

Re: A combined django + apache + mod_python distro

2006-08-31 Thread Frank Stüss
I am dreaming of a www.colinux.org package with this configuration. May be this would be nice, too. Or Linux on a stick as django server to hand out a customer specific offline catalogue on a nifty usb-stick (*sigh*). Am Donnerstag, 31. August 2006 10:31 schrieb Iwan Memruk: > Another questio

Re: AJAXWidgetComboBox in admin?

2006-08-31 Thread zenx
thank you!!! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] F

Re: Django Books

2006-08-31 Thread Daniele Spino
No problem zenx. Anyway If someone is interested in, ShowmeDo has accepted my request for a pratical Django screencast, and luckyly in three days It took 18 votes. Please consider voting it. http://showmedo/request ...There only one to vote in the Django category. Many thanks JeremyD for all you l

Re: A combined django + apache + mod_python distro

2006-08-31 Thread Iwan Memruk
Now... I believe that coupling it with Linux would be too much. But building a Django + Apache distro is realistic enough.By the way, what about an Eclipse plugin for Django?Actually what I imagine is a RadRails-style package.On 8/31/06, Frank Stüss <[EMAIL PROTECTED]> wrote: I am dreaming of a ww

Re: foreignKey + manipulator...performance problem, SOLVED

2006-08-31 Thread Gábor Farkas
gabor wrote: > hi, > > imagine 2 simple models like: > > > = > class Thing(Model): > name = CharField(maxlength=500) > = > > > = > class Owner(Model): > name = CharField(maxlength=500) > thing = ForeignKey(Thing) > ===

Re: mod_python whoes

2006-08-31 Thread Graham Dumpleton
Frank Stüss wrote: > Thanks again for anticipation. > > The strange thing is: Apache *has* been restarted (as of message of my > provider). That's why i talked about a cache or something. I found others > experiencing this problem, too. We will see. If you are using a service provider, ask them

basic question, "greater than" in templates

2006-08-31 Thread Filipe
Is it possible to make "less than" and "greater than" comparisons in templates? I was trying to do something similar to this, but without success: {% if list|length > max_list_length %} Exceeded by {{ list|length - max_list_length }} items {% endif %} --~--~-~--~~~--

Re: Using a webservice as the datasource

2006-08-31 Thread Julio Nobrega
On 8/31/06, Iwan Memruk <[EMAIL PROTECTED]> wrote: > Hi, > > Has anyone got any experience of doing that with Django? How > would you estimate the effort necessary for adapting Django to use > webservices as the data source? What would be your approach? I am using Django with the Yahoo API. The

Re: basic question, "greater than" in templates

2006-08-31 Thread Kenneth Gonsalves
On 31-Aug-06, at 4:16 PM, Filipe wrote: > > Is it possible to make "less than" and "greater than" comparisons in > templates? > > I was trying to do something similar to this, but without success: > {% if list|length > max_list_length %} > Exceeded by {{ list|length - max_list_length }} items >

Re: Using a webservice as the datasource

2006-08-31 Thread Iwan Memruk
Thanks Julio!What I thought of though was a Django application completely without own DB.It would fetch the data using one set of WS operations, and save them back using another set of operations.These are not some public web services, but application-specific ones, which have their own WSDLs and a

Re: Django Books

2006-08-31 Thread Jeremy Dunck
On 8/31/06, Daniele Spino <[EMAIL PROTECTED]> wrote: > Please consider voting it. > http://showmedo/request ...There only one to vote in the Django category. 91 votes now. :) ...ShowMeDo is a nice surprise. :) --~--~-~--~~~---~--~~ You received this message bec

Re: python manage.py syncdb fails with assertion error

2006-08-31 Thread Jeremy Dunck
On 8/31/06, billybob <[EMAIL PROTECTED]> wrote: > this is my first shot at using Django. i've been using php/mysql on my ... > Adding permission 'site | Can add site' > Adding permission 'site | Can change site' > Adding permission 'site | Can delete site' > python: Objects/object.c:1397: PyObjec

Re: Django Books

2006-08-31 Thread zenx
voted too! ;) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED]

Confirmation email during user registration?

2006-08-31 Thread Iwan Memruk
And yet one more question.Has someone ever enabled Django to send a confirmation email during user registration?-- Iwan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: foreignKey + manipulator...performance problem, SOLVED

2006-08-31 Thread Laundro
What do you mean with "2000 thing objects"? Are there 2000 records in the database for that table, or did you have 2000 records in memory at runtime? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Re: basic question, "greater than" in templates

2006-08-31 Thread Filipe
I see. Thanks! cheers, Filipe --~--~-~--~~~---~--~~ 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: Confirmation email during user registration?

2006-08-31 Thread F.S
Iwan Memruk wrote: > And yet one more question. > Has someone ever enabled Django to send a confirmation email during user > registration? > > -- > Iwan Jeff C has released the source code for his LOST-theories.com project and I remeber seeing what you are looking for when browsing the code. You

Re: Django Books

2006-08-31 Thread Antonio Cangiano
zenx wrote: > I don't know when it will be published, but a book is coming: > http://www.amazon.com/gp/product/1590597257 > It is written by Adrian Holovaty and Jacob Kaplan-Moss (django > developers) and as far as I know it will be also avaible for free > download as PDF :D That's excellent. If

Re: Confirmation email during user registration?

2006-08-31 Thread Kenneth Gonsalves
On 31-Aug-06, at 6:18 PM, Iwan Memruk wrote: > And yet one more question. > Has someone ever enabled Django to send a confirmation email during > user registration? yes -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~--

Re: Redirect from button event?

2006-08-31 Thread Ivan Sagalaev
Russell Keith-Magee wrote: > Can you make the button an inside a action="myurl" method="post">, where myurl is either: I would say GET here is better instead of POST. Because it's not changing anything. --~--~-~--~~~---~--~~ You received this message because yo

Re: Custom SQL in Q objects

2006-08-31 Thread bk
I've got a similar situaton with trying to use 'limit_choices_to' on an intermediary table, but I haven't been able to get it working... Here's a quick abbreviated example: class Category(models.Model): name = models.CharField(maxlength=200) class Photo(models.Model): name = models.CharField

Re: mod_python-3.2.10/Apache-2.2.2/FreeBSD/

2006-08-31 Thread Ivan Sagalaev
Wiktor Grębla wrote: > I have lighttpd+fastcgi configuration on the same host, but apache + > mod_python looked like a good idea (for a change). Interesting I've just made as switch in other direction :-). Lighty+FastCGI just takes less memory... --~--~-~--~~~---~--

How do I make something available everywhere?

2006-08-31 Thread [EMAIL PROTECTED]
I want to tap into the Amazon Web Services to provide a little revenue stream. I'm pretty confident about writing a funtion that will get the appropriate xml from Amazon and parse it out, as I'm already tapping into google maps and bringinig in an external rss feed. That part I think I've got. W

Re: How do I make something available everywhere?

2006-08-31 Thread James Bennett
On 8/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Do I need a view? Should I just write a template tag? I'd go with a template tag. > Or is this what the extra context thing is all about? It is possible to write "context processor" functions which will add extra items to the context of

Re: Confirmation email during user registration?

2006-08-31 Thread Iwan Memruk
Thanks. I will dig that.On 8/31/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: On 31-Aug-06, at 6:18 PM, Iwan Memruk wrote:> And yet one more question.> Has someone ever enabled Django to send a confirmation email during> user registration?yes-- regardskghttp://lawgon.livejournal.comhttp://nrcfos

Re: How do I make something available everywhere?

2006-08-31 Thread Bryan L. Fordham
> What I don't understand (and I know this is a total newbie question) is > how I do this so it's available to drop in on any page I like. I'd suggest a template tag. That way you could (for example) put the tag into your base template and it'll show up on all pages that extend it, without being

Re: Re: Django on shared hosting - no effect until restart

2006-08-31 Thread James Bennett
On 8/31/06, viestards <[EMAIL PROTECTED]> wrote: > My hosting provider will not restart server every time when I need it. > Maybe it's fcgi fault, now default FreeBSD FastCGI package is used, > and it's built as DSO. Maybe I have to build it other way. Apache itself shouldn't require a restart, j

class Meta: ordering by foreign key

2006-08-31 Thread frank h.
is it possible? in the admin class, I can fake ordering by a foreign key field using the table name and list_select_related class Admin: list_select_related = True ordering = ['myapp_mytable.myfield'] the same does not seem to work for class Meta, which g

Re: How do I make something available everywhere?

2006-08-31 Thread [EMAIL PROTECTED]
So just so I'm clear, I'll need to create an app (we'll call it amazon) that will have an empty models.py AND an empty views.py (since I don't want this in the DB, and I don't want it tied to any particular view) but WILL contain a templatetags folder for my little function. Right? --~--~--

Re: Re: Django on shared hosting - no effect until restart

2006-08-31 Thread Jeremy Dunck
On 8/31/06, James Bennett <[EMAIL PROTECTED]> wrote: > Apache itself shouldn't require a restart, just the Django FastCGI > processes. I run FastCGI behind lighttpd, and change stuff all the > time; I just stop and start my FastCGI processes and leave lighttpd > alone. I haven't done anything wit

Django + XUL

2006-08-31 Thread Alagu Madhu
I'm looking for django + xul example or reference. --~--~-~--~~~---~--~~ 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 gr

admin and dates...

2006-08-31 Thread zenx
Lets see if someone has already dealt with this problem and can help me: I want to administer appointments in admin. I have two classes: === class Client(models.Model): name = models.CharField(maxlength=30) company = models.CharField(maxlength=50) class

appointments in admin, possible?

2006-08-31 Thread Antonio Melé
Lets see if someone has already dealt with this problem and can help me: I want to administer appointments in admin. I have two classes: === class Client(models.Model): name = models.CharField(maxlength=30) company = models.CharField(maxlength=50) class

Re: How do I make something available everywhere?

2006-08-31 Thread Adrian Holovaty
On 8/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > So just so I'm clear, I'll need to create an app (we'll call it amazon) > that will have an empty models.py AND an empty views.py (since I don't > want this in the DB, and I don't want it tied to any particular view) > but WILL contain a t

changeManipulator and edit_inline

2006-08-31 Thread patrickk
can anyone explain how to use changeManipulator with 2 models where one is edited inline? I´m having problems understanding the basic idea: - do I have to use one changeManipulator or two? - how does the validation work? e.g., how do I get the errors for the 2nd model (the one which is edited

Re: foreignKey + manipulator...performance problem, SOLVED

2006-08-31 Thread Gábor Farkas
[EMAIL PROTECTED] wrote: > What do you mean with "2000 thing objects"? Are there 2000 records in > the database for that table, or did you have 2000 records in memory at > runtime? > if you don't use raw_id_admin, then (from my understanding at least), the manipulator loads all of them into the

why 'default' filter does't work?

2006-08-31 Thread HoLin
the code   /z/catalog/{{ act|default:"new" }}/  works well before i get the latest svn trunk. I try to replace it like this  /z/catalog/{{ act|default_if_none:"new" }}/, it also returns blank. Does someone know how?-- RegardsHoLin --~--~-~--~~~---~--~~ You received

Re: Django + XUL

2006-08-31 Thread Jeremy Dunck
On 8/31/06, Alagu Madhu <[EMAIL PROTECTED]> wrote: > > I'm looking for django + xul example or reference. I don't think you'll find it. Django view functions just want HTTPResponses back; the response body is passed as either as string or an iterator over strings; you can override the MIME type

A few questions about queryset's.

2006-08-31 Thread Anders Aagaard
Hi I've been learning to love django lately, but I can't quite wrap my head around more advanced querysets. I've listed my classes and their sql tables on the bottom, as all problems are linked to those tables. First problem: I have a class, Content, with a set of tags, how can I filter for mu

Re: Re: Django + XUL

2006-08-31 Thread James Bennett
On 8/31/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > Django view functions just want HTTPResponses back; the response body > is passed as either as string or an iterator over strings; you can > override the MIME type like so: You could also render XUL with the template system. -- "May the forc

Re: Re: Django + XUL

2006-08-31 Thread Jeremy Dunck
On 8/31/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 8/31/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > Django view functions just want HTTPResponses back; the response body > > is passed as either as string or an iterator over strings; you can > > override the MIME type like so: > > You

Signals

2006-08-31 Thread David Blewett
Hi All: I know that I want to make use of signals in my project. I'm not sure how to use them, though. It appears that the handling function has to have arguments like this: sender, instance, signal, *args, **kwargs. Can someone define these arguments? Basically, I want to hook into the post_sav

Is Django the right tool?

2006-08-31 Thread brad
Hello. I am wondering right now whether Django will help speed up my project and help me or whether Django isn't the best tool in this situation. My project involves a web application that grabs thousands of prices, quantities and product names from a handful of predefined sites. The application

Re: why 'default' filter does't work?

2006-08-31 Thread Don Arbow
On Aug 31, 2006, at 8:20 AM, HoLin wrote: > the code /z/catalog/{{ act|default:"new" }}/ works well before i > get the > latest svn trunk. > I try to replace it like this /z/catalog/{{ act| > default_if_none:"new" }}/, > it also returns blank. > Does someone know how? The two tags are not

Re: Signals

2006-08-31 Thread Tyson Tate
On Aug 31, 2006, at 8:54 AM, David Blewett wrote: > I know that I want to make use of signals in my project. I'm not sure > how to use them, though. It appears that the handling function has to > have arguments like this: sender, instance, signal, *args, **kwargs. > Can someone define these argum

Re: Is Django the right tool?

2006-08-31 Thread Adrian Holovaty
On 8/31/06, brad <[EMAIL PROTECTED]> wrote: > Hello. I am wondering right now whether Django will help speed up my > project and help me or whether Django isn't the best tool in this > situation. My project involves a web application that grabs thousands > of prices, quantities and product names

Re: A few questions about queryset's.

2006-08-31 Thread Steven Armstrong
On 08/31/06 17:22, Anders Aagaard wrote: > Hi > > I've been learning to love django lately, but I can't quite wrap my > head around more advanced querysets. I've listed my classes and their > sql tables on the bottom, as all problems are linked to those tables. > > First problem: > I have a cla

Re: why 'default' filter does't work?

2006-08-31 Thread HoLin
Don,thanks for your reply.   '/z/catalog/{{ act|default:"new"}}/' worked well before I update svn. in view, i do like this: return render_to_response("siteadmin/bid_new.html", {"act":"edit", "title":"edit bid",}) when it's new bid, I return render_to_response("siteadmin/bid_new.html")  On 9/1/06,

Re: Is Django the right tool?

2006-08-31 Thread Bryan
I use several web frameworks and will fairly say that Django is the best tool for this because of the python packages you will find to help you scrape the prices from those existing sites. Good luck, Bryan brad wrote: > Hello. I am wondering right now whether Django will help speed up my > proj

Re: How do I make something available everywhere?

2006-08-31 Thread [EMAIL PROTECTED]
Is there a trick to making the templatetag files compile? I have amazon >__init__.py >__init__.pyc >templatetags >> amazon.py >>__init__.py No matter what I try, nothing in the templatetag folder seems to want to compile. --~--~-~--~~~---~--~~ You received this

Advanced Admin Customization

2006-08-31 Thread mthorley
Greetings, I am trying to do a few advanced (from my point of view) customizations to the built in admin. I have searched around but haven't found the answers I'm looking for. If any one can help, or point me to a resource that can, I'd be forever greatful. (or at least really grateful ;) More E

MySQL backend patch

2006-08-31 Thread Andy Dustman
I've come up with a patch to the MySQL backend. If you use MySQL, please check it out. http://code.djangoproject.com/ticket/2635 One of the issues to resolve is: What is the minimum version of MySQL which Django should support? I am doing all my development with 5.0, and the early deployment I h

Re: How do I make something available everywhere?

2006-08-31 Thread Jeremy Dunck
On 8/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > No matter what I try, nothing in the templatetag folder seems to want > to compile. Assuming " import amazon " works, does " from amazon.templatetags import amazon " work? --~--~-~--~~~---~--~~ You receive

Re: A few questions about queryset's.

2006-08-31 Thread Anders Aagaard
Steven Armstrong wrote: > On 08/31/06 17:22, Anders Aagaard wrote: > > Hi > > > > I've been learning to love django lately, but I can't quite wrap my > > head around more advanced querysets. I've listed my classes and their > > sql tables on the bottom, as all problems are linked to those tables

Re: why 'default' filter does't work?

2006-08-31 Thread Don Arbow
On Aug 31, 2006, at 9:43 AM, Don Arbow wrote: > The two tags are not comparable in functionality. Oops, that should actually read: The two filters are not comparable in functionality. Don --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Confirmation email during user registration?

2006-08-31 Thread zenx
Iwan, take a look at this too: http://feh.holsman.net/articles/2006/04/30/double-opt-in-user-registration-for-django http://feh.holsman.net/articles/2005/11/20/user-registration Instead of requiring a verification e-mail, it firsts sends the user an e-mail that includes a link for continuing the

Re: How do I make something available everywhere?

2006-08-31 Thread [EMAIL PROTECTED]
Ahh, it gets compiled when it's called. Duh. Thanks! --~--~-~--~~~---~--~~ 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 thi

Re: Custom SQL in Q objects

2006-08-31 Thread Luke Plant
On Thursday 31 August 2006 14:03, bk wrote: > class CategoryPhoto(models.Model): > category = models.ForeingKey(Category, edit_inline=models.Tabular) > position = models.PositiveIntegerField(core=True) > photo = models.ForeignKey(Photo, limit_choices_to={'category__pk': > ???}) > > ??? is wh

Re: Django deployment tools?

2006-08-31 Thread Rob Hudson
It looks like there was some work done with the django.conf.settings to make it more paste friendly: http://code.djangoproject.com/ticket/1212 http://code.djangoproject.com/ticket/1214 There's also Django Paste that I found: http://pythonpaste.org/djangopaste/ Which doesn't appear to be up to da

Re: Confirmation email during user registration?

2006-08-31 Thread Iwan Memruk
Thanks zenx!I've just passed my 'aha!' stage of Django learning, and I somehow got to know how to do that thing and many other things too. In fact, I feel like I can do anything with Django now. :) On 8/31/06, zenx <[EMAIL PROTECTED]> wrote: Iwan, take a look at this too:http://feh.holsman.net/arti

Re: Is Django the right tool?

2006-08-31 Thread brad
Thanks for the input Bryan and Adrian. I have to agree and say that Django could be an asset to this project. Bryan or anyone else could you name a few useful packages that will help me scrape the prices from the list of websites that I have? Thanks in advanced for any future help I get. Thank you

Re: MySQL backend patch

2006-08-31 Thread Geert Vanderkelen
Hi Andy, On 31 Aug 2006, at 19:40, Andy Dustman wrote: > > I've come up with a patch to the MySQL backend. If you use MySQL, > please check it out. > > http://code.djangoproject.com/ticket/2635 > > One of the issues to resolve is: What is the minimum version of MySQL > which Django should suppor

Re: Advanced Admin Customization

2006-08-31 Thread Chris Long
Howdy, For the permission checking, you could override the admin template and add auth checking in there for the various permissions you want to check for. See: http://code.djangoproject.com/wiki/ExtendingAdminTemplates for more details on this. And in the auth documents there is info on how to a

Re: Is Django the right tool?

2006-08-31 Thread Jeremy Dunck
On 8/31/06, brad <[EMAIL PROTECTED]> wrote: > > Thanks for the input Bryan and Adrian. I have to agree and say that > Django could be an asset to this project. Bryan or anyone else could > you name a few useful packages that will help me scrape the prices from > the list of websites that I have? T

Re: MySQL backend patch

2006-08-31 Thread Waylan Limberg
On 8/31/06, Geert Vanderkelen <[EMAIL PROTECTED]> wrote: > > > There is already some migration going on from 4.x to 5.0, so I think > we should go for 5.0 as 'default' backend. But that is just my opinion. Just remember that all those shared hosting companies are very slow to migrate at all. I'd

Re: Are there significant differences between .95 & .96?

2006-08-31 Thread keukaman
Adrian Holovaty wrote: > On 8/30/06, keukaman <[EMAIL PROTECTED]> wrote: > > Somewhere in this process my flatpages middleware stopped working. I > > was getting a python error when trying to access flatpages. I don't > > know if something was corrupted of if .96 handles flatpages > > differently

Re: Advanced Admin Customization

2006-08-31 Thread mthorley
Chris Long wrote: > For the permission checking, See: > http://code.djangoproject.com/wiki/ExtendingAdminTemplates for more Thanks, that's a neat trick, though from the surface I'm not 100% sure it will do what I'm thinking. I'll have to investigate further. My intuition tells me I need to do t

Re: Advanced Admin Customization

2006-08-31 Thread Chris Long
> Thanks, that's a neat trick, though from the surface I'm not 100% sure > it will do what I'm thinking. I'll have to investigate further. My > intuition tells me I need to do the checks in the model, maybe with a > save hook, not in the template; but I may be off on that. Maybe, but if you do i

Possible to collapse an inlined model?

2006-08-31 Thread Rob Hudson
It looks like you can collapse a group of fields on a model, but can you collapse a joined model that you are inlining? I don't see how you can do that. Thanks, Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Advanced Admin Customization

2006-08-31 Thread mthorley
Chris Long wrote: > Maybe, but if you do it in the template then it won't even show the > option to the user and you'll avoid the trouble of getting the error > from the save method to be displayed to the user. Oh, I see where you're going with it. Just hide the interface from the user. That's a

Re: Advanced Admin Customization

2006-08-31 Thread Chris Long
> Oh, I see where you're going with it. Just hide the interface from the > user. That's a great idea, I still need a way though to enforce it so > that carefully crafted POST requests don't allow unauthorized users > from breaking things. That's true, maybe using the custom manipulator would han

Two ForeignKeys to the Same Model

2006-08-31 Thread alex kessinger
I have a model named producer class Producer(models.Model): student = models.ForeignKey(Student) pu = models.IntegerField(blank=True) and producer can pay each other PU so I have another model that I want to create I use two different producer cols to do this class ProducerToPro

Re: django cannot connect to mysql after upgrade

2006-08-31 Thread Andy Dustman
MySQL-5.0.24 accidentally introduced an ABI-incompatibilty, which caused the "Commands out of sync" error; MySQL-5.0.24a fixes this. -- This message has been scanned for memes and dangerous content by MindScanner, and is believed to be unclean. --~--~-~--~~~---~--~--

Re: why 'default' filter does't work?

2006-08-31 Thread SmileyChris
Hi HoLin, I encountered that same problem - the functionality changed in [3268] so that filters aren't used if the variable is not found. I think this is incorrect and will bring it up in the developers group now. --~--~-~--~~~---~--~~ You received this message

Re: Two ForeignKeys to the Same Model

2006-08-31 Thread Rob Hudson
Would that be a self join? http://www.djangoproject.com/documentation/models/m2o_recursive/ --~--~-~--~~~---~--~~ 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@goo

Re: Two ForeignKeys to the Same Model

2006-08-31 Thread alex kessinger
I'm sorry Rob I didn't see that you had posted the same anwser thanks. On 8/31/06, alex kessinger <[EMAIL PROTECTED]> wrote: > I anwserd my own question, it was in the examples section > > http://www.djangoproject.com/documentation/models/m2o_recursive2/ > --~--~-~--~~~-

Re: Two ForeignKeys to the Same Model

2006-08-31 Thread alex kessinger
I anwserd my own question, it was in the examples section http://www.djangoproject.com/documentation/models/m2o_recursive2/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Django deployment tools?

2006-08-31 Thread gabor
[EMAIL PROTECTED] wrote: > Joseph Heck wrote: >> Have you used it for your own deploys? I'm curious how well it worked for >> you. > > I looked at it, but decided to roll my own tools for now. > hi... could you tell us what kind of tools did you write? because i'm also at a similar situation

Making sure a user has checked a checkbox ?

2006-08-31 Thread [EMAIL PROTECTED]
I am trying to implement the common use case of a form with an "I agree to these terms" checkbox. I'm not that interested in having that field in my model, so I create my own Manipulator, define the fields I want in the form (with the checkbox), then do validation against that Manipulator. If that

Re: python manage.py syncdb fails with assertion error

2006-08-31 Thread billybob
python 2.3.1 (mod_python 3.2.10) Django 0.95 Apache 2.2.3 mysql 4.0.20 bad RAM is possible, but this is the only funny thing happening on the box. Is it possibly a MySQL issue? thanks for any help or suggestions. --~--~-~--~~~---~--~~ You received this message

Re: why 'default' filter does't work?

2006-08-31 Thread HoLin
Thank you for your reply.  I think 'default' filter is not useful to me now. :(, I must add 'act' variable explicitly.     On 9/1/06, SmileyChris <[EMAIL PROTECTED]> wrote: Hi HoLin,I encountered that same problem - the functionality changed in [3268]so that filters aren't used if the variable is n

Re: group traffic

2006-08-31 Thread Gary Wilson
A Django forum would be another option. IMO, forums have more of a community feel, and are also probably a little more friendly for newbies. And, unlike with this mailing list, you would be able to reply to posts that are more than 30 days old. --~--~-~--~~~---~--~-

Re: foreignKey + manipulator...performance problem, SOLVED

2006-08-31 Thread [EMAIL PROTECTED]
Gábor Farkas wrote: > [EMAIL PROTECTED] wrote: > > What do you mean with "2000 thing objects"? Are there 2000 records in > > the database for that table, or did you have 2000 records in memory at > > runtime? > > > > if you don't use raw_id_admin, then (from my understanding at least), > the mani

Re: MySQL backend patch

2006-08-31 Thread [EMAIL PROTECTED]
I think, unfortunately, two branches is the way to go (<=4.1 and 5.0<=) - there are hosts out there who still provide 3.28, Debian sarge is 4.0.2. So - I guess the question is - what version of MySQL does Django's backend work with at the moment. I'm running the patch right now, and haven't seen

Rows in admin TextFields

2006-08-31 Thread Andrew Stoneman
I have the following model: class Fact(models.Model): text = models.TextField(core = True) newspost = models.ForeignKey(Newspost, edit_inline = models.TABULAR, num_in_admin = 5,