Re: displaying posted data

2009-10-22 Thread f4nt
You're initting your variables from request.GET instead of request.POST. On Oct 22, 12:20 pm, Dhruv Adhia wrote: > Hello, > > Quite a basic question.. I am posting data from Unity, its like name > and score. I want to read the posted data and display it. > > Here is the code that I currently hav

Re: Where are forms usually defined?

2009-11-03 Thread f4nt
I've seen that before as well, and I don't particularly like it. Some people also customize the admin in the models.py file, which is also annoying :). On Nov 3, 1:28 pm, Nick Arnett wrote: > On Tue, Nov 3, 2009 at 11:26 AM, f4nt wrote: > > > forms.py is pretty standard.

Re: Where are forms usually defined?

2009-11-03 Thread f4nt
forms.py is pretty standard. You'd end up importing them in your views.py. On Nov 3, 1:20 pm, Nick Arnett wrote: > I find myself frequently frustrated by examples and tutorials that include > code snippets that don't identify where they live.  In particular, I haven't > quite figured out where f

Re: Comments & redirection

2009-11-05 Thread f4nt
I used a cheap hack. The comment object has an ID of the item that the comment was attached to. You can then give users a link to that to click, or auto-redirect them to that. If you use slugs, you can create a view that catches that ID, grabs the slug, and thus redirects them again to the origina

Re: Prevent brute-force password attacks?

2009-11-09 Thread f4nt
Yes, teaching users to not choose stupid username/password combinations. That's the only correct/true fix. Are you worried about the traffic that it consumes? If so, you continue to play in dicey territory, since you're trying to deduce harmful bots from potentially stupid users that just can't re

Serving Password Protected Files

2009-11-16 Thread f4nt
Hello, Is there a good way to handle serving files behind django authentication? I'm working on a project right now where people can upload files, and based on certain permissions can download them as well. However, there doesn't seem to be a good way to handle checking authentication, and then se

Re: How should I use manage.py dumpdata, and loaddata?

2009-11-19 Thread f4nt
I typically dump all of my apps individually, and load them individually. Unfortunately finding out where/why imports break with loaddata is problematic without inserting some debugging code in your django stack. Hence, I dump all my stuff individually, and I can at least somewhat narrow down what'