i18n problem with newforms

2007-06-22 Thread Scater
this is the form code: class ContactForm(forms.Form): subject = forms.CharField(max_length=255, label=_('Subject')) email = forms.EmailField(label=_('Email')) message = forms.CharField(max_length=1024, widget=Textarea, label=_('Message')) this is the view code: def contacts_form(req

Re: i18n problem with newforms

2007-06-22 Thread Scater
Thanks. Its working --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTE

UnicodeDecodeError when use date filter

2007-06-22 Thread Scater
Database and all project in UTF. Using unicode branch. in template (after generic view): {% for entry in latest %} Posted by {{ entry.author }} - {{ entry.pub_date|date:"j N Y, H:i" }} {% endfor %} Have exception: Traceback (most recent call last): File "c:\web\Python24\lib\site-packages\d

Upload images to rich-editor in admin interface

2006-08-19 Thread Scater
I have simple model: class Entry(models.Model): ... body = models.TextField() ... And i use rich-editor like TinyMCE or FCKEditor etc in admin-interface. for edit a field "body" I need functionality of uploading images for user's computer to this editor directly. I understand that decision depend

Re: Upload images to rich-editor in admin interface

2006-08-20 Thread Scater
Nathan R. Yergler wrote: > I was working on this yesterday and have a working Django application > that supports most of the API. I'll be working on finishing it up > today, and will release it tomorrow or Tuesday, depending on when I get > things cleaned up. Anyway, that may make FCKeditor a g

Re: TinyFCK or FCKEditor image uploader

2006-08-23 Thread Scater
http://groups.google.com/group/django-users/browse_thread/thread/a28f4d79a801ae5e/4011309ec4836dff?lnk=gst&q=FCKeditor&rnum=2#4011309ec4836dff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: How to correct this error?

2006-09-05 Thread Scater
in mysql config: [mysqld] default-character-set = cp1251 default-collation = cp1251_ukrainian_ci init-connect="SET NAMES cp1251" for your database: create database dbase charset=utf8; and ... in file django/db/backends/mysql/base.py we have: if self.connection.get_server_info() >= '4.1': curs

Re: How to correct this error?

2006-09-07 Thread Scater
PythonistL wrote: > Which file should I change with > if self.connection.get_server_info() >= '4.1': > cursor.execute("SET NAMES utf8") ? > you should change all files with this entry like this: cursor.execute("SET NAMES ") > Scater, > the

Group manipulation with comments

2006-09-07 Thread Scater
I have a problem to realize group manipulation with comments in Django Admin interface. This is must be grid with list of comments with checkbox near each entry in grid. Buttons: delete, favour by admin Filters: new comments, NOT favour etc. Any ideas ? --~--~-~--~~~

How to join 2 QuerySets? (with QuerySet object in result)

2006-09-28 Thread Scater
I have 2 QuerySets: news and articles I want to have new QuerySet: newsPlusArticles with data from news and articles on it. Solution list(news) + list(articles) is not right for me because i want to use result QuerySet in Paginator object. Thanks for Your answers. --~--~-~--~~--

Re: How to join 2 QuerySets? (with QuerySet object in result)

2006-10-02 Thread Scater
Joe писал(а): > Are the news and articles using the same fields? yes. > News.objects.extras([ ' WHERE [...] UNION (SELECT * FROM ARTICLES > WHERE [...] )' ]) :))ok. thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo