Re: Threaded versus forked how can I tell?

2007-02-15 Thread Jakub Labath
compiled in your apache server. > If you see prefork.c it should be ok. > > CC > > Jakub Labath a �crit : > > Hi, > > > > Is there a way to detect in my code if I'm running in prefork or threaded > > mode? > > > > Jakub > > > > >

Threaded versus forked how can I tell?

2007-02-01 Thread Jakub Labath
Hi, Is there a way to detect in my code if I'm running in prefork or threaded mode? Jakub --~--~-~--~~~---~--~~ 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@goog

Re: subclassing in newforms

2007-01-21 Thread Jakub Labath
good to have an interface (or just guidelines) > to dynamically build forms, establishing field order, > etc. > > -- > Jeff Bauer > Rubicon, Inc. > > > > > -- Jakub Labath --~--~-~--~~~---~--~~ You received this message becaus

Re: Session problems

2006-12-07 Thread Jakub Labath
act that I was able to insert logging statements everywhere and eventually caught the problem when I started logging raw request and response headers. Best Regards On 12/4/06, Jakub Labath <[EMAIL PROTECTED]> wrote: > No I'm using prefork MPM. > > On 12/3/06, Graham Dumpl

Re: Session problems

2006-12-04 Thread Jakub Labath
No I'm using prefork MPM. On 12/3/06, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > Jakub Labath wrote: > > Hi All, > > > > Sorry for being quiet for a while just got back from a vacation. > > > > > > > > Hi Jakub, > > >

Re: Session problems

2006-12-02 Thread Jakub Labath
go I spent ridiculous amount of time switching our production server from debian to gentoo hoping to solve the problem quickly by using more recent software - that did not happen. At this point I really need a tool to reproduce the problem quickly and then debug the hell

Re: Session problems

