Re: Displaying information as a table?

2011-09-03 Thread Nan
There's a django-tables app[1], and a more actively maintained (AFAICT) django-tables2[2]. [1] https://github.com/miracle2k/django-tables [2] https://github.com/bradleyayers/django-tables2 On Sep 3, 12:02 pm, Levi Campbell wrote: > In a django template, what's the best way to display informatio

Re: Security implications of using the form.fields dictionary directly

2011-09-03 Thread Doug Ballance
The most elegant way I've seen specialized form rendering handled was the use of template tags and filters. The django uni-form project is a good example. By using the filter and template tags you gain full access to all the form elements, and can do easy manipulation in python, but leave the ren

Re: Displaying information as a table?

2011-09-03 Thread Guillaume DE BURE
Le Samedi 3 Septembre 2011 09:02:52 Levi Campbell a écrit : > In a django template, what's the best way to display information from > the models as a table? I've had no luck searching the documentation > and google. > > As far as I can tell, there is no way to do it fully automatically, but you

Displaying information as a table?

2011-09-03 Thread Levi Campbell
In a django template, what's the best way to display information from the models as a table? I've had no luck searching the documentation and google. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

save_as only saves data showing on the form

2011-09-03 Thread zobbo
I have a very extensive model and and an admin form which contains key fields from that model. Other data is editedin a different form. I need to be able to copy data from a record to a new record so I set save_as to be True in my admin. However, that does not copy all data from the model, just da

Re: Security implications of using the form.fields dictionary directly

2011-09-03 Thread Daniel Roseman
On Wednesday, 31 August 2011 11:26:36 UTC+2, vpetkov wrote: > > Hi all, > > In relation to my previous post (unanswered, > > http://groups.google.com/group/django-users/browse_thread/thread/aad6fc7e6ad71b4f) > > > I would like to ask about the security implications of doing the > following:

Django generic view - pagination

2011-09-03 Thread Petey
Pagination templatetags do not fully work for my generic view and I dont quite understand why. http://pastebin.com/kyS0UciG Only : {{ paginator.num_pages }} and {{ paginator.page_range }} works. I noticed that in these methods are a bit different from for example: {{page}} - when you import pa

Re: Problem with file upload!

2011-09-03 Thread Jeff Tchang
Can you verify that your request method is indeed a POST? Print it out if necessary. -Jeff On Fri, Sep 2, 2011 at 10:39 AM, Ludvig wrote: > Hello, > > Usually only read these posts so i hope i'm doing this right! > > Recently my file upload just stopped working, and i've no idea what > i've chan

Re: Setting up a PostGIS DB

2011-09-03 Thread Jeff Tchang
Have you ran: psql -d yourdatabase -f postgis.sql After you do this you should see 1 or 2 tables in your Postgres database as well as a slew of sql functions. Make sure you've done this and verify it. -Jeff On Thu, Sep 1, 2011 at 2:18 PM, Reinout van Rees wrote: > > On 01-09-11 19:00, Dan H wr

Re: Too many TCP connections

2011-09-03 Thread Baurzhan Ismagulov
On Fri, Sep 02, 2011 at 12:16:41PM -0700, shacker wrote: > On one of the sites, a small amount of clicking around in the admin will > cause that user's IP to be blocked with a message like: Is the firewall and the web server on the same host? First, I'd check the destination port with netstat on