Re: Using HttpResponseNotModified

2007-03-11 Thread shevken
Ignore. On Mar 12, 12:39 pm, "shevken" <[EMAIL PROTECTED]> wrote: > Hi Guys, > > I do not want a certain view to refresh my html page. > > so I got this method, > > def silent_update(): ># Do secret stuff >return HttpResponseNotModified() > >

Re: Any known issues with ChangeManipulators and large objects?

2007-03-11 Thread Malcolm Tredinnick
On Mon, 2007-03-12 at 05:00 +, [EMAIL PROTECTED] wrote: > I was just wondering if there were any known issues regarding speed > with ChangeManipulators and large objects? > > I'm using custom ChangeManipulators successfully on about 50 pages > right now... but when I did an edit page for one

Re: Reversed edit_inline?

2007-03-11 Thread simonbun
Indeed, this feature is important to me too. I'm planning to implement it myself, but obviously only after the newforms admin is finished. I'll post it as a patch when it's done. regards, Simon On Mar 12, 1:11 am, "jfagnani" <[EMAIL PROTECTED]> wrote: > > I could add two foreignkey fields to

Re: Apache2 displays django app as a file list

2007-03-11 Thread Mikey
No, that didn't work either - I guess it would be helpful if someone could give me the correct settings for appache2 to run django 0.95 apps.- can someone point me to some examples? I've tried searching the net, but nothing seems to cover the basics... On Mar 11, 8:45 am, "Nathan R. Yergler"

django install on mac osx 10.4.8

