Re: PostGIS 2.0.0 problems

2012-08-03 Thread Will Tuladhar-Douglas
Folks, I just checked and I'm running Postgres 9.1 and Postgis 2.0SVN with GeoDjango (on Mac OSX 10.7.4) . I'm not doing anything very exciting with GeoDjango so far, so perhaps there are problems I haven't encountered, but it does run, and it is possible to encode locations using the

Re: Form Wizard usable with branching?

2012-08-03 Thread mtnhiker
Answering my own question... I debugged my brain a bit and got something working with branching. Here's my interpretation of my brain bug. First a "step" is not something attached to a particular form. Its the index in a sequence. The same form might be step 2 with one branching structure

Form Wizard usable with branching?

2012-08-03 Thread mtnhiker
I think I must be missing something. To me a wizard should provide questions and branch according to the answers (otherwise why not just put it all in one form?). I've searched the docs and web and source, but I don't find anything that lets me branch. I thought the "condition_dict" of the

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Karen Tracey
On Fri, Aug 3, 2012 at 11:12 AM, Anoop Thomas Mathew wrote: > With my heartfelt condolence, I'd like to inform you all the unfortunate > demise of Mr.Kenneth Gonsalves (KG - law...@thenilgiris.com), who was a > strong advocate of Python, Django and Free Software in India. > He

Re: favourite reusable apps

2012-08-03 Thread Russell Keith-Magee
A suggestion: Rather than a mailing list thread, drop into djangopackages.com It's a community site specifically aimed at cataloging Django apps according to what they do, and how popular they are. Yours, Russ Magee %-) On Sat, Aug 4, 2012 at 8:28 AM, jondykeman wrote: >

favourite reusable apps

2012-08-03 Thread jondykeman
Hi Everyone, I have found when getting into Django that at least once a month I find a reusable app that replaces the need for what I had spent the last ~2 weeks figuring out how to write myself. As such, I thought it might be nice to start a thread of everyone's favourite / most useful

Re: [] Resubmit on error middleware

2012-08-03 Thread Paul Pietkiewicz
I've written my own middleware class with a process_exception method to capture the exception, and remedy the underlining condition which caused the exception. The point is to transparently resubmit the request without actually returning anything to the client. Basically to retry the entire

Re: PostGIS 2.0.0 problems

2012-08-03 Thread Christophe Pettus
On Aug 3, 2012, at 3:55 PM, Thomas Lockhart wrote: > Really? What is the use case requiring a version 2.0.0? PostGIS 2.0 has a lot of stuff in it, including things like KNN indexes; those alone are worth upgrading for. > And typically folks don't jump on a x.0.0 of anything, expecting to see

Re: PostGIS 2.0.0 problems

2012-08-03 Thread Thomas Lockhart
On 8/3/12 3:39 PM, Oleg Korsak wrote: looks like GeoDjango is dead, it is not solved for almost half of the year Really? What is the use case requiring a version 2.0.0? Seems that the previous 1.x version works as advertised. And typically folks don't jump on a x.0.0 of anything, expecting to

Re: PostGIS 2.0.0 problems

2012-08-03 Thread Oleg Korsak
looks like GeoDjango is dead, it is not solved for almost half of the year четверг, 19 июля 2012 г., 21:23:03 UTC+3 пользователь Dominique Guardiola Falco написал: > > > Is there a tutorial describing how to do this somewhere please ? > Because right now, geodjango is unusable with PostGreSQL 9

showing a second level of indirection in an admin change_form page

2012-08-03 Thread Tomas Neme
Anyone knows of any trick that will let me show a second-level indirection inline via a one2one, so ModelA <-FK- ModelB <-one2one- ModelC, and show A, B-C-B-C-B-C kind of thing? Maybe I can override the get_formsets in the admin? -- "The whole of Japan is pure invention. There is no such

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Daniel Roseman
On Friday, 3 August 2012 16:12:35 UTC+1, atm wrote: > > With my heartfelt condolence, I'd like to inform you all the unfortunate > demise of Mr.Kenneth Gonsalves (KG - law...@thenilgiris.com), who was a > strong advocate of Python, Django and Free Software in India. > He had served as the

Re: .filter(Q(childobj__attr1="something", childobj__attr2__gte=100)) and .filter(~Q(childobj__attr1="something", childobj__attr2__gte=100)) Don't Produce Opposite Results

2012-08-03 Thread Kurtis Mullins
Let's write this in logical notation models.ParentObj.objects.filter(Q(childobj__attr1="something", > childobj__attr2__gte=100)).count() A AND B This query should give you all objects where both attr1="something" is true AND attr2_gte=100 is true. Does this sound right from the data you have

Re: Registering only folks with .org email

2012-08-03 Thread Kurtis Mullins
Hey Steve, There's a number of ways you could go about tackling this task. I, typically, would read the original's application code and first determine how it worked. In some cases, I would write my code to subclass (or re-use) theirs and just make the modifications required. Other times,

RE: [] Resubmit on error middleware

2012-08-03 Thread Henrik Genssen
you could return a HttpResponseRedirect and handle your error on a different url or write your own error middleware... for some ideas on error middleware see see: https://bitbucket.org/ashcrow/django-error-capture-middleware/wiki/Home regards Henrik >reply to message: >date: 03.08.2012

