complex form with jquery filling fields

2009-11-06 Thread Grigory Fateyev
Hello! I need to write complex form, in that form users can select some params (popup select fields) than fill other fields via ajax query. JS was successfull written and fields are filling well, but when I submit form, validation said something like that: "It's not correct value for this

Re: Using Django authentication for phpBB

2008-12-29 Thread Grigory Fateyev
Hello Giles Thomas! On Mon, 29 Dec 2008 12:35:11 + you wrote: > > Grigory Fateyev wrote: > > It was written for phpbb3? > > > Hi Grigory, > > Yes, it was. I have it running under one of the later phpBB 3 > release candidates, but it should be fine with

Re: a error occurs while use comment framework

2008-12-29 Thread Grigory Fateyev
Hello Shuge Lee! On Mon, 29 Dec 2008 01:38:26 -0800 (PST) you wrote: > > > setting.py > ... > INSTALLED_APPS = ( > ... > 'django.contrib.comments', > ... > > python manage.py syncdb > ... > > > > view.py > from shuge.fap_soft.models import * #Category > > return render_to_response(

Re: Using Django authentication for phpBB

2008-12-25 Thread Grigory Fateyev
Hello Giles Thomas! On Thu, 11 Dec 2008 18:34:21 + you wrote: > > Hi all, > > All of the code to support Django logins for phpBB is now up > available in a Google code project: > > http://code.google.com/p/django-login-for-phpbb/ > > Drop me a line if you find it useful or have any

Re: reverse problem

2008-12-08 Thread Grigory Fateyev
Hello Dmitry Dzhus! On Mon, 08 Dec 2008 18:25:47 +0300 you wrote: > > Grigory Fateyev wrote: > > In all my local projects when I want to use comments contrib, got > > the error [1]. Django is from last trunk, all *.pyc files from > > contrib/comments were removed. What

reverse problem

2008-12-08 Thread Grigory Fateyev
Hello! In all my local projects when I want to use comments contrib, got the error [1]. Django is from last trunk, all *.pyc files from contrib/comments were removed. What it can be? Thanks! [1] Exception Value:Caught an exception while rendering: Reverse for '' with arguments '()' and

Re: Anti-spam suggestions (strange case)

2008-09-24 Thread Grigory Fateyev
Hello [EMAIL PROTECTED] On Wed, 24 Sep 2008 07:11:44 -0700 (PDT) you wrote: > > We have a simple form that allows site visitors to request a free > issue of the magazines we publish. The form simply writes to the > database, and the info is later pulled by the circulation people so > they can

Re: Problem with Django 1.0 admin on Russian language

2008-09-18 Thread Grigory Fateyev
Hello Fedya! On Thu, 18 Sep 2008 07:24:16 -0700 (PDT) you wrote: > > Unfortunately I'm dummy in python... so it's twice harder to find the > reason... But I'm still trying :) Maybe this helps? # grep -i utf8 /usr/lib/python2.4/site.py encoding = "utf8" # Default value set by

Re: Django 1.0 lighttpd FastCGI redirect issue

2008-09-16 Thread Grigory Fateyev
Hello Wim Feijen! On Tue, 16 Sep 2008 01:25:58 -0700 (PDT) you wrote: > > Hi Anders, > > For me, removing the slash in the FORCE_SCRIPT_NAME seemed to work. I > am not using the admin interface, so I can't check on that. > > So I added to settings.py: > > FORCE_SCRIPT_NAME="" > > I totally

Re: ImageField via admin

2007-08-22 Thread Grigory Fateyev
Hello Carl Karsten! On Tue, 21 Aug 2007 10:21:06 -0500 you wrote: > > Grigory Fateyev wrote: > > Hello Carl Karsten! > > On Mon, 20 Aug 2007 14:07:39 -0500 you wrote: > > > >>> settings.py:MEDIA_ROOT = BASE_DIR+'/media/' > >>> settings.py

Re: ImageField via admin

2007-08-21 Thread Grigory Fateyev
Hello Carl Karsten! On Tue, 21 Aug 2007 10:21:06 -0500 you wrote: > > Grigory Fateyev wrote: > > Hello Carl Karsten! > > On Mon, 20 Aug 2007 14:07:39 -0500 you wrote: > > > >>> settings.py:MEDIA_ROOT = BASE_DIR+'/media/' > >>> settings.py

ImageField via admin

2007-08-19 Thread Grigory Fateyev
Hello! I have simple class with ImageField, but cann't add any object: class Book(models.Model): name = models.CharField(_('Book Title'), maxlength=200) book_number = models.IntegerField() image = models.ImageField(upload_to='%Y/%m/%d/', core=True,

Re: can'tr start django server

2007-04-29 Thread Grigory Fateyev
ngo like dev server. If trying reun server via init.d script, it can't... > Grigory Fateyev wrote: > > Hello Grigory Fateyev! > > On Fri, 27 Apr 2007 17:24:24 +0400 you wrote: > > > > > >> Hello! > >> > >> I use django on Debian Sarge and

Re: can'tr start django server

2007-04-28 Thread Grigory Fateyev
Hello Grigory Fateyev! On Fri, 27 Apr 2007 17:24:24 +0400 you wrote: > > Hello! > > I use django on Debian Sarge and after a while (upgrade django to > Revision: 5007) init script not running. First problem was in > mysqldb-python library, it was update anhd now runserver s

can'tr start django server

2007-04-27 Thread Grigory Fateyev
Hello! I use django on Debian Sarge and after a while (upgrade django to Revision: 5007) init script not running. First problem was in mysqldb-python library, it was update anhd now runserver starts well. What it can be? Can attach strace output... init script: set -e

django model question for small library

2006-11-29 Thread Grigory Fateyev
Hello! I am writing small app for online library with full text seach. I have all books (less than 25) in html files for every chapter with only and tags, filenames look like book1-4.html and so on. Can somebody suggeest how models.py should looks? Should I insert chapters to database or keep

Re: My own auth backend

2006-11-14 Thread Grigory Fateyev
Hello Andrew Degtiariov! On Sun, 12 Nov 2006 19:29:55 +0200 you wrote: > > > Try to write my own backend authenticate function, but users from > > > anothe table can not login. What can it be? Any suggestions? > > > > I hope somebody use custom backend authentication? Please, do not > > ignore

Re: My own auth backend

2006-11-14 Thread Grigory Fateyev
Hello Andrew Degtiariov! On Tue, 14 Nov 2006 14:13:15 +0200 you wrote: > > But, can not figure out what backend do you use for authentication? > > > > Custom sql. It used also by RADIUS server (this is a reason for > creating custom authentication backend instead of using one from > Django) If

Re: My own auth backend

2006-11-11 Thread Grigory Fateyev
Hello Grigory Fateyev! On Fri, 10 Nov 2006 19:59:32 +0300 you wrote: > Try to write my own backend authenticate function, but users from > anothe table can not login. What can it be? Any suggestions? I hope somebody use custom backend authentication? Please, do not ignore my letters. :)

