Re: "runserver" vs. "runserver :" : a bug?

2005-10-15 Thread Jacob Kaplan-Moss
On Oct 15, 2005, at 4:07 PM, Emanuele wrote: Is it a correct behaviour? I look for it in the docs but I found nothing. Is it a bug? This is by design; runserver binds to localhost only by default. Jacob

Re: Surving Static Files on Django

2005-10-13 Thread Jacob Kaplan-Moss
On Oct 13, 2005, at 7:15 AM, Sune Kirkeby wrote: On 9/29/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: To pick one example: in a dynamic serving situation, KeepAlive is your friend; [ snip a lot ] Hmmm... HTTP Keep-Alive? Then either I'm misunderstanding you, or everything y

Re: memcached client

2005-10-07 Thread Jacob Kaplan-Moss
I've been told that the tummy memcached client is a little better than the danga one, but I've not yet tried it out and I'm not sure if it works with Django's cache framework. As far as I can tell the API hasn't changed so it should work transparently, though. Jacob

Re: Performance and scalability

2005-10-05 Thread Jacob Kaplan-Moss
On Oct 3, 2005, at 11:14 PM, Jimmie Houchin wrote: Can you tell us what kind of hardware is supporting that 100k? Our main production platform is three servers: a database server, a web server, and a media server. They're all Dual Xeons with 2G of RAM. We've got a secondary server

Django hosting, anyone?

2005-09-30 Thread Jacob Kaplan-Moss
Hello fellow Djangonauts -- I've been thinking about launching a managed Django hosting service; is anyone interested? The big benefit Django hackers would get from such a service would be that the LAPD (Linux/Apache/Postgres/Django) stack would be fully set up when you signed up, so

Re: Performance and scalability

2005-09-29 Thread Jacob Kaplan-Moss
On Sep 29, 2005, at 10:31 AM, Adrian Holovaty wrote: Heh, KUsports.com has used that PHP message board for *years*, and we just haven't had the time (or inclination, really) to convert it to Django. There's no technical reason why it couldn't use Django -- indeed, Django is very good at

Re: Surving Static Files on Django

2005-09-29 Thread Jacob Kaplan-Moss
On Sep 29, 2005, at 8:03 AM, Simon Willison wrote: That's more a limitation of mod_python than of Django itself. I imagine that FastCGI and SCGI avoid this issue almost entirely - the modules themselves are much smaller so it's less wasteful to use them to serve static files as well as

Re: Concurrent-request memory footprints (was Surving Static Files on Django)

2005-09-28 Thread Jacob Kaplan-Moss
On Sep 28, 2005, at 3:38 PM, Jeremy Dunck wrote: On 9/28/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: ...In case you hadn't noticed, Django has a pretty large memory footprint; between Apache, mod_python, Python, the database drivers, etc., Apache server processes tend to weigh abo

Re: Surving Static Files on Django

2005-09-28 Thread Jacob Kaplan-Moss
On Sep 28, 2005, at 2:48 PM, Jakub Labath wrote: 1. No it doesn't have to be external web server. However, if you have the resources, it really should be another server -- or at least another instance of Apache running on the same server. Why? In case you hadn't noticed, Django has a

Re: Suggested doc updates

2005-09-27 Thread Jacob Kaplan-Moss
On Sep 27, 2005, at 4:24 AM, quentinsf wrote: As a newbie learning Django (and being thoroughly impressed, by the way), I've come across a few places where the documentation is rather thin (or I haven't found the right bit). I'm keen to help where I can, so thought I might add to the wiki,

Re: how do you pronounce 'Django'

2005-09-26 Thread Jacob Kaplan-Moss
On Sep 26, 2005, at 6:46 AM, Gábor Farkas wrote: how do you pronounce 'Django'? Have you checked the FAQ? http://www.djangoproject.com/documentation/faq/#what-does-django-mean- and-how-do-you-pronounce-it Jacob

Re: selecting specific fields

2005-09-21 Thread Jacob Kaplan-Moss
On Sep 21, 2005, at 4:56 AM, Kenneth Gonsalves wrote: doesnt work with 'get_values'. Ah, so it doesn't -- that's a bug, which I've filed and hopefully will be fixed shortly: http://code.djangoproject.com/ticket/532 Also i find that i have to put the full table name as it appears in

Re: Strange problem with dates after importing django models

2005-09-18 Thread Jacob Kaplan-Moss
On Sep 17, 2005, at 6:27 PM, [EMAIL PROTECTED] wrote: datetime.now() seems to be offset by 6 hours backwards after I import one of my django models: import datetime datetime.datetime.now() datetime.datetime(2005, 9, 18, 0, 21, 16, 456425) import django.models.sitecontent

