DISTINCT ON fields is not supported by this database backend

2012-06-24 Thread upmauro
Please help, http://dpaste.com/762942/ Thanks alot ! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/v5qIbmtR5ZwJ. To post to this group, send email to dj

Django SYNCDB or SQL error, in core models.

2012-06-19 Thread upmauro
Hi all ! When i begin my application i used inspectdb to generate models, after this when i try use SYNCDB or SQL Django raise this exception: python2.7 manage.py syncdb Error: One or more models did not validate: core.djangocontenttype: "app_label": CharField cannot have a "max_length" grea

Custom Tags and Includes, invalid block !

2012-06-18 Thread upmauro
Hello, sorry my english ! I have one question, i create one custom tag and this works fine. But i have a situation : *site.html* * * {% include "header.html" %} Django looks the best framework for web ! {% include "footer.html" %} If, i use {% load %} in site.html, tag works, but if i {% load

Re: Problem using User.get_profile() in DJANGO

2012-06-18 Thread upmauro
profile() > profile.apelido = request.POST['apelido'] > profile.save() > > Also, I recommend using Forms (and better yet, ModelForms with Class-Based > Views) to sanitize and validate your data. > > On Mon, Jun 18, 2012 at 9:50 AM, upmauro wrote: > >&g

Problem using User.get_profile() in DJANGO

2012-06-18 Thread upmauro
Sorry my english. In my *models.py* class Usuario(models.Model): user = models.ForeignKey(User,primary_key=True) apelido = models.CharField(max_length=75, blank=True) class Meta: db_table = u'usuario' def create_user_profile(sender, instance, created, **kwargs): if create

Recover User by SESSIONID

2012-06-17 Thread upmauro
Hi ! Sorry my english. I using uploadfy in my website, this basically is one SWF to upload files. This works fine, but my question is "how recover logged user in post uploader request?" I have SESSIONID in form and my swf post this, but i don't know recover user by session id. Please help-me,