My own auth backend

2006-11-10 Thread Grigory Fateyev
Hello! Try to write my own backend authenticate function, but users from anothe table can not login. What can it be? Any suggestions? My code is: # anastas/settings.py: AUTHENTICATION_BACKENDS = ( 'anastas.apps.accounts.backend.MyAuthBackend',

custom manipulator check if field is filling

2006-11-08 Thread Grigory Fateyev
Hello! How can check if field is filling in the form using custom manipuplator? The idia is, if user has permisson to edit article or has authenticated field 'Publish' is visible in form, if not visible add article with publish = 0. How to do this? My code is not working... self.fields

Re: Custom SQL/Paginator problems

2006-11-08 Thread Grigory Fateyev
Hello soundseeker! On Mon, 06 Nov 2006 02:20:25 -0800 you wrote: > def show_categories(request, col, direction): > paginate_by = 15 > paginator = > ObjectPaginator(VMergeDocsInfo.objects.all().by_categories(), > paginate_by) Maybe something like this:

Re: Nesh Thumbnail - Installation problem

2006-11-08 Thread Grigory Fateyev
Hello Mark Jarecki! On Tue, 7 Nov 2006 18:27:26 +1100 you wrote: > Thanks guys > > Ended up that the Python Imaging Library was not correctly > installed. It all works now! > > Cheers Thanks too from me. Do you planing to do field type for custom manipulator? -- Всего наилучшего! Григорий