Re: object.create speed, creating 3 objects takes 1 sec in sqlite

2012-08-03 Thread Kurtis Mullins
If you plan to create a batch of objects, I wouldn't recommend going that route. Instead, check this out: https://docs.djangoproject.com/en/dev/howto/initial-data/ Has Django really such a bad performance for data insertion? The Object Relational Mapper does quite a bit more than simply write

Resubmit on error middleware

2012-08-03 Thread Paul Pietkiewicz
Hello All, Is it possible to have a process_exception on handling an exception resubmit the request, instead of either returning a HttpResponse or None back to the user? Is there a clean way to redirect the response back to the view? Thanks, Paul -- You received this message because you are

Registering only folks with .org email

2012-08-03 Thread Steve
I am very new to Django but I like it a lot. I learned about the registration plugin and I am trying to modify it such that only the individuals who have and can validate an email with .org address can register. I was wondering if someone could point me in the right direction in terms of how

.filter(Q(childobj__attr1="something", childobj__attr2__gte=100)) and .filter(~Q(childobj__attr1="something", childobj__attr2__gte=100)) Don't Produce Opposite Results

2012-08-03 Thread Matthew Kremer
Having trouble figuring this one out. class ParentObj: id = UUIDField(primary_key=True) class ChildObj: id = UUIDField(primary_key=True) parent = models.ForeignKey(ParentObj) attr1 = models.CharField(max_length=128) attr2 = models.IntegerField() If you filter one table based on it's children

Re: Sample Django template scrolling table

2012-08-03 Thread Kurtis Mullins
Can you clarify by what you mean when you say "scroll through the table back and forth"? This is pretty easy to implement using CSS/HTML and isn't relevant to Django in particular -- but maybe I'm simply misunderstanding your question :) On Fri, Aug 3, 2012 at 3:08 PM, Charles Norton

Sample Django template scrolling table

2012-08-03 Thread Charles Norton
I would like to create a simple table in a Django template that can scroll. I am interested in finding a sample from which I can learn. If someone would point me to a sample, I would appreciate it. The application would be having a 10 line table, 55 water meter information rows, and being

Re: Detecting browser type after login

2012-08-03 Thread Larry Martell
On Thu, Aug 2, 2012 at 8:15 PM, Melvyn Sopacua wrote: > On 1-8-2012 21:52, Larry Martell wrote: >> On Wed, Aug 1, 2012 at 1:38 PM, Kurtis Mullins >> wrote: >>> Sorry for the double-message. Anyways, if you do want to do what that other >>> person

Fwd: [BangPypers] Kenneth Gonsalvas a short bio

2012-08-03 Thread Venkatraman S
More on KG : -- Forwarded message -- From: JAGANADH G Date: Fri, Aug 3, 2012 at 10:45 PM Subject: [BangPypers] Kenneth Gonsalvas a short bio To: ILUG-C , chenna...@googlegroups.com, ilug...@googlegroups.com, Indian Python Software Society

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Javier Guerra Giraldez
On Fri, Aug 3, 2012 at 10:12 AM, Anoop Thomas Mathew wrote: > With my heartfelt condolence, I'd like to inform you all the unfortunate > demise of Mr.Kenneth Gonsalves (KG - law...@thenilgiris.com), who was a > strong advocate of Python, Django and Free Software in India.

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Cal Leeming [Simplicity Media Ltd]
Ah jeez... he was a good guy too, always keen to help others - really sorry to hear this news. Another harsh reminder on just how short and precious our time in this life really is :/ Cal On Fri, Aug 3, 2012 at 4:12 PM, Anoop Thomas Mathew wrote: > With my heartfelt

Django+Ajax+jquery

2012-08-03 Thread Rishabh Dixit
Someone please give some solution to this stack overflow question- http://stackoverflow.com/questions/11706721/updating-a-button-value-database-and-call-a-view-function-without-refreshing-th -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: DRYing up my forms.py

2012-08-03 Thread Lee Hinde
On Aug 3, 2012, at 9:01 AM, Melvyn Sopacua wrote: > On 3-8-2012 17:37, Lee Hinde wrote: > >> self.fields['photo_response'].widget.attrs["class"] = 'date-field >> input-small' >> self.fields['photo_response'].widget.format = '%m-%d-%Y' >> >> >> is there a way to

Re: TinyMCE config

2012-08-03 Thread Jonathan Baker
Success! Thanks for all the help. After integrating your app with the FlatPage app I was able to integrate it with FlatBlock as well. If you're up for it, I'd love to help update the documentation to save future users (and yourself) some time with the issues I ran in to. JDB On Fri, Aug 3, 2012

object.create speed, creating 3 objects takes 1 sec in sqlite

