how to do one-time passwords

2011-06-12 Thread Mike Dewhirst
I need a choice of login mechanisms ... - Standard django-auth for some users - SMS a one time password for other users Would you think the following is the way to go? The user interface seems clunky to me. Any feedback will be greatly appreciated. 1. Enter the userid and optional password

Re: Need help getting this snippet to work in Django 1.2...

2011-06-12 Thread Alex Kamedov
It'll be better to use validators with IntegerField https://docs.djangoproject.com/en/1.3/ref/models/fields/#validators https://docs.djangoproject.com/en/1.3/ref/validators/ In this case you can specify allowed year range. On Sat, Jun 11, 2011 at 9:25 AM, mhulse wrote: > Hi

How Django render the various templates?

2011-06-12 Thread Nge
Hi Everyone! How can I create Django tablet site program? How can decide Django redirect the web site or mobile site or tablet site? Does there has separately browser detection? Thanks Nge -- You received this message because you are subscribed to the Google Groups "Django users" group. To

django template extends and include problem.

2011-06-12 Thread Korobase
test case as below: 1.base.html {% block t1 %} t {% endblock %} 2.temp.html {% block t2 %} zzz {% endblock %} 3.index.html {% extends "base.html" %} {% block t1 %} kk {% include "temp.html" %} {% endblock %} 4.other.html {% extends

Feed Parser, Community Aggregator, Date and Time settings

2011-06-12 Thread Chris McComas
I'm using the Django community aggregator on my site, which uses the Universal Feed Parser to parse RSS feeds and save them in a database. I noticed that the date_modified for feeds were actually +5 of my timezone, which is set to America/Detroit in my Django settings. I'm on DotCloud and

Could not decode to UTF-8 column 'cpostal'

2011-06-12 Thread alexandre...@gmail.com
Hi, I just converted a mssql database to sqlite3. I used the folloing text_factory con.text_factory = lambda x: x.decode('iso-8859-1').encode('utf-8') that just converts from latin1 to utf-8 where i browse the tables in python shell it seems everything is fine and well converted but when in

Re: headcut

2011-06-12 Thread Cal Leeming [Simplicity Media Ltd]
On Sun, Jun 12, 2011 at 6:46 PM, francescortiz wrote: > Cal, > > Thank you for your feedback. I really appreciate it. I will be > implementing what you say as soon as I can. Everything you said was > pretty clear except the part from including a RequestContext. Where is >

ManyToMany field and deletes

2011-06-12 Thread Marc Aymerich
Hi , I realize that django doesn't delete related objects when M2M field hasn't remaining relations. I don't see why django has this behaviour by default. I think it's a bit problematic because you can have 'orphan objects', and more over a change form for this object will raise a validation

Re: headcut

2011-06-12 Thread francescortiz
Cal, Thank you for your feedback. I really appreciate it. I will be implementing what you say as soon as I can. Everything you said was pretty clear except the part from including a RequestContext. Where is the RequestContext missing? Also, about using a template instead of embedding HTML in the

Re: headcut

2011-06-12 Thread Cal Leeming [Simplicity Media Ltd]
Sorry, one last thing. In relation to the resp html stuff, you should have actually used a template for that, loaded the variables into a request context, then rendered the template directly. Cal On Sun, Jun 12, 2011 at 6:18 PM, Cal Leeming [Simplicity Media Ltd] <

Re: headcut

2011-06-12 Thread Cal Leeming [Simplicity Media Ltd]
First, the good feedback. Good use of exception blocks, code style, built-ins, standard libs etc.. Although I can't comment on the implementation on the end product, you have clearly made an effort to use as many of the features offered by Django (and python) as possible in this project. The fact

Re: Get all reverse related objects.

2011-06-12 Thread Marc Aymerich
On Sun, Jun 12, 2011 at 4:09 AM, Venkatraman S wrote: > On Sun, Jun 12, 2011 at 12:10 AM, Marc Aymerich wrote: >> >> But, I'm wondering if django provides some generic mechanism to do the >> invers relation? it is,given a Model_C object get all related

headcut

2011-06-12 Thread francescortiz
Hi, I developed a django app and I would like to know what you think about it. I am relatively new to python and django so I expect more criticism than enything else. Description: Django application that provides resizing and thumbnailing for images and videos with the ability to set the center

Re: Trying to keep upload filename from disappearing - with python 2.7.1/django 1.2.4

2011-06-12 Thread Praveen Krishna R
*Perhaps you should try validating the other fields with javascript/jQuery ?!, * *If it is something like Required Field validations... * On Fri, Jun 10, 2011 at 6:37 PM, djangobeginner wrote: > I'm new to django and python but I'm working on a new screen for a > project

Re: forms messing up css, help?

2011-06-12 Thread raj
Yup, that fixed it, thank you very much! On Jun 11, 10:51 am, Ian Clelland wrote: > I have no idea what you mean by "stop working" -- without knowing what the > code looked like before, I don't know how it worked before. The usual rule > is that if something worked before,