Re: problem parallel query horizontal sharding postgres pgpool-II django

2009-06-27 Thread Russell Keith-Magee
On Sun, Jun 28, 2009 at 12:40 AM, wrote: > > > Hey > thanks for pgpool2 ... > Please point me to solutions The first step would be to ask on the appropriate mailing list. This is the Django users mailing list. Your problem, and all the traces and messages you have provided, are related to pgpool

Re: Weird disappearing apps issue

2009-06-27 Thread Alex Gaynor
On Sat, Jun 27, 2009 at 8:34 PM, Daniele Procida wrote: > > I've encountered a problem with apps that disappear from Django's view. > It's happened to several of them, and has happened again just now after > I managed to get them back. > > I was testing an app called 'research' - it appeared in th

Weird disappearing apps issue

2009-06-27 Thread Daniele Procida
I've encountered a problem with apps that disappear from Django's view. It's happened to several of them, and has happened again just now after I managed to get them back. I was testing an app called 'research' - it appeared in the admin, and I was able to open both models there. Then I added th

newbee questions and djapian

2009-06-27 Thread fruity
Hi to the list, I'm new to django, I was following the installation/setup instruction for djapian and I don't get what is the mechanism to say "the contents(title content author) from the model (for example) of django.contrib.flatpages. Is that what is defined in the docs as subclassing? In the

Re: Tagging, parse_lookup what is the Right current method to implement "tagging"

2009-06-27 Thread dartdog
Thanks I had seen the note but had not yet gone down that path,,, I'll report back. It still surprises me that the tagging module does not live with the rest of Django as opposed to within Python. Thanks for the quick reply! On Jun 27, 5:14 pm, Karen Tracey wrote: > On Sat, Jun 27, 2009 at 5:4

Re: Coding for arbitrary additional fields of a certain type

2009-06-27 Thread lzantal
Hi, On Jun 27, 2009, at 10:55 AM, "Daniele Procida" wrote: > > I am wondering what sort of coding/storage approach to take to manage > contact details in a more sophisticated way. > > For example, one person might need: > > Phone (London): xxx x > Phone (Edinburgh): xxx xx > > and anot

Re: Tagging, parse_lookup what is the Right current method to implement "tagging"

2009-06-27 Thread Karen Tracey
On Sat, Jun 27, 2009 at 5:46 PM, dartdog wrote: > > Old topic but don't really get the solution... > I'm using SVN 1.1 Django > and Python 2.6 On win Vista > I downloaded tagging and it now sits in my Site-Packages directory for > Python I used Tagging 0.2.1 win 32exe from Google code There's a

Tagging, parse_lookup what is the Right current method to implement "tagging"

2009-06-27 Thread dartdog
Old topic but don't really get the solution... I'm using SVN 1.1 Django and Python 2.6 On win Vista I downloaded tagging and it now sits in my Site-Packages directory for Python I used Tagging 0.2.1 win 32exe from Google code It seems very strange to me that this Django package chooses to live in

Is IP address caching built into the Django Framework?

2009-06-27 Thread links_awakening
If users can click "vote up" on my site, I want to prevent them from clicking "vote up" multiple times. To do this, I would check whether their IP has clicked "vote up" in the past 24 hours. Thus, I am curious whether Django helps with this sort of problem, or if anyone has solved this using Dja

Re: Setting up Django, Apache and Nginx on Windows Vista

2009-06-27 Thread Ariel Nunez
On Sat, Jun 27, 2009 at 12:09 PM, Duvalfan23 wrote: > > Well I actually have Wubi (Ubuntu inside Windows) on my computer, but > do not feel nearly as comfortable as Windows since Ive been using > Windows for years. I also have all of my development tools on Windows > that Ive purchased. I do not

Re: objects in memory that don't time out?

2009-06-27 Thread qwcode
> Why not just have a global in your view.py? right, after looking through the wsgi doc provided above, I feel ok with doing that now. I just have to be mindful of different instances of the globals can exist across processes. In other frameworks, e.g. Spring for Java, they provide a singleton

models.ManyToManyField subclass, problem with getting values by form.

2009-06-27 Thread Vladimir Shulyak
Hello, I am trying to develop sublcass of models.ManyToManyField. This class should return text representations of objects to forms.TextField (like TagField from django-tagging). The reason to make my own representation is because: - I don't need content types - I need "front face" to ManyToManyF

Fwd: problem parallel query horizontal sharding postgres pgpool-II django

2009-06-27 Thread mobiledreamers
Hey thanks for pgpool2 i did read both extensively, but finishing all the steps parallel mode or horizontal partitioning mode doesnot work! but this is my conf file # backend_hostname, backend_port, backend_weight # here are examples backend_hostname0 = 'localhost' backend_port0 = 5432 backend_

Re: Setting up Django, Apache and Nginx on Windows Vista

2009-06-27 Thread Duvalfan23
Well I actually have Wubi (Ubuntu inside Windows) on my computer, but do not feel nearly as comfortable as Windows since Ive been using Windows for years. I also have all of my development tools on Windows that Ive purchased. I do not get as good of productivity on Linux since Im not as used to it

Re: Coding for arbitrary additional fields of a certain type

