Re: Multiple instances using mod_python

2008-09-25 Thread n00m
what if to rename mod_python.so to mod_python_1.so and mod_python_2.so and keep them both in apache's modules and run them as if they are different beasts. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Just a note: django web app in django-non-friendly hosting environment

2008-09-19 Thread n00m
@Brian Neal But I think that all your points are not specific to django per se. Sorta this. + Does not "my note" make a question like: "Where can I see a list of Django-friendly hosts?" pretty meaningless? PS Btw the syntax "SetHandler mod_python" instead of usual but outdated "SetHandler python

Just a note: django web app in django-non-friendly hosting environment

2008-09-19 Thread n00m
You need no at all to ask the hoster to install Django on his machine. Apache (etc) + installed mod_python is quite enough to get your django app running. The django package (and e.g. PIL) can be copied to there along with your django web dirs, as if it's a part of your web site/app. Example:

Re: How to render a static html page and keep processing after?

2008-09-15 Thread n00m
= in views.py = import thread def some_time_intensive_task(arg1, arg2, ...): ... ... ... return ... def some_view(request): ... ... thread.start_new_thread(some_time_intensive_task, \ (arg1, arg2, ...,)) ... ...

Re: A trick to force autoreloading, in case of changes in views.py

2008-09-15 Thread n00m
It's OK, Tom. Let's forget about this. Cheers! --~--~-~--~~~---~--~~ 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: ***SPAM*** A trick to force autoreloading, in case of changes in views.py

2008-09-14 Thread n00m
Next time you open your own thread let me know: I'll mark it as ***SPAM*** and we'll see how tolerant *you* are. On Sep 15, 1:47 am, Martin Diers <[EMAIL PROTECTED]> wrote: > Chill out. It's a personal website - no product being sold or   > advertised. > > If this group were moderated, you wou

Re: ***SPAM*** A trick to force autoreloading, in case of changes in views.py

2008-09-14 Thread n00m
What is the http://www.thomas-guettler.de/? Remove from your sig this link to your f**king spam-like site. On Sep 12, 4:36 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Thomas Guettler,http://www.thomas-guettler.de/ --~--~-~--~~~---~--~~ You received this mess

Re: ***SPAM*** A trick to force autoreloading, in case of changes in views.py

2008-09-12 Thread n00m
On Sep 12, 8:04 pm, David Thole <[EMAIL PROTECTED]> wrote: > Just curious,  are you using the django built in web server for > development?  The reason why I'm asking is because I don't recall > having any problems at all when changing a view and it not picking up > the change.  Every time I save

Re: ***SPAM*** A trick to force autoreloading, in case of changes in views.py

2008-09-12 Thread n00m
On Sep 12, 6:11 pm, "Keith Eberle" <[EMAIL PROTECTED]> wrote: > i don't think he marked it as spam, but rather "spam assassin" did... > > keith If so then my sincere apologies to Thomas Guettler --~--~-~--~~~---~--~~ You received this message because you are subs

Re: ***SPAM*** A trick to force autoreloading, in case of changes in views.py

2008-09-12 Thread n00m
Much better just to keep in views.py a "secret", not for public, "reloader" page: === views.py === import views_base def reloader(request): reload(views_base) return views_base.HttpResponse(

Re: ***SPAM*** A trick to force autoreloading, in case of changes in views.py

2008-09-12 Thread n00m
> This way I don't need to change any code Seems you absolutely misunderstand what I was talking about but you dared, in bold manner, to label my subject as a spam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: ***SPAM*** A trick to force autoreloading, in case of changes in views.py

2008-09-12 Thread n00m
Hi, Tom! Now imagine production environment on an hoster machine on which Apache is running in 24/7 mode. === Of course, I didn't mean my trick for home/localhost Cheers! --~--~-~--~~~---~--~~ You received this message be

A trick to force autoreloading, in case of changes in views.py

2008-09-12 Thread n00m
1. Rename views.py to (say) views_base.py 2. Create a new views.py file, with code like this: import os.path import views_base def test(request): if os.path.isfile(__file__ + '1'): reload(views_base) return views_base.test(request) def tables(request, table_name=None, cur_pag

Re: utf8 works on my dev server but not on my production server

2008-09-02 Thread n00m
>>> s = 'Rémi' >>> type(s) >>> s.decode('utf-8') Traceback (most recent call last): File "", line 1, in ? File "encodings/utf_8.py", line 16, in decode UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-3:

Re: Newform and validating of date literals

2008-06-09 Thread n00m
Yes. Thanks, Adi. This works puffikly: class valForm(forms.Form): ... ... dt = forms.DateField(input_formats=('%d.%m.%Y',)) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Newform and validating of date literals

2008-06-08 Thread n00m
Hi there! Newform validates "22.11.2005" as an invalid date. It requires the US format "2005-11-22". Where and to what this date format should be set for to validate "22.11.2005" as an Ok date string? I tried fiddling with DATE_FORMAT = 'd, m, Y' in settings.py, with no avail. Cheers! --~--~