Re: Packaging django apps

2005-09-13 Thread Jacob Kaplan-Moss
On Sep 12, 2005, at 9:07 PM, [EMAIL PROTECTED] wrote: What if we, the community, created our own site. djangoapps.com or something. It would allow people to upload there own django apps. People could rate and comment on the apps posted there. And it would of course be written using django.

Re: FileUploadField in an AddManipulator

2005-09-12 Thread Jacob Kaplan-Moss
On Sep 12, 2005, at 3:55 PM, Brant Harris wrote: Finally I hacked the render of FileUploadField to add enctype="multipart/form-data" to the INPUT field, but still nothing... The enctype business needs to be on the tag. Jacob

Re: Validator for overlapping time intervals?

2005-09-12 Thread Jacob Kaplan-Moss
On Sep 12, 2005, at 9:32 AM, Sokolov Yura wrote: YES. When you use only object_list and object_detail generics there no problems. But it does not conform DRY principe. Huh? The entire point of generics is DRY... I'm not sure I follow. I wish to use create_object, update_object and

Re: fun with imports

2005-08-23 Thread Jacob Kaplan-Moss
On Aug 23, 2005, at 6:28 AM, [EMAIL PROTECTED] wrote: I have a model that's making an xml-rpc call in _pre_save(). If I import ServerProxy at the top of the model file: from xmlrpclib import ServerProxy when _pre_save() is called it doesn't know what ServerProxy is. See "Using module

Re: CSS and PNG files in templates

2005-08-23 Thread Jacob Kaplan-Moss
On Aug 23, 2005, at 6:12 AM, Andy Shaw wrote: Or more simply put, the Django web server doesn't serve your media (e.g. images, PNG, CSS) and there isn't a plan to (the related ticket is marked as WONTFIX). Which majorly blows IMHO. It does seem somewhat contradictory to refuse to let the

Re: SQL operators from 'init'

2005-08-22 Thread Jacob Kaplan-Moss
On Aug 22, 2005, at 7:21 AM, Maniac wrote: But I thought that it would be very useful to have core SQL output from 'django-admin init', not only per-project SQL. It's actually very simple; all the "init" does is execute the following commands: django-admin sql core django-admin sql auth

Re: meta.Admin js option

2005-08-18 Thread Jacob Kaplan-Moss
On Aug 18, 2005, at 11:19 AM, David S. wrote: Since the admin templates are auto-generated, how does any JavaScript that you link in with the js option actually get used? The given JS URLs are added to the document's ; the can use onload events to modify the page display. For example,

Re: [newbie] Existing Database?

2005-08-18 Thread Jacob Kaplan-Moss
On Aug 18, 2005, at 10:32 AM, dharms wrote: This is a complete newbie question. I'm curious what experiences people had adopting Django to an already existing database (in use by other software and thus not easily changeable). Do you just have to create a model that matches the exisiting

Re: What is this sites thing?

2005-08-18 Thread Jacob Kaplan-Moss
On Aug 18, 2005, at 8:48 AM, Milton Waddams wrote: --- view --- latest_stories_list = storys.get_list(order_by=['-pub_date'], limit=5, active__exact=1, sites__domain__exact=DOMAIN) Currently I'm hardcoding DOMAIN, though plan to pull it in from the http headers. The

Re: Limiting database connections?

2005-08-12 Thread Jacob Kaplan-Moss
On Aug 12, 2005, at 4:36 PM, Matthew Marshall wrote: From this quote on the sqlrelay site... """ An application coded using another database's native client API may be able to use SQL Relay without modification. SQL Relay provides drop-in replacement libraries for: * MySQL * PostgreSQL

Re: One file per class in models?

2005-08-11 Thread Jacob Kaplan-Moss
On Aug 11, 2005, at 11:16 AM, Ludovico Magnocavallo wrote: Jacob Kaplan-Moss wrote: Ah, chances are that's because you didn't add the model file to the __all__ in myapp/models/__init__.py Nope, it's there... Hm... what's the output of "django-admin sql" look like? Jacob

Re: Downloading the djangoproject.com site code

2005-08-03 Thread Jacob Kaplan-Moss
On Aug 3, 2005, at 11:55 AM, stinger wrote: Good to see the djangoproject.com site code available for study and inspection. Is there a zipped file containing the code? I haven't seen it, so forgive if it's there. You'll need to check it out using SVN for the time being; use "svn checkout

<    1   2   3   4   5