2009-06-27 Thread Alex Gaynor
On Sat, Jun 27, 2009 at 12:55 PM, Daniele Procida wrote: > > I am wondering what sort of coding/storage approach to take to manage > contact details in a more sophisticated way. > > For example, one person might need: > > Phone (London): xxx x > Phone (Edinburgh): xxx xx > > and another:

Coding for arbitrary additional fields of a certain type

2009-06-27 Thread Daniele Procida
I am wondering what sort of coding/storage approach to take to manage contact details in a more sophisticated way. For example, one person might need: Phone (London): xxx x Phone (Edinburgh): xxx xx and another: Phone (office): xxx Phone (laboratory): xxx Phone (mobile): xxx

Paginating differently on first page

2009-06-27 Thread efcjoe
Hey, I've come across an interesting problem that I can't figure out. It's fairly simple to explain though. Currently, I'm using object_list to handle pagination. Problem is, I need it to paginate by 7 on the first page, and then paginate by 10 on all the other pages. I've been trying to figure

Re: Error on doing tutorial

2009-06-27 Thread Stephen Garton
2009/6/27 Karen Tracey : > FYI, there's a "switch to copy and paste" link which makes the debug > information less verbose and gives you something you can paste into an > email. > Cheers, will use in future. > > What about Python level?  You've got a mixture of what appears to be Python > 2.5,

Re: Using a manipulator with ModelForms

2009-06-27 Thread paul_tanner
Sorry, after googling some more the glaringly simple solution revealed itself form=NoteForm(initial={'organisation': oid}) Shame I found that cookbook item in the first place - complete red herring. Paul On Jun 27, 11:03 am, paultanner wrote: > Whilst I appreciate that hidden fields can be le

Re: Error on doing tutorial

2009-06-27 Thread Karen Tracey
On Sat, Jun 27, 2009 at 7:04 AM, sheepeatingtaz wrote: > > Hi All, > > I'm new to django, and am working through the tutorial on the > djangoproject site (http://docs.djangoproject.com/en/dev/intro/ > tutorial02/#intro-tutorial02

Error on doing tutorial

2009-06-27 Thread sheepeatingtaz
Hi All, I'm new to django, and am working through the tutorial on the djangoproject site (http://docs.djangoproject.com/en/dev/intro/ tutorial02/#intro-tutorial02) When I try to edit or create a Poll from the admin page, I get an error. As the debug mode is quite verbose, I've posted the out put

how to disable URL auto-completion

2009-06-27 Thread hugo
Hi everyone, I passed a complete URL as argument to an html template hoping Django will take the URL as it is; that is, for example, if the code in my html template is Click this I want "Click this" to have hyperlink "myURL". However, the link produced by the code above became http://mySite

Re: switching menu items on and off - dynamic urls?

2009-06-27 Thread Kenneth Gonsalves
On Friday 26 June 2009 21:19:30 Rajesh D wrote: > > I have a conference management application. It has a list of menu items > > on the lefthand side. These menus are created by a templatetag from a > > list of menus in views.py. At various stages of the conference, menu > > items have to be enable

Using a manipulator with ModelForms

2009-06-27 Thread paultanner
Whilst I appreciate that hidden fields can be less than ideal in some cases I want to set default values in a form generated from a model. http://code.djangoproject.com/wiki/CookBookManipulatorWithHiddenFields gives some guidance but this approach appears to be deprecated in django 1.02 (and the

Re: how to call a view from inside a decorator?

2009-06-27 Thread Kenneth Gonsalves
On Saturday 27 June 2009 15:03:05 Kenneth Gonsalves wrote: > On Saturday 27 June 2009 13:49:28 Brian May wrote: > > On Sat, Jun 27, 2009 at 01:17:42PM +0530, Kenneth Gonsalves wrote: > > > decorator--- > > > > > > class menu_enabled(object): > > > def __init__(self,menu

Re: how to call a view from inside a decorator?

2009-06-27 Thread Kenneth Gonsalves
On Saturday 27 June 2009 13:49:28 Brian May wrote: > On Sat, Jun 27, 2009 at 01:17:42PM +0530, Kenneth Gonsalves wrote: > > decorator--- > > > > class menu_enabled(object): > > def __init__(self,menuname): > > self.menuname = menuname > > > > def __c

Re: how to call a view from inside a decorator?

2009-06-27 Thread Brian May
On Sat, Jun 27, 2009 at 01:17:42PM +0530, Kenneth Gonsalves wrote: > decorator--- > > class menu_enabled(object): > def __init__(self,menuname): > self.menuname = menuname > > def __call__(self,f): > def wrapper(*args,**kwargs): >

Help w/ Newforms Trouble

2009-06-27 Thread Dylan Lorimer
Hi, I have a newform that works as intended. I want to add admin functionality such that within the same view I can handle creation of a newform or passing back a model's values to the template for editing. This is supposed to be simple with newforms but I'm stuck, hoping for help. Here is my si

how to call a view from inside a decorator?

2009-06-27 Thread Kenneth Gonsalves
hi, django latest trunk. my first foray into writing a decorator for a view. My problem is that I get this error message when the view is called: The view conference.web.views.wrapper didn't return an HttpResponse object The decorator is: decorator--- class menu_enab