2012-08-03 Thread Anton
Hi I am new to Django. I worked through the tutorial. I created a small test app on: - Win7 64bit - python 2.7.3 (32bit) - Django 1.4.1 - using the development server Now I wanted to populate the (sqlite backend) database with a python script. My Problem: I Insert 3 Object (like

Re: DRYing up my forms.py

2012-08-03 Thread Melvyn Sopacua
On 3-8-2012 17:37, Lee Hinde wrote: > self.fields['photo_response'].widget.attrs["class"] = 'date-field input-small' > self.fields['photo_response'].widget.format = '%m-%d-%Y' > > > is there a way to consolidate this sort of thing, such that if a field > is a date field, it always gets these

DRYing up my forms.py

2012-08-03 Thread Lee Hinde
I have a lot of this throughout my forms.py files: self.fields['verification_date'].widget.attrs["class"] = 'date-field input-small' self.fields['verification_date'].widget.format = '%m-%d-%Y' self.fields['mail_response'].widget.attrs["class"] = 'date-field input-small'

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Chris Czub
RIP, Kenneth. He was one of the primary contributors to this list and his contributions will be missed. Condolences go out to all of his friends and family. On Fri, Aug 3, 2012 at 11:20 AM, Anoop Thomas Mathew wrote: > Chronic Asthma. He was hospitalized yesterday, and passed

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Anoop Thomas Mathew
Chronic Asthma. He was hospitalized yesterday, and passed away today. On 3 August 2012 20:45, Marcin Tustin wrote: > What happened to him? He was posting on this list in the last week? > > On Fri, Aug 3, 2012 at 11:12 AM, Anoop Thomas Mathew wrote:

Re: Issue Deploying Django

2012-08-03 Thread Kurtis Mullins
With Cloud Servers, yes -- you do get Root access. It's basically the equivelant of a VPS that you can easily spawn, scale, and replicate as needed. Without root access on servers, virtual environments only get you so far. What happens when you need to install Python imaging library but they

Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Anoop Thomas Mathew
With my heartfelt condolence, I'd like to inform you all the unfortunate demise of Mr.Kenneth Gonsalves (KG - law...@thenilgiris.com), who was a strong advocate of Python, Django and Free Software in India. He had served as the President of IPSS(Indian Python Software Society), which initiated the

Re: How to print a graph

2012-08-03 Thread Frank Stüss
what exactly is your "error"? Is your matplotlibrc correct? If you will be using matplotlib maybe this example from an data application i wrote may help you: def calculate_myPic(my_args): fig = figure(figsize=parameter.figsize) plotarea = fig.add_subplot(111) # for my thing #

Re: Issue Deploying Django

2012-08-03 Thread JJ Zolper
>Agreed that virtualenv will allow you to install python packages - however not any linux/unix packages. I have no problems using >Django on Dreamhost. http://dashdrum.com/blog/2011/08/django-on-dreamhost/ Thanks for the advice I will look into dreamhost too! On Fri, Aug 3, 2012 at 8:24 AM,

Re: Issue Deploying Django

2012-08-03 Thread JJ Zolper
Yes when I saw no root privleges I realized very soon that I either have to get a new host that has what I need installed or get my own box and full control. With virtualenv I can install the packages on bluehost? On Thu, Aug 2, 2012 at 10:34 PM, Trevor Joynson wrote: >

Re: Issue Deploying Django

2012-08-03 Thread JJ Zolper
Yeah I've been looking into webfaction. Any information would be great thanks William! Only issues I would forsee is the root control. That is unless they have all that I need but at the same time I think I would lean to having root over not. Also I'm on a shared hosting right now and it's pretty

Re: presenting a manytomany relationship in a tabular way

2012-08-03 Thread goabbear
Hi, thanks for the links, I have look at these docs but I can't figure out how to mix actions with a spreadsheet like presentation :-/ Is it possible to create admin forms like we can standards forms? Another way I could try is to use filter_horizontal (I like this presentation), but for a m2m

Re: Issue Deploying Django

2012-08-03 Thread Dan Gentry
Agreed that virtualenv will allow you to install python packages - however not any linux/unix packages. I have no problems using Django on Dreamhost. http://dashdrum.com/blog/2011/08/django-on-dreamhost/ On Thursday, August 2, 2012 10:34:35 PM UTC-4, trevorj wrote: > > You are trying to

Re: QuerySet API - istartswith - use UPPER instead of ILIKE with PostgreSQL backend

2012-08-03 Thread Karen Tracey
On Wed, Aug 1, 2012 at 1:03 PM, Naoko wrote: > QuerySet API - istartswith - use UPPER instead of ILIKE with PostgreSQL > backend > which conflict with Documentation ( > https://docs.djangoproject.com/en/dev/ref/models/querysets/) > as documentation's example shows SQL

Re: TinyMCE config

2012-08-03 Thread Aljoša Mohorović
documentation is not completely updated so steps in previous emails are correct. i won't be available until next week but check second snippet under: http://django-tinymce.readthedocs.org/en/latest/usage.html#the-flatpages-link-list-view and be sure that you have something like: """

oauth2 issue with Django + Google Analytics API integration

2012-08-03 Thread Sithembewena Lloyd Dube
Hi all, I am converting a site from PHP to Python and pulling stuff from the Google Analytics API using their new Python client library and oauth2. I'm having an issue with oauth2 authentication where the redirect URI specified in my client_secrets.json file is not recognised. The API seems to be