Re: Automatically starting the FastCGI server

2006-11-06 Thread Grigory Fateyev
Hello Norbert Wojtowicz! On Sun, 05 Nov 2006 23:21:31 -0600 you wrote: > I am also interested in how others have solved this. I hope I'm not > hijacking the thread, but could we see your Debian approach to this > problem? init.d file: #! /bin/sh ### BEGIN INIT INFO # Provides:

Re: Automatically starting the FastCGI server

2006-11-05 Thread Grigory Fateyev
Hello orestis! On Fri, 03 Nov 2006 18:53:26 - you wrote: > > Hello, > > I'm new to linux administration, but I try to learn :) > > I have managed to make lighttpd and postgresql start automatically > upon reboot, now I need a way to make manage.py runfcgi to start > automatically. [...]

Re: captcha problem

2006-10-31 Thread Grigory Fateyev
Hello Dirk Eschler! On Tue, 31 Oct 2006 15:32:03 +0100 you wrote: > > urlpatterns = patterns('anastas.apps.captcha.views', > > (r'^i/$', 'image'), > > (r'^json/$', 'json'), > > ) This is like mine. > Uh wait, only the image is broken in this case. > > Another thing to check, does

Re: captcha problem

2006-10-31 Thread Grigory Fateyev
Hello Aidas Bendoraitis! On Tue, 31 Oct 2006 12:11:00 +0100 you wrote: > Maybe your captcha template tag is not loaded? Did you put it in the > right place? Thanks for replay! I am sure templsate is in the right place: anastas/ apps/ captcha/ templatetags/

Re: captcha problem

2006-10-31 Thread Grigory Fateyev
Hello Grigory Fateyev! On Mon, 30 Oct 2006 21:30:01 +0300 you wrote: > Why it can be, and how to fix it? Please, any suggestions? -- Всего наилучшего! Григорий greg [at] anastasia [dot] ru Письмо отправлено: 2006/10/31 13:06 --~--~-~--~~~---~--~~ You recei

captcha problem

2006-10-30 Thread Grigory Fateyev
Hello! I want to use captcha protection for any app, and I do: ### urls.py (r'^captcha/', include('anastas.apps.captcha.urls')), ### anastas.apps.articles.urls.py (r'^create/$', 'anastas.apps.captcha.views.verify', dict(forward_to='anastas.apps.a rticles.views.create_article')), ###

Re: Syntax highlighter

2006-10-27 Thread Grigory Fateyev
Hello Dirk Eschler! On Sat, 21 Oct 2006 12:04:07 +0200 you wrote: > > Hello, > > does anyone use a generic syntax highlighter with Django? I want to > integrate something like GeSHi [1] in a blog-like application and i > try to find out where to start. > > 1. http://qbnz.com/highlighter/ >

Re: Auto-archive lists

2006-10-05 Thread Grigory Fateyev
Hello seemant! On Thu, 05 Oct 2006 15:34:17 - you wrote: > > Hi All, > > So, on the right column of http://www.djangoproject.com/weblog/ that > page, we see an index of archived posts, going back 12 months or so. > > And so I thought I'd check out the template: >

Re: unique objects in list

2006-10-04 Thread Grigory Fateyev
Hello Malcolm Tredinnick! On Wed, 04 Oct 2006 11:27:31 +1000 you wrote: > > On Tue, 2006-10-03 at 18:21 +0400, Grigory Fateyev wrote: > > Hello James Bennett! > > On Tue, 3 Oct 2006 08:28:02 -0500 you wrote: > > > > > > > > On 10/3/06, Grigory Fateyev

Re: unique objects in list