2006-11-07 Thread Jakub Labath
rmally happen should it. The memory address of response object also matches. It also matches the time when the users noticed it. I'll be upgrading both apache2 and mod python soon to their latest versions, we'll see if this happens again. Best Regards On 11/6/06, Jakub Labath <[

Re: Session problems

2006-11-06 Thread Jakub Labath
wrote: > > Bill de hOra wrote: > > > > http://www.djangoproject.com/documentation/cache/ > > One other thing; be sure you are only ever issuing the initial cookie > with POST request and not a GET. > > cheers > Bill > > > > -- Jakub Labath --~--~--

Re: Session problems

2006-11-03 Thread Jakub Labath
Hi argh44z, But did you have the same problem? Was the same sessionid sent to different clients? Thanks for help On 11/3/06, argh44z <[EMAIL PROTECTED]> wrote: > > On Nov 3, 12:26 pm, "argh44z" <[EMAIL PROTECTED]> wrote: > > On Nov 3, 10:23 am, "

Session problems

2006-11-03 Thread Jakub Labath
e is a correlation between the frequency of the problem and a server load. I'm not even sure if this is a django problem. Anybody experienced something similar? -- Jakub Labath --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Custom SQL in Q objects

2006-08-30 Thread Jakub Labath
Hi, Thanks for advice Malcolm! I feel a sample would save some time to other people. Time that i had to spend. class OnlyRealProfileSQL: def get_sql(*args): #select name from django_content_type where app_label = 'users' and model != 'profile' and model like '%p rofile' retu

Re: Re: Re: Extending user model in 0.95?

2006-08-25 Thread Jakub Labath
Hi All, On 8/25/06, James Bennett <[EMAIL PROTECTED]> wrote: > > Check out Django's internal dispatcher; whenever an instance of a > model is saved, the dispatcher signals 'pre_save' and 'post_save' are > fired before and after the save, respectively, with information about > the class of model w

Re: Re: Extending user model in 0.95?

2006-08-24 Thread Jakub Labath
Hi, > On 8/9/06, Vance Dubberly <[EMAIL PROTECTED]> wrote: > > I very much want to subclass User as I have more than one kind of user > > and each has a different type of profile. > > Which is a different situation from probably 80% of the needs people > have for extending the User model. I thin

PythonOptimize flag

2006-08-15 Thread Jakub Labath
Hi, Has anybody tried running the mod_python and django with the PythonOptimize flag enabled? Did it make any difference? Anything else interesting came out of it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Detect SSL/HTTPS

2006-05-05 Thread Jakub Labath
Hi, I have web server that is accessed both via http and https is there a way for me to tell which is used? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: deleting an image

2006-03-13 Thread Jakub Labath
Hi, My first attempt at #22 is in trac. http://code.djangoproject.com/ticket/22 It's just a quick thing that I needed. But I will welcome suggestions and ideas how to make this better. Best Regards On 3/12/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > never go round to it - havent even st

Re: imagefield, admin, wrong link

2006-03-11 Thread Jakub Labath
Hi, I tracked this down. You can overwrite the template that is responsible for the file widget, like this. 1. in your templates directory create widget directory. 2. copy trunk/django/contrib/admin/templates/widget/file.html to the widget folder you created. 3. edit as needed. Regards On 2/

Re: urllib2.open failing in Django?

2006-02-20 Thread Jakub Labath
Hi, I believe as soon as you call socket.setdefaultimeout it also changes certain behavior for ALL sockets in general (blocking non blocking etc) plus obviously the timeout. That is in my opinion pure evil(TM) because surely database drivers, connection handlers, logging tools and god knows what

Customizing limit_choices_to

2006-02-14 Thread Jakub Labath
Hi, class Category(meta.Model): name = meta.CharField(maxlength=255) class Article(meta.Model): title = meta.CharField(maxlength=255) category = meta.ForeignKey(Category) class Pillar(meta.Model): name = meta.CharField(maxlength=255) categories = meta.ManyToManyField(Category,

Re: Is there a solution in Django?

2006-02-12 Thread Jakub Labath
Hi, This seems more like a postgres problem more than a django one. It would appear that you have data in different charsets (bad idea). What I would do is just dump the data (convert them to utf8 if needed - see iconv) and then restore everything in a utf8 database. 1. pg_dump -U someuser blah

Re: subclasses reverse field order

2006-02-12 Thread Jakub Labath
Hi, It still reverses the order for me and I'm only adding fields as well. Fortunately I don't really need the parent class for anything. So i just listed fields in parent in reverse order, so my children classes then get the fields in proper order. It's crude but It works. Ideally there would be

Multiple Sites one User database

2006-01-24 Thread Jakub Labath
Hi, I work for a publishing company that publishes several magazines and also maintains websites for those magazines online. Right now most of the websites live on different servers written in different languages. The plan is to unite them all and move to django. However the most important feat

JOB POSTING: Toronto,Ontario,Canada

2006-01-16 Thread Jakub Labath
Hi, While the job posting below is relatively generic. What we are really looking for is someone to help us build next generation of our websites in Django. If you are interested please email your resumes to: [EMAIL PROTECTED] ST. JOSEPH MEDIA POSITION: Web Developer REPORTS TO: VP, IMS LOCATIO

Re: Broken site since svn update

2005-11-15 Thread Jakub Labath
This may sound silly, but have you tried renaming that property in your model? Or better yet using db_column parameter. Would that help you? DMI_id = meta.SlugField(db_index = True, unique = True, prepopulate_from=("title",),db_column="dmi_id") Wild guess: maybe escaping functions made somethin

Re: Surving Static Files on Django

2005-09-28 Thread Jakub Labath
Hi, 1. No it doesn't have to be external web server. Here is what I do with Apache. SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings.main SetHandler None The SetHandler None w

Re: "Developers for hire" page

2005-09-26 Thread Jakub Labath
Hi Joshua,Eugene, Joshua, you are of course right. At the same time when there is someone like me trying to replace existing solutions in place (which are all under IIS and MSSQL). Declaring one day company-wide switch to a different SQL server, different operating system and different framework

Re: Mod_python error: "PythonHandler django.core.handlers.modpython"

2005-09-19 Thread Jakub Labath
Hi, I believe that there are some problems with mod_python for apache 1.3. I'm using apache2 and mod_python 3.1 (just what comes with debian by default). And all seems to work fine. I know, if you have no reason to go to apache2 this sucks a bit but there is always proxypass :-) On 9/18/05, mobe

Re: RDBMS knowledge required?

2005-09-08 Thread Jakub Labath
Are you familiar with any sort of database? (think of RDBMS as if it was fancy version of Excel). The django itself doesn't force you to know anything about SQL. Perhaps the only exception is that you will need to know how to create and delete databases in (postgresql/mysql/sqllite/whichever you u