Re: postgresql 8.3 and ILIKE

2008-05-20 Thread Gacha
Thanks, this helped. I already wrote another workaround, but this is smoother. On May 20, 3:43 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, May 20, 2008 at 7:03 AM, Gacha <[EMAIL PROTECTED]> wrote: > > > I changed the line, but I got the same

Re: postgresql 8.3 and ILIKE

2008-05-20 Thread Gacha
^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. On May 20, 1:23 pm, "Scott Moonen" <[EMAIL PROTECTED]> wrote: > Gacha, see my bug report and a possible fix (it is currently working for me) > at: > &

Re: postgresql 8.3 and ILIKE

2008-05-20 Thread Gacha
Thanks, I hope this bug will be fixed. On May 20, 1:23 pm, "Scott Moonen" <[EMAIL PROTECTED]> wrote: > Gacha, see my bug report and a possible fix (it is currently working for me) > at: > > http://code.djangoproject.com/ticket/7197 > > -- Scott > > &g

postgresql 8.3 and ILIKE

2008-05-20 Thread Gacha
I upgraded Postgresql to 8.3 version and got an error in admin: ProgrammingError: operator does not exist: smallint ~~* unknown LINE 1: ...js_id" = '6538' AND "assort_apstlaiks"."a_diena" ILIKE '2' ^ HINT: No operator

Django Server Tools

2007-02-09 Thread Gacha
Hi, I made a small script that helps me to deal with many Django app on the same server. Maybe somebody has similar script's or techniques to do this job, please share with it. I just want to know, should I develop it further or there are better ways to solve this. link:

Re: General help and help with an ordered ManyToMany

2007-02-08 Thread Gacha
I think you should pass only experments. The procedures whitch belongs to experment you can get simply {{ experment.procedures.all }} {% for exp in experiment_list %} {{ exp.id}} {{ exp.name }} {{ exp.description }} {{

Re: how are you handling i18n and m10l content?

2006-11-09 Thread Gacha
I agree to you about my version of this, but it was the best I could figure out :) I readed your suggestion and I think it's very good and I think it's very easy to implement in django system. --~--~-~--~~~---~--~~ You received this message because you are

Re: how are you handling i18n and m10l content?

2006-11-09 Thread Gacha
Aidas Bendoraitis wrote: > MyModel.objects.by_language("EN").all() > MyModel.objects.by_language("EN").order_by('title') I think this would be greate. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: how are you handling i18n and m10l content?

2006-11-09 Thread Gacha
I developed an e-shop web and I implemented unlimited language support for all content. Every model realy holded only integer values and values, that should't be translated. Fields like "title" and "description" was virtual, they didn't exist in the table, but I was able to call them like

Re: Importing models from each other.

2006-10-03 Thread Gacha
I separated the models. Now I have myproj.extra which contains the Choice model and all works fine :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Importing models from each other.

2006-10-02 Thread Gacha
I try to import like: "import myproject" and then myproject.auth.models.User but no luck, Django throws error, that auth has no models class. Is there a way to make this to work? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Importing models from each other.

2006-09-27 Thread Gacha
Nope, it didn't work :( but thx for a try --~--~-~--~~~---~--~~ 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,

Re: Importing models from each other.

2006-09-27 Thread Gacha
Yes, I already know that :) --~--~-~--~~~---~--~~ 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

Importing models from each other.

2006-09-27 Thread Gacha
I have two model files, the first is: --- from proj.base.models import Choice class User(meta.Model): ... param = model.ForeignKey(Choice) --- and the

Custom manipulator save() function problem

