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
@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
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:
=
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, ...,))
...
...
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
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
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
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
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
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(
> 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
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
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
>>> 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:
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
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!
--~--~
16 matches
Mail list logo