Re: book recommendations?

2006-07-09 Thread Jeremy Dunck
On 7/9/06, char <[EMAIL PROTECTED]> wrote: > I'm pretty familiar with back-end web technologies and I'm coming up to > speed on Django pretty well but my knowledge of client-side web > development is set squarely in 1997. Does anyone have any good book > recommendations for coming up to speed on

book recommendations?

2006-07-09 Thread char
I'm pretty familiar with back-end web technologies and I'm coming up to speed on Django pretty well but my knowledge of client-side web development is set squarely in 1997. Does anyone have any good book recommendations for coming up to speed on modern web development?

Re: Using admin as the user interface

2006-07-09 Thread Kenneth Gonsalves
On 10-Jul-06, at 2:22 AM, Akatemik wrote: > The admin interface is almost perfect to this as it has powerful ways > to manage and add new items (most notably handling the foreign keys > and > ManyToManys with a nice JS widget). There are only some > modifications I > would need to do,

Partial change manipulator

2006-07-09 Thread Greg
I've got a question please. I built an edit page for a model using the autogenerated ChangeManipulator, and that worked great but now I need to add some more fields to the model (including CharFields and a ManyToManyField) and I don't want to put the new fields on this edit page. Is there a way

Re: Partial change manipulator

2006-07-09 Thread Greg
Oh, I forgot to mention, the app I'm working on hasn't been ported to post-magic-removal yet. (Although I'm curious what the post-magic-removal answer is, too.) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Problem with middleware

2006-07-09 Thread Ian Holsman
Hi Gullermo.I've done the same thing here:http://svn.zyons.python-hosting.com/trunk/zilbo/common/utils/middleware/lastseen.pyby the looks of it you are forgetting to actually store it.ie      request.session['sysvortex_last_visit'] =  datetime.datetime.now() cheersIan.On 09/07/2006, at 11:56 PM,

Re: unique and blank/null

2006-07-09 Thread Malcolm Tredinnick
Forwarded Message From: Malcolm Tredinnick <[EMAIL PROTECTED]> To: Kilian CAVALOTTI <[EMAIL PROTECTED]> Subject: Re: unique and blank/null Date: Mon, 10 Jul 2006 09:26:41 +1000 On Sun, 2006-07-09 at 18:33 +0200, Kilian CAVALOTTI wrote: > On Saturday 08 July 2006 02:52, Malcolm

Re: User never logs out

2006-07-09 Thread Derek Hoy
On 7/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: ... > The problem is that when I click on the browser's back button, > user.is_anonymous returns False, therefore the user is infact logged > in. To make things worse, if I manually type in the URL for the index > page after logging out, the

Re: Weird index/urls.py behaviour

2006-07-09 Thread Adrian Holovaty
On 7/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm also tinkering with the urls.py file. I have an index view which is > working perfectly, and in my urls.py I have the following: > > from django.conf.urls.defaults import * > > urlpatterns = patterns('project.app.views', >

Re: Announce: Django Performance Monitoring

2006-07-09 Thread Ian Holsman
Thanks Jeremy. I'll add that feature shortly. On 10/07/2006, at 6:06 AM, Jeremy Dunck wrote: > > On 7/9/06, Ian Holsman <[EMAIL PROTECTED]> wrote: >> you can find out more about it here: http://zilbo.com/@perfmon > > On the log detail screen, and if the response MIME is > browser-renderable

Using admin as the user interface

2006-07-09 Thread Akatemik
Hi all, I'm making a distributed library database, a library where the books are owned by the users and everybody borrows from others. The admin interface is almost perfect to this as it has powerful ways to manage and add new items (most notably handling the foreign keys and ManyToManys with a

Re: Understanding FKs vs JOIN

2006-07-09 Thread Jeremy Dunck
On 7/8/06, bradford <[EMAIL PROTECTED]> wrote: > > I have a Model Foo, with a FK to user. > > if i do f = Foo.objects.get(id=1) and all i need from that is f.title > and j.user.username in my template... is it returning more info than > needed with User. I mean, is it getting the entire user

Re: Announce: Django Performance Monitoring

2006-07-09 Thread Jeremy Dunck
On 7/9/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > you can find out more about it here: http://zilbo.com/@perfmon On the log detail screen, and if the response MIME is browser-renderable (html or so), you can throw the response content into an IFrame using a data URL for added goodness:

User never logs out

2006-07-09 Thread [EMAIL PROTECTED]
Hi everyone, I'm following several tips from the Django Documentation on how to provide login/logout functionality to users. In my urls.py I've added the necessary redirects for django.contrib.auth.login and logout methods, along with my two templates for each view. Starting at the index view,

Weird index/urls.py behaviour

2006-07-09 Thread [EMAIL PROTECTED]
Hi again, I'm also tinkering with the urls.py file. I have an index view which is working perfectly, and in my urls.py I have the following: from django.conf.urls.defaults import * urlpatterns = patterns('project.app.views', (r'^$','index'), ) The problem with this is that no matter what

Re: Problem with middleware

2006-07-09 Thread Don Arbow
On Jul 9, 2006, at 6:56 AM, Guillermo Fernandez Castellanos wrote: > > class IpMiddleware: >def _add_ip(this_ip): > # Adds IP and Visit to database >[...] >def process_view(self, request, view_func, view_args, view_kwargs): >

Re: unique and blank/null

2006-07-09 Thread Kilian CAVALOTTI
On Saturday 08 July 2006 02:52, Malcolm Tredinnick wrote: > You cannot store NULL values via the admin interface. The reason for > this is that a web interface is poorly designed as far as being able to > differentiate between an empty string and a NULL. If the field is blank, > which one did you

Is it worth caching results obtainable via SQL?

2006-07-09 Thread Paul
Hi, My application has a subscription model. Users can subscribe to objects, and these subscriptions are contained in a ManyToMany field in a per-user object e.g. class UserProfile(models.Model): """Extra fields to add to the User Model""" related_user =

Problem with middleware

2006-07-09 Thread Guillermo Fernandez Castellanos
Hi, Seems like last time I was not that clear, so here is what I want to do: I want to keep track of the users that visit my site, keeping in the DB what IP addresses visited my site, when, ... I define a visit as a click on one of my pages, given that this visit is done a certain time after the

Re: FileBrowser Test Version

2006-07-09 Thread favo
It's very cool, open svn address is better:-) --~--~-~--~~~---~--~~ 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,

Announce: Django Performance Monitoring

2006-07-09 Thread Ian Holsman
Perform is a tool to help you diagnose your performance and QA issues within your Django application.you can find out more about it here: http://zilbo.com/@perfmonI've decided to charge $20 for it. People using it for debugging open source projects can get it for free. regardsIan

Re: Don't make me wait!

2006-07-09 Thread Ian Holsman
I actually started writing a queueing system a while back (and lost it during a hard drive crash) I recommend you look at hugo's stuff.jobcontrol package https:// simon.bofh.ms/django-projects/stuff/trunk/jobcontrol/ as a base. regards Ian On 09/07/2006, at 6:07 PM, wiz wrote: > > On

Re: Don't make me wait!

2006-07-09 Thread wiz
On 7/6/06, Tyson Tate <[EMAIL PROTECTED]> wrote: > > Why not put the messages in the database and read it from other side? > I'm not sure I understand what you mean. Do you mean that I should > take the API call responses and read them from the user-side with > AJAX? I hope that's not what you

Re: Cannot use the save() correctly

2006-07-09 Thread william
Thanks Malcome, I was thinking of a kind of dispatch.connect "related-pre-save" and "related-post-save" for the manytomany related data. A bit like the existing "pre-save" and "post-save". The idea to look at the manipulator is not bad too. I'll investigate it, thanks. Malcolm Tredinnick