2006-09-07 Thread Gacha
I have a custom manipulator: class Pircejs_Add(Manipulator): def __init__(self): self.fields = ( TextField(field_name='vards', is_required=True), TextField(field_name='uzvards', is_required=True),

Custom manipulator save() function problem

2006-09-07 Thread Gacha
I have a custom manipulator: class Pircejs_Add(Manipulator): def __init__(self): self.fields = ( TextField(field_name='vards', is_required=True), TextField(field_name='uzvards', is_required=True),

Re: Creating graphs in Django application

2006-09-07 Thread Gacha
Devraj wrote: > Hi everyone, > > I am attempting to create graphs in my Django app.to provide reporting > features. Are there any libraries available to do this in Python or > Django? > > Something like http://www.qualityunit.com/postgraph/ for PHP > > Thanks Try

Re: Creating graphs in Django application

2006-09-07 Thread Gacha
Try: http://matplotlib.sourceforge.net/ --~--~-~--~~~---~--~~ 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

Re: cherokee server and django - fast-cgi/scgi rumble

2006-08-07 Thread Gacha
With SCGI worked for me too, but what is better and faster FCGI or SCGI? [EMAIL PROTECTED] wrote: > I've only done SCGI in cherokee, I'll try to get FastCGI running and > when I do I'll write about it on the wiki :) --~--~-~--~~~---~--~~ You received this

Re: cherokee server and django - fast-cgi/scgi rumble

2006-08-07 Thread Gacha
Ivan Sagalaev wrote: > [EMAIL PROTECTED] wrote: > > if settings.APPEND_SLASH and (old_url[1][-1] != '/') and ('.' not > > in old_url[1].split('/')[-1]): > > IndexError: string index out of range > > -- > > and in the browse flup shows a simillar

Re: problems with runfcgi

2006-08-04 Thread Gacha
I was thinking that runfscgi is smth like runserver :D now I understand my mistake. Thanx :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

problems with runfcgi

2006-08-03 Thread Gacha
I tryed to run "python manage.py runfcgi method=threaded host=195.13 port=7778 daemonize=false" in my project dir. The command executed, but nothing happened. I opened my site in browser and it was loading and loading an loading, but it didn;t get any response from django. What I'm doing

Re: FileField problems. uplaoded files overwritten

2006-07-24 Thread Gacha
I got the same problem :( edit inline doesn't work propertly --~--~-~--~~~---~--~~ 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

Cant open static files on IE

2006-05-11 Thread Gacha
I'm using django with mod_python. When someone using internet explorer is trying to download some file and in the promt box he chose "Open" then the file is downloaded, but IE says that the file doesn't exists, but if chose to "Save" the file then the file is saved and it's ok. Then I started the

Re: using django.core.mail with utf-8

2006-04-09 Thread Gacha
Thanks, but how I see, this is for 0.91, but I use m-r version. Maybe I'l try the python smtplib? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

using django.core.mail with utf-8

2006-04-09 Thread Gacha
I want to send email to users. The default charset is us-ascii, but I need utf-8. How I see, there is SafeMIMEText class, where I can specify the charset and other things, but I dont know how to use it. Can someone give me a simple example. --~--~-~--~~~---~--~~

Re: Get current user ID in _pre_save() function

2006-03-26 Thread Gacha
I solved this problem by this patch: http://code.djangoproject.com/attachment/ticket/1132/current_user_field_patch.2.diff Now I use: author = meta.CurrentUserField(update_on_edit=False) -- But the problem about User management is not solved :(

Get current user ID in _pre_save() function

2006-03-25 Thread Gacha
I created a simple model "articles" and I added field: author = meta.ForeignKey(User,editable=False) When I add new artcicle I want to assign to this field the current user ID, but so far no luck :( I tryed: def _pre_save(self): from django.models.auth.users import User self.author =

Re: django with mod_python

2006-03-10 Thread Gacha
There is all my virtualhost config: DocumentRoot /home/gacha ServerName gacha.id.lv ServerAlias www.gacha.id.lv ServerAdmin [EMAIL PROTECTED] AllowOverride All Options None Order allow,deny Allow from all

django with mod_python

2006-03-09 Thread Gacha
If I write: SetHandler mod_python PythonHandler django.core.handlers.modpython PythonPath "['/home/gacha/poll'] + sys.path" SetEnv DJANGO_SETTINGS_MODULE myproject.settings PythonDebug On then I get error: EnvironmentError: Could not import DJANGO_SETTINGS_MODULE But when I change: