Re: Tutorial: Can't see my polls

2007-04-13 Thread risomt
Sorry, my mistake Since it wasnt display any data about the poll it also wouldn't display any data about the {{ poll.id }} thus giving a "//" On Apr 14, 11:58 am, "Evan H. Carmi" <[EMAIL PROTECTED]> wrote: > risomt wrote: > >http://binarymanipulations.c

Re: Tutorial: Can't see my polls

2007-04-13 Thread risomt
http://binarymanipulations.com:8157/polls/1/vote/ displays the Poll's title and all of the poll's choices correctly - start from there Sorry for the weak answer, but its pretty late. I did notice an error with your form in poll_detail (http://binarymanipulations.com:8157/ polls/1/) - should be

Re: do_html2python() in newform??

2007-04-02 Thread risomt
As far as I can tell, every purpose of do_html2python() is handled by the "clean" methods of newforms. Every clean is performed (different for each form field) when you call form.is_valid() - this also involves the new custom validation system. If you check out the newforms fields.py (http://cod

Re: Vote only once/Remembering votes

2007-04-01 Thread risomt
Just as a quick reply, check out the Comment system in django/contrib: http://code.djangoproject.com/browser/django/trunk/django/contrib/comments it has a karma like system and may or may not have unique votes On Apr 1, 3:08 pm, "SimpleMan" <[EMAIL PROTECTED]> wrote: > I'm creating something si

Re: newbie question regarding newForm POST information

2007-03-30 Thread risomt
I'm a bit confused by what you're trying to do with the actual data itself... I haven't used newforms a great deal yet, but anytime that it has been necessary to modify data coming in from request.POST I've either done it within the view itself or within the newforms data validation system. for

Re: newbie - deploy error

2007-03-27 Thread risomt
You have both virtual hosts connecting on the same port - switch mysite3 to something like :8081 and it should work On Mar 27, 5:11 pm, "Frank" <[EMAIL PROTECTED]> wrote: > mysite works > mysite3 gives me a 404 error > I guess I still have something wrong. > > Thanks > Frank > > NameVirtualHost *

Re: newbie - deploy error

2007-03-27 Thread risomt
Heres what I have: SetHandler python-program PythonHandler django.core.handlers.modpython PythonPath "sys.path + ['C:/web/html/projects/']" SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On With: DocumentRoot "C:/web/" If you dont correctly set the python path

Re: Api and user auth

2007-03-09 Thread risomt
Actually, what I said is a bit wrong. To fill the author field correctly you should use a foreign key that points to the User model (again, assuming you're using the builtin django.contrib.auth User). On Mar 10, 2:21 am, "risomt" <[EMAIL PROTECTED]> wrote: > While I t

Re: Api and user auth

2007-03-09 Thread risomt
While I thoroughly agree with the above two, I'll go one step further and say you should probably never put any code that sets admins (superusers, or even straight access to django admin console) into code whatsoever. To help you out with a direct answer: django has no difference between admin a

Re: How to create the files upload?

2007-02-25 Thread risomt
I've spent a somewhat decent (frustrated) amount of time trying to figure out image uploading myself. The largest chunk of it can be explained via the Manipulator document at Django's website: http://www.djangoproject.com/documentation/forms/ (there is a specific section for images and files, Im