2006-10-03 Thread Grigory Fateyev
Hello James Bennett! On Tue, 3 Oct 2006 08:28:02 -0500 you wrote: > > On 10/3/06, Grigory Fateyev <[EMAIL PROTECTED]> wrote: > > I have a list of ip in table, but this ip repeats many times. I > > need to show each ip only once with some statistic. H

unique objects in list

2006-10-03 Thread Grigory Fateyev
Hello! I have a list of ip in table, but this ip repeats many times. I need to show each ip only once with some statistic. How to do this? In wich direction I should to look forward? filter, templatetag or something else? If it possible, share some code for example. -- ÷ÓÅÇÏ ÎÁÉÌÕÞÛÅÇÏ!

Re: list of all months where objects are

2006-07-20 Thread Grigory Fateyev
Hello Grigory Fateyev! On Thu, 20 Jul 2006 15:50:22 +0400 you wrote: > > Hello James Bennett! > On Wed, 19 Jul 2006 11:32:00 -0500 you wrote: > > > > > On 7/19/06, Grigory Fateyev <[EMAIL PROTECTED]> wrote: > > > Now I do like so: [...] Maybe I cann't

Re: list of all months where objects are

2006-07-20 Thread Grigory Fateyev
Hello James Bennett! On Wed, 19 Jul 2006 11:32:00 -0500 you wrote: > > On 7/19/06, Grigory Fateyev <[EMAIL PROTECTED]> wrote: > > Now I do like so: [...] > > Unless I'm missing something, what you want is: > > date_list = [] > year_list = Article.objects.orde

Re: list of all months where objects are

2006-07-19 Thread Grigory Fateyev
Hello Adrian Holovaty! On Wed, 19 Jul 2006 10:10:20 -0500 you wrote: > > On 7/19/06, Grigory Fateyev <[EMAIL PROTECTED]> wrote: > > I want to get list of all months where objects present. First of > > all, using date_based generic views I could not extra_context > &

list of all months where objects are

2006-07-19 Thread Grigory Fateyev
Hello, djangolers! I want to get list of all months where objects present. First of all, using date_based generic views I could not extra_context additional like 'date_list', but decide to use my own view def. def list_articles(request): list_a = Article.objects.all().order_by('-pub_date')

Re: logged-in user id as default value on ForeignKey relation

2006-07-17 Thread Grigory Fateyev
Hello Patrick J. Anderson! On Mon, 17 Jul 2006 10:25:25 -0500 you wrote: > > In my model I'd like to keep track of who added/updated a particular > record. > > class Entry(models.Model): > ... > time_added = models.DateTimeField(auto_now_add = True, editable > = False) >

Re: "No module named models.auth" magic-removal confusion?

2006-06-21 Thread Grigory Fateyev
Hello petef! On Wed, 21 Jun 2006 12:47:19 - you wrote: > > I've been developing an app (http://preview.sharing-places.com) > against Django v0.91. A little while back I started a branch on my > local dev machine (an OS X laptop) to incorporate the magic-removal > changes. I've suspended

Re: Hosting a Django project in Bluehost

2006-06-18 Thread Grigory Fateyev
Hello Eugene Lazutkin! On Sat, 17 Jun 2006 13:44:12 -0500 you wrote: > I don't use Bluehost, but I think the setup will be similar to Django > on DreamHost, which supports FastCGI only. "Official" DreamHost Wiki: > http://wiki.dreamhost.com/index.php/Django. Jeff Croft wrote an > excellent

Re: Relations accros multiple apps

2006-06-16 Thread Grigory Fateyev
Hello Fabien Schwob! On Fri, 16 Jun 2006 17:01:32 +0200 you wrote: > Hello, > > I'm about to create my first Django apps and I would like to know if > it's possible to have relationships between models accross multiple > apps. For example I would like to have : > > App User: > class User:

Re: The only click to add any class