2007-03-11 Thread [EMAIL PROTECTED]
Hi everybody, i'm trying to install django, i followe dthe instruction on the django web site but it doesn't work been looking around and the only tutorial that i yet understand ( sorry it's al a bit complicated for me ) require to install macport, which i'm not really keen on ( tried earlier

Re: User id foreign key

2007-03-11 Thread [EMAIL PROTECTED]
You have to do something like this in your model: user_created = models.ForeignKey(User, related_name="user_created") Then instead of saying User.entry_set .. I think its just user_created_set ... but not positive on that. You have to do this normally when you have two ForeignKeys on the same

Any known issues with ChangeManipulators and large objects?

2007-03-11 Thread [EMAIL PROTECTED]
I was just wondering if there were any known issues regarding speed with ChangeManipulators and large objects? I'm using custom ChangeManipulators successfully on about 50 pages right now... but when I did an edit page for one of my largest database tables ( about 50 columns... and about 20 of

address book imports of hotmail and aol

2007-03-11 Thread mobil
Hello guys I m trying to find a django/python address book export import tool for hotmail and aol thanks for any pointers Mobil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Using HttpResponseNotModified

2007-03-11 Thread shevken
Hi Guys, I do not want a certain view to refresh my html page. so I got this method, def silent_update(): # Do secret stuff return HttpResponseNotModified() --- But i got this error: Traceback (most recent call last): File

Re: debugging/breakpointing

2007-03-11 Thread [EMAIL PROTECTED]
I'm probably be getting way deep over my head in this since I'm not a Django user and stuff like command completion is a little bit open- ended. However pydb (http://bashdb.sf.net/pydb) has some support for command completion and at least tries to save it's history across sessions in a file

Re: Reversed edit_inline?

2007-03-11 Thread chasfs
ORM has been contentious for many years - for more background on the problems of ORM, check out Ted Neward's blog entry - http://blogs.tedneward.com/2006/06/26/The+Vietnam+Of+Computer+Science.aspx Peace, -chasfs --~--~-~--~~~---~--~~ You received this message

Chaining ManyToMany Filters Update

2007-03-11 Thread Boris Smus
Dear Djangoites, I ran into problems trying to chain multiple filters on a QuerySet with models in a many-to-many relationship. Based on the word from irc, and from perusal of the mailing list, it seems that this is a known issue. But the last ML post on it (that I could find) dates back to

Re: VB help!!

2007-03-11 Thread akonsu
i think i am going insane. On Mar 11, 9:19 pm, "Cynthia" <[EMAIL PROTECTED]> wrote: > Hello, > > I am very new in developing systems. So I am seeking help on how to > complete my system step-by-step. I am using Visual Basic 6. > Currently, > I have a form. In that form, I will need to input a

VB help!!

2007-03-11 Thread Cynthia
Hello, I am very new in developing systems. So I am seeking help on how to complete my system step-by-step. I am using Visual Basic 6. Currently, I have a form. In that form, I will need to input a Part Number (eg: 54556769) in the text box. Then I should tick to select in which database file I

Re: Django Automatic Page Refreshing

2007-03-11 Thread James Bennett
On 3/11/07, johnny <[EMAIL PROTECTED]> wrote: > I have an online seminar booking application. What I want to know is, > if 100 people are currently > viewing a room that holds max 200 people, and one person out of 100 > books the seat in the room, how do > I refresh all the 100 pages so that

Re: Reversed edit_inline?

2007-03-11 Thread jfagnani
> I could add two foreignkey fields to Address referencing Person and > Company respectively and allow both to be null. Or I could just remove > the Address class and move all address fields into both Person and > Company instead. But both these solutions are IMO uglier. I'm in the exact same

Re: Unique_together question

2007-03-11 Thread Ramiro Morales
On 3/11/07, Rob J Goedman <[EMAIL PROTECTED]> wrote: > > Any reason I can't combine these 2 fields to get a valid 'isUniqueday_sch' > in the AddManipulator? Full traceback at the end of the email. > This is a problem already reported. See tickets #526 and #2470, there is a workaround described

Re: catalog of django apps?

2007-03-11 Thread Jan Claeys
[Sorry for this late e-mail, I'm catching up with a mail backlog] On vr, 2007-02-16 at 17:42 +, James Tauber wrote: > Another aspect of this proposed "Hot Club of France" site would be a > catalog of open-source sites. If anyone ever makes such a site, then at least name it "Hot Club de

Re: newforms, choices and models

2007-03-11 Thread Massimiliano Ravelli
On 11 Mar, 15:09, enquest <[EMAIL PROTECTED]> wrote: > I'm using/learning the newforms... I got a model, in this model I have a > choices list ( ('1', 'foo'), ('2', 'bar' ) that are reprensented as > select box in the admin... > However when I import this class to the newforms >

Re: User id foreign key

2007-03-11 Thread Christian Hoeppner
Thanks a whole bunch! I got another error, saying like so: blog.entry: Accessor for field 'user_created' clashes with related field 'User.entry_set'. Add a related_name argument to the definition for 'user_created'. But I guess I can find out on my own. If anyone wants to reply for the sake of

Re: (x)html tags used to render newforms

2007-03-11 Thread James Bennett
On 3/11/07, Frédéric Roland <[EMAIL PROTECTED]> wrote: > I was discussing about layout of forms using CSS and heard that there > was some tags such as fieldset, label and legend that should allow us to > make the layout of forms without tables. Is there a reason these tags > aren't used to render

Re: (x)html tags used to render newforms

2007-03-11 Thread anders conbere
You can layout forms in django in which ever way you want. By default the generic views don't use tables, and newforms has several convenience functions that will display forms in a number of different styles (as_p, as_ul). These are all standard html (as well as xhtml) tags that should be

Re: Api and user auth

2007-03-11 Thread Grupo Django
Thank you for your help! I think I'll create a form to intorduce the news. Thank you. On 10 mar, 08:26, "risomt" <[EMAIL PROTECTED]> wrote: > Actually, what I said is a bit wrong. > > To fill the author field correctly you should use a foreign key that > points to the User model (again, assuming

Unique_together question

2007-03-11 Thread Rob J Goedman
Earlier I noticed the problem with edit_inline which is now fixed in svn. By the way, this was the very 1st time in 5 months a daily sync with svn caused an issue. Hats off to the developers! As I mentioned, I am trying to make 'day' and 'sch' unique_together in class ScheduleDayOfTheWeek.

Search Swish

2007-03-11 Thread Mary
I read on one of the posts here > At World Online, the search engine (lawrence.com/search, > ljworld.com/search) uses swish-e (http://swish-e.org/) to index files. [snip] > Hope that helps! It would be pretty cool to open-source this mini > search framework and pop it in django/contrib, but

(x)html tags used to render newforms

2007-03-11 Thread Frédéric Roland
Hi, I was discussing about layout of forms using CSS and heard that there was some tags such as fieldset, label and legend that should allow us to make the layout of forms without tables. Is there a reason these tags aren't used to render forms in Django ? Does it is hard to add them ?

Re: javascript issue

2007-03-11 Thread Mary
Ohh thank you very much it helps a lot :) On Mar 11, 5:55 pm, "akonsu" <[EMAIL PROTECTED]> wrote: > hello, > > i have several questions: > > 1. why do you have s;ash (/) before quotes in some places like > > > homebutton01up.src = /"media/images/welcome.jpg"; > > 2. what does "The script

Re: Apache2 displays django app as a file list

2007-03-11 Thread Nathan R. Yergler
I don't do tons of mod_python, but one thing that I immediately notice is that you're mod_python to handle the "/' location, but requesting the "/python" location. Does it work if you do http://mydom.net/ ? On 3/11/07, Mikey <[EMAIL PROTECTED]> wrote: > > I have mod-python working - I got a

Re: newforms, choices and models

2007-03-11 Thread Horst Gutmann
enquest schrieb: > Op zondag 11-03-2007 om 15:48 uur [tijdzone +0100], schreef Horst > Gutmann: >> enquest schrieb: >>> Second question: how can you add a password field from the newforms. you >>> can't define ("correct me if I'm wrong") a password field in the >>> model... And I don't see any

Apache2 displays django app as a file list

2007-03-11 Thread Mikey
I have mod-python working - I got a test page to work, but I can't seem to get apache to execute python code with in my django app. This is what I get when browsing to the django app.. http://www.mydom.net/python [DIR] Parent Directory - [ ] __init__.py

Re: javascript issue

2007-03-11 Thread akonsu
hello, i have several questions: 1. why do you have s;ash (/) before quotes in some places like > homebutton01up.src = /"media/images/welcome.jpg"; 2. what does "The script doesn't work" mean? i suspect it means the images are not shown. is this correct? 3. "django will not find the

Re: model validation

2007-03-11 Thread Greg Donald
On 3/10/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Validation happens on the strings submitted from a form, *before* they > are converted to Python objects (since there's no guarantee we can > convert them without error). We do not have model-aware validation at > the moment, but it is

Re: Django Automatic Page Refreshing

2007-03-11 Thread sphogan
There are two ways of doing this: 1) You can use a meta refresh so that every, say, 30 seconds, the page reloads itself. 2) You can use Ajax to lookup if someone has registered every 30 seconds and then update the display based on the new data (or not if there is no new data). Unfortunately,

Re: newforms, choices and models

2007-03-11 Thread enquest
Op zondag 11-03-2007 om 15:48 uur [tijdzone +0100], schreef Horst Gutmann: > enquest schrieb: > > > > Second question: how can you add a password field from the newforms. you > > can't define ("correct me if I'm wrong") a password field in the > > model... And I don't see any option to give a

Re: Testing Django App Running on Dev Server with Selenium

2007-03-11 Thread Paul Childs
Thanks for the suggestion Grig. I'll give it a shot on Monday. /Paul On 3/10/07, Grig <[EMAIL PROTECTED]> wrote: > > Paul -- have you tried running the Selenium RC server non- > interactively, then interacting with it via one of the languages it > supports? Python for example, since you're doing

Re: Django Automatic Page Refreshing

2007-03-11 Thread baasbartels
Not Django related, but well ... there you go The short answer is: don't. The longer answer is: Your room only holds 200 people, so at some point someone will be out of luck. You just need to make sure that if someone starts a serious attempt to book a seat (as opposed to just browsing around),

Re: newforms, choices and models

2007-03-11 Thread Horst Gutmann
enquest schrieb: > > Second question: how can you add a password field from the newforms. you > can't define ("correct me if I'm wrong") a password field in the > model... And I don't see any option to give a field a password field. > > How can I do this? > > Thanxs > I haven't really tried

newforms, choices and models

2007-03-11 Thread enquest
I'm using/learning the newforms... I got a model, in this model I have a choices list ( ('1', 'foo'), ('2', 'bar' ) that are reprensented as select box in the admin... However when I import this class to the newforms "forms.form_for_model(Gadget)" the choices arn't coming along and the field is

Django Automatic Page Refreshing

2007-03-11 Thread johnny
I have an online seminar booking application. What I want to know is, if 100 people are currently viewing a room that holds max 200 people, and one person out of 100 books the seat in the room, how do I refresh all the 100 pages so that they all have an updated version? Thank you.

javascript issue

2007-03-11 Thread Mary
I am implementing a website with Djnago and i have been facing certain issue with a javascript i don't know if this is the right place for the post or no but if any one can help it would be great The problem is that when i make the path of the images :/media/images/ the image The script doesn't

Re: ForeignKey fields in list_display

2007-03-11 Thread Gilhad
On Sunday 11 March 2007 10:19, Laurie wrote: > > > When I go to the admin page that lists all Test objects, Django hangs. > > > If I remove 'owner', from the list_display tuple, it works as > > > expected. > > > > > > Is this something that's not supported, or am I doing something > > > silly?

Template Problem

2007-03-11 Thread samira
Hi every Body, can any body help me? I want to have two folders for my templates. One it for general template and other for template related to member for example. How I can extend from general folder in member ? Regards Samira --~--~-~--~~~---~--~~ You received

Re: myghtyboard forum problem

2007-03-11 Thread zehi
Thank you Baxter, but could you specific as typing exact place (or in the particular sample) where to modify it? ... I know, it is quite dole from me, but I really want to avoid other mistake. I am guessing like this: The current: forum_topicsint44 Yes Change Drop

Re: search_fields: search is unrestricted

2007-03-11 Thread James Bennett
On 3/11/07, Laurie <[EMAIL PROTECTED]> wrote: > Ah, that might help if I can figure out where to call it from... Is > the list preserved across requests? Could I implement a view that I > could hit whenever I need to check 'what just happened to the > database'? The query list only lives as long

Re: How to define non-persisted attributes in Model

2007-03-11 Thread Horst Gutmann
Do you really need a CharField here or would a simply string variable be enough? So you could simply do something like class Message(models.Model): description = models.CharField(maxlength=200) author = models.ForeignKey(User) temp = "" and it should never get stored in the

Re: search_fields: search is unrestricted

2007-03-11 Thread Laurie
On Mar 11, 4:33 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 3/11/07, Laurie <[EMAIL PROTECTED]> wrote: > > > I don't think there's any way to get Django to log the SQL it's > > executing, so I don't know if it's issuing any 'WHERE x ILIKE y' type > > clauses, but functionally I'm not

Re: ForeignKey fields in list_display

2007-03-11 Thread Laurie
On Mar 11, 4:22 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2007-03-11 at 00:06 -0800, Laurie wrote: > > If I include a field which is a foreign key in my list_display admin > > option, Django hangs. When using 'manage.py runserver' I'm unable to > > get any further response from

Re: trying to make select_related() work

2007-03-11 Thread Atilla
On 09/03/07, akonsu <[EMAIL PROTECTED]> wrote: > > thanks for your response. > > well, i am trying to get a list of dependents of a given object in a > single query. i want to be able to retrieve the dependents by key (the > object name) from this list. > > i do not see any way of doing this but

Re: search_fields: search is unrestricted

2007-03-11 Thread James Bennett
On 3/11/07, Laurie <[EMAIL PROTECTED]> wrote: > I don't think there's any way to get Django to log the SQL it's > executing, so I don't know if it's issuing any 'WHERE x ILIKE y' type > clauses, but functionally I'm not getting search filtering. When the DEBUG setting is True, Django keeps a

Re: ForeignKey fields in list_display

2007-03-11 Thread Malcolm Tredinnick
On Sun, 2007-03-11 at 00:06 -0800, Laurie wrote: > If I include a field which is a foreign key in my list_display admin > option, Django hangs. When using 'manage.py runserver' I'm unable to > get any further response from the app once this happens. > > Here's an example: > > class

search_fields: search is unrestricted

2007-03-11 Thread Laurie
If I set the Admin option 'search_fields' the admin interface gives me a search field, but when I use it, I always get all objects. The search criteria don't seem to be applied. I don't think there's any way to get Django to log the SQL it's executing, so I don't know if it's issuing any 'WHERE

Re: 'table per sub-class' mapping strategy

2007-03-11 Thread Malcolm Tredinnick
On Sun, 2007-03-11 at 04:46 +, Laurie wrote: [...] > I'm > having some trouble using the relationship. Using the example models > from the 'One-to-one relationships' page: > > p = Place(name="p1",address="...") > r = Restaurant(place=p,serves_hot_dogs=True,serves_pizza=True)r.place >

ForeignKey fields in list_display

2007-03-11 Thread Laurie
If I include a field which is a foreign key in my list_display admin option, Django hangs. When using 'manage.py runserver' I'm unable to get any further response from the app once this happens. Here's an example: class Test(models.Model): name = models.CharField(maxlength=100) owner =