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 I'm on. The screen is supp

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 o

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 Model_A >> and Model_B objects. > > Like thi

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: 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] < cal.leem...@simplicitymedialt

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

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 except

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 > the RequestContext missin

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 admi

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 unfortun

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 "in

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 pos

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 Martin! Thanks so m

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: how to do one-time passwords

2011-06-12 Thread Cal Leeming [Simplicity Media Ltd]
On Mon, Jun 13, 2011 at 6:36 AM, Mike Dewhirst wrote: > 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

Re: help plz to install Django

2011-06-12 Thread bh.hoseini
which step are u now ihsan? did u installed django successfully & you're going to start a project? Regards, On Jun 11, 9:54 pm, Sergiy Khohlov wrote: > This guy would like to start. First steps are hard always and Are you > definitely sure  that adding not trivial procedure is  a good solution >

Re: Could not decode to UTF-8 column 'cpostal'

2011-06-12 Thread Cal Leeming [Simplicity Media Ltd]
I could be wrong, but I'm fairly sure that \xc3\xa3 is a 4 byte unicode sequence (which is essentially UTF-16). I'm not hot on understanding how unicode works, but I've had to deal with it hundreds of times due to the nature of the webapps our company writes (most data mining and indexing adapters