2006-06-16 Thread Grigory Fateyev
Hello Jorge Gajon! On Thu, 15 Jun 2006 13:15:05 -0500 you wrote: > The hint is in the error message. > You must pass a Region object to the region parameter, > new_data['region'] contains only the id that the user selected from > the select list. > > You can do this: > > def save(self,

Re: The only click to add any class

2006-06-15 Thread Grigory Fateyev
Hello Malcolm Tredinnick! On Thu, 15 Jun 2006 12:51:33 +1000 you wrote: > > On Tue, 2006-06-13 at 16:56 +0400, Grigory Fateyev wrote: > Create your form to collect the data you need. Make the submit button > on that form send you to a view method to handle the submission as per >

Re: The only click to add any class

2006-06-14 Thread Grigory Fateyev
Hello Grigory Fateyev! On Tue, 13 Jun 2006 16:56:14 +0400 you wrote: > > Hello! > > We have compositely app 'Address' with lots of classes. Like: Region, > Country, Location and etc. And to fill the only address users need to > click some forms to add one add

Re: django.po please try this

2006-05-27 Thread Grigory Fateyev
Hello coulix! On Mon, 15 May 2006 14:37:30 - you wrote: > > Hi i have a weid translation problem > > in setting.py language is fr-fr > in a template foo i do > > {% load i18n %} > then > {% trans "Your name:" %} > {% trans "Jumps to the admin page for pages that represent a single >

bug missing first symbol

2006-03-01 Thread Grigory Fateyev
Hello, djanglers! I have strange problem. Project has model and DEFAULT_CHARSET = 'utf-8' with LANGUAGE_CODE = ru. After adding in admin some object via popup window (ForaignKey), main pagr refresh and first symbol of translated words look like square. Why it can be? P.S. In attach a cat of

Re: socialistsoftware.com source is now available

2006-02-19 Thread Grigory Fateyev
Hello [EMAIL PROTECTED] On Sat, 18 Feb 2006 22:46:08 - you wrote: > > A few people had asked for the source to my django powered blog. So > here it is ... http://source.socialistsoftware.com/sssource/ svn co http://source.socialistsoftware.com/sssource/blog/ socialistsoftware svn:

global class Category

2006-01-12 Thread Grigory Fateyev
Hello! In my project need lots of time to create class Category for any apps (news, faq, clubs) and now whant to create global class Category that will many-to-one for other classes. How this class can be done? Or this is not good idea? -- Всего наилучшего! greg [at] anastasia [dot] ru

Re: get_list() with foreignkey-parameters

2005-12-19 Thread Grigory Fateyev
Hello patrick kranzlm_ller! On Mon, 19 Dec 2005 17:03:21 +0100 you wrote: > > first issue: > > this works fine: > milestone_list = milestones.get_list(id__exact=3, order_by=['-id']) > > this doesn_t: v> milestone_list = milestones.get_list(responsible__exact=1, > order_by=['-id'])

Re: success: django + fastcgi (flup) + nginx

2005-12-16 Thread Grigory Fateyev
Hello Igor Goryachev! On Fri, 16 Dec 2005 11:39:18 +0300 you wrote: > > Hello everybody. > > It seems, I have got a success with django application running under > FastCGI (flup) and nginx web-server. There were no difficults, thanks > to Hugo! :) Anyway I will try to write a small howto this

Re: Migrating existing data into Django models

2005-12-13 Thread Grigory Fateyev
Hello tonemcd! On Tue, 13 Dec 2005 10:27:30 - you wrote: > > I found that any field with primary_key=True leads to a field name > with _id appended. So your field will look like user_id_id in the > database. > > Try dropping the '_id' suffix perhaps? > Nop, Traceback (most recent call

Re: Migrating existing data into Django models

2005-12-09 Thread Grigory Fateyev
Hello tonemcd! On Thu, 08 Dec 2005 07:07:41 -0800 you wrote: > > What does your auth model look like? > class User(auth.User): user_id = meta.CharField(maxlength=12, primary_key=True) user_active = meta.BooleanField(default=True) username = meta.CharField(maxlength=25)

Re: Migrating existing data into Django models

2005-12-08 Thread Grigory Fateyev
Hello Jacob Kaplan-Moss! On Tue, 6 Dec 2005 14:16:06 -0600 you wrote: > class Story(meta.Model): > headline = meta.CharField(maxlength=100, primary_key=True) > body = meta.TextField() > > you'll get:: > > CREATE TABLE stories ( > headline

Re: Exception Location: C:\soft\django_src\django\templatetags\adminmedia.py

2005-11-30 Thread Grigory Fateyev
Hello Kenneth Gonsalves! On Wed, 30 Nov 2005 10:47:38 +0530 you wrote: > > On Wednesday 30 Nov 2005 2:12 am, kmh wrote: > > The work-around is to manually delete any orphaned > > .pyc files such as adminmedia.pyc (or just all .pyc files as they > > will be regenerated as needed). > > better

Re: replaces_module

2005-11-29 Thread Grigory Fateyev
Hello Adrian Holovaty! On Tue, 29 Nov 2005 08:26:11 -0600 you wrote: > To "remove" fields in the parent class, use "remove_fields". For > example: [...] >class META: >db_table = 'anastas_users' >replaces_module = 'auth.users' >admin = meta.Admin() ># field

replaces_module

2005-11-29 Thread Grigory Fateyev
Hello! I have forum on phpbb (about 2 users), and now want to integrate auth with django. Went throgh legasy database doc and have this table: class User(users.User): user_id = meta.IntegerField() user_active = meta.CharField(maxlength=1) username = meta.CharField(maxlength=25)

raw_id_admin

2005-11-23 Thread Grigory Fateyev
Hello! In model i use this field: class Article(meta.Model): author = meta.ForeignKey(User, raw_id_admin=True) vews/articles.py generate form: Author: {{ form.author }} {% if form.author.errors %}*** {{ form.author.errors|join:", " }} {% endif % } If the field is filled by

Re: How to add user registration/login to an existing app?

2005-11-21 Thread Grigory Fateyev
Hello bsoltani! On Mon, 21 Nov 2005 16:30:13 - you wrote: > > As long we're counting who's interested, count me in :). > me too, +1. -- Всего наилучшего! greg [at] anastasia [dot] ru Григорий.

Re: broken admin links to logout and change password

2005-11-12 Thread Grigory Fateyev
Hello Bryan Murdock! On Sat, 12 Nov 2005 07:34:42 -0800 you wrote: > > My site is set up with mod_python so that to get to the admin page you > go to: > > example.com/appname/admin > > In the admin view the links for logging out and changing password are > broken. They use

problem lookup function

2005-11-02 Thread Grigory Fateyev
Hello! I have myapp model: class Category(meta.Model): category_name = meta.CharField(maxlength=30) category_image = meta.ImageField(upload_to="/var/www/html/media") class Article(meta.Model): category_name = meta.ForeignKey(Category) How to get list of category_name

Re: getting id of logged user in admin site

2005-11-02 Thread Grigory Fateyev
Hello Flavio Curella! On Tue, 01 Nov 2005 16:45:08 -0800 you wrote: > > thanks Hugo. > > I think this is a common case: I (and peraphs many people) prefer > django to other frameworks because of its admin application: half a > work is already made. I think a feature like this will be very

Re: create object

2005-10-27 Thread Grigory Fateyev
Hello Grigory Fateyev! On Thu, 27 Oct 2005 19:43:45 +0400 you wrote: > > Hello! > > http://django.pastebin.com/407800 > > Somebody can explane why this app could not create object? Any advice > ... > Problem was fixed! -- Всего наилучшего! greg [at] anastasia [dot] ru Григорий.

create object

2005-10-27 Thread Grigory Fateyev
Hello! http://django.pastebin.com/407800 Somebody can explane why this app could not create object? Any advice ... -- Всего наилучшего! greg [at] anastasia [dot] ru Григорий.

Re: Error in DateFormat

2005-10-20 Thread Grigory Fateyev
Hello Adrian Holovaty! On Thu, 20 Oct 2005 08:46:47 -0500 you wrote: > Fixed as of revision 976. > > Adrian Thanks, very much! -- Всего наилучшего! greg [at] anastasia [dot] ru Григорий.