Re: In Apache Configuration, What Replaces mod_python

2011-01-24 Thread Patrick McDonnell
On Mon, Jan 24, 2011 at 10:10 AM, octopusgrabbus wrote: > I'm trying to reconfigure to mod_wsgi and am wisely starting with a > workstation. > > If I'm understanding you correctly, you're trying to migrate from using apache/mod_python to serve your Django project to apache/mod_wsgi, right? If this

Re: model array to javascript

2011-01-24 Thread Patrick McDonnell
I would recommend first converting it to an intermediary format, such as JSON or XML, as described here: http://docs.djangoproject.com/en/1.2/topics/serialization/ You can then use JavaScript to easily manipulate it in whatever way you want. This is basically the approach I take when doing AJAXy

Re: 'unique' field upon inserting

2011-01-25 Thread Patrick McDonnell
On Tue, Jan 25, 2011 at 10:28 AM, Jonas Geiregat wrote: > The id field (which is added by django by default has this) other then that > the field doesn't have unique=True > > I was also thinking of a better solution. > > I have a Gig model which contains gigs with a ForeignKey to Artist. > I have

Simple Django Report Generator

2011-03-10 Thread Patrick McDonnell
Hello - I'm wondering if anyone has any suggestions/recommendations for a flexible Django report generator. Basically, I'd like to give user's the ability to query a given model based on user-defined filters. For example, for an application that tracks information about a company's employees, of

Re: Rewriting Java UI for Django?

2011-03-24 Thread Patrick McDonnell
David - I'm not sure I follow exactly what you're asking. If you're trying to basically port a Java/Swing application to Django: Django is a web application framework. Python with the Django libraries are used on the back end, and HTML is used on the front end (technically it is possible to use s