Re: Why so slow?

2007-01-05 Thread David Abrahams
"Jeremy Dunck" <[EMAIL PROTECTED]> writes: On 1/4/07, David Abrahams <[EMAIL PROTECTED]> wrote: ... If I log into the server and run "top" while trying to access pages, I don't see any alarming jumps in CPU load; the hungriest processes typically stay in s

Re: Why so slow?

2007-01-05 Thread David Abrahams
"Jeremy Dunck" <[EMAIL PROTECTED]> writes: On 1/4/07, David Abrahams <[EMAIL PROTECTED]> wrote: ... If I log into the server and run "top" while trying to access pages, I don't see any alarming jumps in CPU load; the hungriest processes typically stay in s

Re: Why so slow?

2007-01-05 Thread David Abrahams
"DavidA" <[EMAIL PROTECTED]> writes: Is it possible your Apache server is doing reverse DNS lookups on the GET requests and the lookup is failing for the client machine? I seem to remember older versions of Apache having this on by default. It's Apache22, but I don't have any explicit settin

Re: Why so slow?

2007-01-05 Thread David Abrahams
"Jeremy Dunck" <[EMAIL PROTECTED]> writes: On 1/5/07, David Abrahams <[EMAIL PROTECTED]> wrote: ... > Most likely, KeepAlive is holding processes unavailable while > sitting idle. How would I tell if that was happening? Turn it off and see if performance sudden

Re: Why so slow?

2007-01-05 Thread David Abrahams
"Jeremy Dunck" <[EMAIL PROTECTED]> writes: On 1/5/07, David Abrahams <[EMAIL PROTECTED]> wrote: .. > Except that KeepAlive ties up processes waiting for further requests > from a client, which may never come (and certainly won't if you run > media separate

Re: Why so slow?

2007-01-05 Thread David Abrahams
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: On Jan 5, 2:54 am, David Abrahams <[EMAIL PROTECTED]> wrote: I am developing a Django-based site, and it *really* seems to be slow... sometimes. It's running in an Apache virtual server on the Any insight you might

Re: Why so slow?

2007-01-05 Thread David Abrahams
"Joseph Heck" <[EMAIL PROTECTED]> writes: Everyone's looking at the web serving mechanisms, so let me ask a relatively obvious question - are you doing anything complex database-wise on the page that's being so slow? Most pages shouldn't require any DB lookups. I don't see PostgreSQL soaking

Re: Getting the new data value

2007-01-05 Thread David Zhou
, but I'd rather not have to do multiple writes to the db. self. returns the value about to be written for me? Are you sure it's retrieving the value from the db? --- David Zhou [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message becau

Re: Why so slow?

2007-01-05 Thread David Abrahams
Kenneth Gonsalves <[EMAIL PROTECTED]> writes: On 05-Jan-07, at 9:11 PM, David Abrahams wrote: Next most likely is # of child processes. Try fiddling with Min and MaxSpareServers. http://httpd.apache.org/docs/2.0/mod/prefork.html According to the docs that should only be necessar

Re: Why so slow?

2007-01-06 Thread David Zhou
On Jan 6, 2007, at 1:52 AM, Kenneth Gonsalves wrote: On 06-Jan-07, at 11:22 AM, David Abrahams wrote: i have light traffic - but messing with those helped immensely Rather than me fishing in the dark, can you suggest some changes? Like, "increase the min" or something

Removing SQL from Templates

2007-01-08 Thread David Cramer
I'm petitioning this as a core change, if nothing else, I'm seeking advice on how to go about it. I do *not* like templates having the ability to execute SQL. If I don't have the data once its past my view (as this is MVC, control doesnt need to get the data, it just needs to control it), I don'

Re: Removing SQL From Templates

2007-01-08 Thread David Cramer
I'm talking completely about the related objects accessors, and not sending models to the templates is not a good solution for us :) I want to setup some kind of blocking mechanism so that while rendering a template the models will not do any SQL queries that have not already been executed, or a

Re: Removing SQL From Templates

2007-01-09 Thread David Cramer
select_related is horrible slow on 90% of large database queries, and I haven't managed to implement the functionality I want in it yet. I'd like to come up with an optional, or simply, a solution for our framework, where designers do not get access to do the SQL through the template on related a

Re: Removing SQL From Templates

2007-01-09 Thread David Cramer
needs changed? On Jan 10, 4:22 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 1/9/07, David Cramer <[EMAIL PROTECTED]> wrote: > > > I'd like to come up with an optional, or simply, a solution for our > > framework, where designers do not get access

Re: Proposed Changes

2007-01-09 Thread David Cramer
While working on my select_related changes, I noticed that the db backend was doing COUNT(*) for .count().. why? I've changed it on my local copy to count the id column, but unless anyone can give me a specific reason, as far as I recall, it's faster to just count on the id column. On Dec 26 200

Re: Proposed Changes

2007-01-09 Thread David Cramer
hange depth to 1 On Jan 10, 5:27 am, Cliff Wells <[EMAIL PROTECTED]> wrote: > David Cramer wrote: > > While working on my select_related changes, I noticed that the db > > backend was doing COUNT(*) for .count().. why? > > > I've changed it on my local copy to c

Re: Removing SQL From Templates

2007-01-09 Thread David Cramer
Using full page caching, or view caching, is not an option for us on most pages, as things vary such as moderation options. On Jan 10, 5:26 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 1/9/07, David Cramer <[EMAIL PROTECTED]> wrote: > > > I don't t

Re: Proposed Changes

2007-01-09 Thread David Cramer
Use this paste instead, I found an issue :) http://dpaste.com/hold/4537/ On Jan 10, 6:41 am, "David Cramer" <[EMAIL PROTECTED]> wrote: > Alright, anyways, if someone wants to test this, it worked 100% for me, > the updated select_related(). I'm not sure if we&#

Re: Proposed Changes

2007-01-09 Thread David Cramer
http://dpaste.com/hold/4539/ I think I still have an issue with related fields that werent included in the query On Jan 10, 8:15 am, "David Cramer" <[EMAIL PROTECTED]> wrote: > Use this paste instead, I found an issue :) > > http://dpaste.com/hold/4537/ > > On

Re: Proposed Changes

2007-01-10 Thread David Cramer
select_related() info moved: http://groups-beta.google.com/group/django-developers/browse_thread/thread/400bcdee7fedbb15?hl=en On Jan 10, 8:37 am, "David Cramer" <[EMAIL PROTECTED]> wrote: > http://dpaste.com/hold/4539/ > > I think I still have an issue with related fi

solidDB and Django

2007-01-10 Thread David Cramer
As we were having issues lately with handling database load, I'm looking at alternatives for MySQL/Innodb in the future. One thing that came up was solidDB. I'm curious as to if this would be possible to use with Django, or if anyone has used this in the past and has experiences they could tell ab

Re: Removing SQL From Templates

2007-01-10 Thread David Cramer
> Why don't you just generate lists and dictionaries in the view and send > those to your templates instead of data objects? I like having access to the models attributes, such as get_absolute_url, we use things like this quite a bit in our templates > 1. It'd be pretty easy to write a template t

Re: solidDB and Django

2007-01-10 Thread David Cramer
hael Radziej <[EMAIL PROTECTED]> wrote: > David Cramer schrieb: > > > As we were having issues lately with handling database load, I'm > > looking at alternatives for MySQL/Innodb in the future. One thing that > > came up was solidDB. I'm curious as to if thi

error: (32, 'Broken pipe')

2007-01-10 Thread David Abrahams
I see this often when running the development server. All the pages seem to render correctly. Can anyone explain what's going on, and tell me whether I should be concerned? I note that others have asked this question in the past, but the explanation given at http://groups.google.com/group/djan

Django joining multiple tables together

2007-01-11 Thread David Cramer
What it should be (I believe): SELECT `files_version`.`id` , `files_version`.`file_id` , `files_version`.`md5` , `files_version`.`name` , `files_version`.`post_date` , `files_version`.`archive` , `files_version`.`change_log` , `files_version`.`author_id` , `files_version`.`downloads` , `files_ver

Re: Web services in Django

2007-01-12 Thread David Larlet
l possibilities so let's get back to the discussion. Cheers, David --~--~-~--~~~---~--~~ 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 T

Re: Generic views and filtering

2007-01-12 Thread David Zhou
On Jan 12, 2007, at 6:25 PM, Nicolas Steinmetz wrote: > Do I have to do as James [1] suggests, ie to filter it in views.py > with some generic views methodes ? That's the way I do it. It's a very simple wrapper, and also allows me to add a host of other things into the con

Re: Why so slow?

2007-01-12 Thread David Abrahams
"Ramiro Morales" <[EMAIL PROTECTED]> writes: > On 1/5/07, David Abrahams <[EMAIL PROTECTED]> wrote: >> [...] >> >> Most of my content is static in nature, generated on-demand from ReST >> sources. For those pages, the model checks the mod time of

Re: Why so slow?

2007-01-15 Thread David Abrahams
"Jeremy Dunck" <[EMAIL PROTECTED]> writes: > Most likely, KeepAlive is holding processes unavailable while > sitting idle. How would I tell if that was happening? Turn it off and see if performance suddenly becomes rediculously good. :) Unfortunately even with KeepAlive off, I'm seeing it

Project organization and decoupling

2007-01-16 Thread David Abrahams
For me, Django doesn't seem to be delivering on its promise to allow me to build a collection of apps and organize them in different combinations into multiple Django projects, and the documentation I can find doesn't really give any clues about best practices for project organization. One prob

Re: Project organization and decoupling

2007-01-17 Thread David Abrahams
Stefan Foulis <[EMAIL PROTECTED]> writes: On Jan 16, 2007, at 17:52, David Abrahams wrote: For me, Django doesn't seem to be delivering on its promise to allow me to build a collection of apps and organize them in different combinations into multiple Django projects, and the do

Re: Project organization and decoupling

2007-01-17 Thread David Abrahams
"Doug Van Horn" <[EMAIL PROTECTED]> writes: You would put parent_folder and parent_folder/spam_website into your python path. So when you need a model from the foo application, you do: from foo.models import Eggs and if you need something from the settings module in the project, you do:

Queryset Evaluation

2007-01-18 Thread David Zhou
d appreciate it if someone could point me that way. I foudn a little bit about when it gets evaluated in the docs for the DB API, but it was fairly light on the details. Thanks! --- David Zhou [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this mess

Re: 'blog entries' with multipe inline images

2007-01-18 Thread David Zhou
images wherever I want them to be. But if, say, I always had a header or title graphic in the same place for each entry, I'd probably put that in the model. But if it's just random images inside of the body content, I don't think it's worth it

Re: Queryset Evaluation

2007-01-18 Thread David Zhou
of the same set displayed in different template blocks. I could use a bunch of for loops and if statements in the template logic, but that seems really inefficient and cpu heavy for just splitting up a set. --- David Zhou [EMAIL PROTECTED] --~--~-~--~~~---~--~~ Yo

Django Admin showing apps that aren't related

2007-01-18 Thread David Cramer
We have two database apps, in two different directories. Django sees these both as database_. I thought this was ok except we obviously have issues w/ permissions and content types, which we'll be changing, except tonight I came across the fun error that it's showing data from the wrong tables.

ContentTypes / App Labels / Permissions

2007-01-18 Thread David Cramer
We've run into a pretty annoying issue lately with Django. Being that our site is VERY large, and the codebase has become a framework for the smaller sites, which all run off the same load balanced servers, we began seperating content. For example: - We have www.curse-gaming.com, which is all t

Re: Queryset Evaluation

2007-01-18 Thread David Zhou
nd offset to the eventual query. So Django would combine [1:3] and [3:10] into one database hit? AFAIK, you can do those two in just sql -- Django would need to know to slice the resulting [1:10] set automatically. --- David Zhou [EMAIL PROTECTED] --~--~-~--~~~

Re: Queryset Evaluation

2007-01-18 Thread David Zhou
On Jan 18, 2007, at 4:21 PM, James Bennett wrote: On 1/18/07, David Zhou <[EMAIL PROTECTED]> wrote: So Django would combine [1:3] and [3:10] into one database hit? Accessing an object in 'b' after doing this will result in a database query. Accessing an object in 'c&#

Re: How to Upgrade Django from 0.95 to Current Dev

2007-01-18 Thread David Zhou
ype 'svn up' to sync to the latest trunk. --- David Zhou [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

newbie - subclassing newforms.Form

2007-01-26 Thread david-oz
def __init__(self, arg=None): super(NewForm, self).__init__(arg) my attributes __metaclass__ = forms.DeclarativeFieldsMetaclass After reading am I right in thinking this will cockup my next svn update? If so how should I

proper way to set up admin with SSL

2007-01-30 Thread David S.
'/var/local/source/django_src'] + ['/var/sites/ ourroot'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE our.settingsadmin PythonInterpreter admin PythonDebug On #... It seems to work! Peace, Da

Re: memcached backed

2007-01-30 Thread David S.
On Jan 30, 12:16 pm, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > Django's cache only implements a minimal subset of functions -- those > supported by *all* cache backends. You can always interact with the memcached > directly For example we clear memcached like this: from django.core.cac

Some kind of django.contrib.stats?

2007-02-05 Thread David Larlet
n for long term stats. What about an optional stats view in the admin interface? Cheers, David [1] : http://bbclone.de [2] : http://bbclone.de/demo/show_detailed.php [3] : http://www.throwingbeans.org/peastat.html --~--~-~--~~~---~--~~ You received this message

Admin convenience

2007-02-07 Thread David Abrahams
Hi, I'm building an app for scheduling conferences and am having a hard time finding a way to make it convenient for the scheduling administrator. Sessions need to be scheduled into time slots and it seems difficult to take advantage of the usual constraints to make scheduling work well. Here

ForeignKey, null, and schema evolution

2007-02-10 Thread David Abrahams
In my attempt to use ForeignKey(Track, null=True) When I actually tried to use a null Track value, I got: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response 77. response = callback(request, *callback_args, **cal

Re: ForeignKey, null, and schema evolution

2007-02-10 Thread David Abrahams
Malcolm Tredinnick <[EMAIL PROTECTED]> writes: > On Sat, 2007-02-10 at 03:34 -0500, David Abrahams wrote: >> >> In my attempt to use >> >>ForeignKey(Track, null=True) >> >> When I actually tried to use a null Track value, I got: > [...trac

Re: ForeignKey, null, and schema evolution

2007-02-10 Thread David Abrahams
David Abrahams <[EMAIL PROTECTED]> writes: > My models.py is enclosed. It doesn't have any special dependencies. > Would you mind trying to reproduce the problem? > >> Try creating a smaller project with a trimmed >> down model -- doing the standard "remov

Re: ForeignKey, null, and schema evolution

2007-02-10 Thread David Abrahams
"yary" <[EMAIL PROTECTED]> writes: > IIRC, Django's admin can't handle a field with null=True and > blank=False (which is a bit of a shame...) Try adding blank=True to > your model's field? Read my latest post and you'll see that I have tried that. It works, but only if I explicitly specify the

Re: ForeignKey, null, and schema evolution

2007-02-11 Thread David Abrahams
"Ramiro Morales" <[EMAIL PROTECTED]> writes: > On 2/10/07, David Abrahams <[EMAIL PROTECTED]> wrote: >> >> Whatever django bugs may be lurking asid, I need to move forward with >> my project ASAP so I'd really appreciate it if someone could give m

Model instance identity

2007-02-13 Thread David Abrahams
I just wrote some code that used Model instances as keys in a dict, and was surprised to find two instances in the dict that represented the same object in the database. Shouldn't that be impossible? If you can't guarantee that a given object in the database is always represented by the same Py

Re: Locale from URL Middleware

2006-05-19 Thread David Larlet
eginner in django so maybe I haven't look at the right place, feel free to answer with a simple link.Cheers,David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

remedial django - what IS a "site" exactly?

2006-05-20 Thread David Robinson
essage-ID: <[EMAIL PROTECTED]> Date: Sat, 20 May 2006 18:59:33 -0500 From: David Robinson <[EMAIL PROTECTED]> User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en Mime-Version: 1.0 Content-Type: text/plain To: django-users Subject: remedial django - wh

Re: Locale from URL Middleware

2006-05-22 Thread David Larlet
2006/5/19, jon1012 <[EMAIL PROTECTED]>: I've done an helper function that strips the selected language from thecurrent url and return it... Usefull to make a language change button..All you have to do is to make a link to the url with '/fr' for example in front of the value given by the function:Th

Re: remedial django - what IS a "site" exactly?

2006-05-23 Thread David Robinson
Many thanks to James and Adrian for explaining sites. I'm expecting to have several more questions over the coming weeks as we get further into things, and it's nice to know that the Django community is so responsive. Dave --~--~-~--~~~---~--~~ You received this

Re: xml

2006-05-24 Thread David Reynolds
.net/topics/howto/xml-howto.html Cheers, David -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@

Directory structure for pluggable apps and projects

2006-05-27 Thread David Montgomery
to move my application. The second approach creates an Apps/settings.py that I'm never going to use, since apps will take their settings from the Site where they are deployed. Thanks, David --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Please help with project setup

2006-05-30 Thread David Larlet
tatic_files/ but I'm not sure of the question. Maybe ImageFieldĀ  (http://www.djangoproject.com/documentation/model_api/#imagefield ) is what you are looking for?Cheers,David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: Please help with project setup

2006-05-30 Thread David Larlet
a title in english and a content in french... that's why language identifiers (en/fr/it/...) are often necessary.Cheers,David Larlet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Please help with project setup

2006-05-31 Thread David Larlet
case it's my last chance before I put data in database ;). Cheers,David Larlet --~--~-~--~~~---~--~~ 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@go

sorry for the stupid noob question - kwarg?

2006-06-04 Thread David Robinson
Really, I've tried looking this one up myself (you wouldn't believe how many questions I *haven't* had to ask... (thanks for well-written docs everyone)). It seems almost obvious, but I am proving to be just dense enough to not get what is this "kwarg". Dave --~--~-~--~~--

Re: sorry for the stupid noob question - kwarg?

2006-06-05 Thread David Reynolds
On 5 Jun 2006, at 6:58 am, James Bennett wrote: > > On 6/4/06, David Robinson <[EMAIL PROTECTED]> wrote: >> Really, I've tried looking this one up myself (you wouldn't >> believe how >> many questions I *haven't* had to ask... (thanks for well-wri

Re: Log file analyze

2006-06-06 Thread David Larlet
hat about a statistics page in admin interface? Maybe in the contrib module?Cheers,David Larlet --~--~-~--~~~---~--~~ 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

confused again: a "home page" can't be some special case

2006-06-06 Thread David Robinson
I'm still trying to wrap my head around some basic ideas. I appreciate the patience that has been extended my way already. Having pounded through the tutorial, I have a decent idea of how the poll app works, with a URL being associated with a function in the Poll app's view. That function th

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread David Robinson
Douglas, James, Wilson, Rudolph: Thanks - that clears things up. It's quite encouraging to see that we were pretty much headed in a viable direction. Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Subclassing in Trunk

2006-06-07 Thread David Reynolds
added, or a better way of doing it added and what sort of timescales are on this? Cheers, David -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Running two sites off the same Django installation

2006-06-13 Thread David Larlet
ngo accessing different databases? >> Daniel>>Really interesting, is it possible to have a verbose explanation of exactly what you've done or better a wiki page on django site? I think many people want to do the same. Thanks,David --~--~-~--~~~---~--~-

Re: Running two sites off the same Django installation

2006-06-13 Thread David Larlet
2006/6/13, Malcolm Tredinnick <[EMAIL PROTECTED]>: On Tue, 2006-06-13 at 10:39 +0200, David Larlet wrote:>>> 2006/6/13, Ian Holsman <[EMAIL PROTECTED] >:>> Hi Daniel.> I'm doing this right now on http://zyons.com and> http://economy

Re: Running two sites off the same Django installation

2006-06-13 Thread David Larlet
2006/6/13, Malcolm Tredinnick <[EMAIL PROTECTED]>: On Tue, 2006-06-13 at 11:21 +0200, David Larlet wrote:>>> 2006/6/13, Malcolm Tredinnick <[EMAIL PROTECTED]>:>> On Tue, 2006-06-13 at 10:39 +0200, David Larlet wrote: > >> >>

_manipulator_validate_FIELD

2006-06-13 Thread David S.
Is there a replacement for the old _manipulator_validate_FIELD magic in the post 0_91 trunk? If you can not make an instance method, then you lose, for example, "hasattr(self, "original_object")". Thanks, David S. --~--~-~--~~~---~--~~ You r

French translation of Django documentation

2006-06-17 Thread David Larlet
Hi! I'm glad to announce the french translation of Django tutorials. http://www.biologeek.com/journal/index.php/traduction-francaise-de-la-documentation-de-django-le-framework-web-python I hope it's just the beginning, feel free to add corrections and/or to participate. Cheers, Da

Problem with _post_save() on 0.9.1

2006-06-20 Thread David Reynolds
, it seems to execute the _post_save and then save to the database, hence sending an old version of the email. Am I being stupid or is this a known bug? Regards, David -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message

Re: Problem with _post_save() on 0.9.1 - Addendum

2006-06-20 Thread David Reynolds
On 20 Jun 2006, at 11:25 am, David Reynolds wrote: > I hope someone is still using 0.9.1, as I am having a small problem > with using _post_save() in a model on it. > > I am creating a newsletter type system, which has various ForeignKey > fields. When the _post_save hook is call

Re: Almost there: A little help in how template dirs under Linux

2006-06-30 Thread David Reynolds
On 29 Jun 2006, at 5:03 am, mamcxyz wrote: > > I forgot to add this details: > > django is installed in /root/django_src > > The project is in > > /root/vulcano/jhonWeb/ This is a bit off-topic, but you shouldn't really run things as root, if at all possibl

Re: Packaging django/flup for ubuntu

2006-07-05 Thread David Reynolds
ly he may help with the nightly builds. His site is at: http://www.sommitrealweird.co.uk/ With the Ubuntu packages here: http://www.sommitrealweird.co.uk/ubuntu/ and the Debian packages (funnily enough) here: http://www.sommitrealweird.co.uk/de

Re: Specify order of content items

2006-07-07 Thread David Robinson
drakepad wrote: > Thanks for clarifying the issue Arthur. Drag and drop support would be > fantastic indeed... We've got the same sort of need to specify the order of news items. And we have done it using Dojo's drag and drop. I'm not the one who did it, but the guy who did get it to work wro

Re: Specify order of content items

2006-07-08 Thread David Robinson
[EMAIL PROTECTED] wrote: > Interesting! Nice to see an example of how to integrate dojo and > django, there aren't many... > > Are you building a custom administration interface for Sputnik which > allows for the reordering of news items by use of this technique? > Did you try to implement this d

Re: Camino and Safari do not open feeds

2006-07-13 Thread David Reynolds
experiences? Hi. Are you running the development server? I've found these don't tend to work in the development server in Safari, but you when you make sure app live at a 'proper' url they will work. Cheers, David -- David Reynolds [EMAIL PROTECTED] --~--~-~--~

Threading and Django

2006-07-15 Thread David Blewett
Hi All: I'm starting to work on a webmail app in Django. I came across an improved version of imaplib1 that uses threads for some of the calls to the IMAP server. Will this cause problems in a Django / mod-python / Apache scenario? Or should I stick to plain imaplib? David Blewett 1:

Django and Threading

2006-07-15 Thread David Blewett
Hi All: I'm starting to work on a webmail app in Django. I came across an improved version of imaplib1 that uses threads for some of the calls to the IMAP server. Will this cause problems in a Django / mod-python / Apache scenario? Or should I stick to plain imaplib? David Blewett 1:

Re: drag & drop for admin-interface

2006-08-02 Thread David Robinson
patrickk wrote: > see http://demo.script.aculo.us/ajax/sortable_elements >> On Wed, 2006-08-02 at 19:50 +0200, patrickk wrote: >>> IĀ“m just doing some dojo DnD-stuff for the django admin-interface. >>> ... >>> question: would you prefer instant saving? The thing that I wasn't clear about was wh

Re: Frameworks, Documentation and the Joy of Django

2006-08-13 Thread David Larlet
(and with generic views it's possible to do that). In this case, the user doesn't understand exactly what happens but he is really impressed and want to know more about this wonderful framework. Next step is the real site one which explain exactly what happens an

Re: Django Blog software

2006-08-13 Thread David Larlet
learn Django. If there is no generic blog app it's because Django is not oriented end-user but developer and every developer needs his unique blog ;-). BTW, it's really easy to make your own. Regards, David --~--~-~--~~~---~--~~ You received this message bec

Re: Configurable LDAP authentication

2006-08-15 Thread David Robinson
Guillaume Pratte wrote: > I took the code from http://www.carthage.edu/webdev/?p=12, adapted it > and generalized it so you can specify LDAP server and other > configuration items in settings.py. ... > There is no explicit copyright in the code found at > http://www.carthage.edu/webdev/?p=12, >

Re: geographic targeting with django

2006-08-15 Thread David Blewett
You could combine the maxmind GeoIP database 1 + cross-referencing that with the CivicSpace ZIP code database 2.David Blewett1 http://www.maxmind.com/app/geolitecity 2 http://www.civicspacelabs.org/home/zipcodedbOn 8/15/06, Ian Holsman < [EMAIL PROTECTED]> wrote:Hi.does anyone know of a

Signals

2006-08-31 Thread David Blewett
o the post_save signal of several different objects (User, ContentType, etc). Any help is appreciated! David Blewett --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Cant access via fastcgi

2006-09-04 Thread David Elias
Manuel Meyer wrote: > You don't have permission to access /home/myusername/public_html/ > ultimateWeimar/django.fcgi/ on this server. In my case it was permissions, the .fcgi must be executable. > IndexError: string index out of range I was getting this error too because we must call it like thi

Re: Database events?

2006-09-10 Thread David Blewett
On 9/10/06, cyberco <[EMAIL PROTECTED]> wrote: Is this solvable with Django, or am I using the wrong framework for myproblem?Have you looked at https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/JobControl ?David --~--~-~--~~~---~--~~ You receive

where stylesheets live

2005-08-16 Thread David S .
Where stylesheets for the public interface live? What does the standalone server think its root directory is on the machine it is running on? I can only get my stylesheet working using the code from the admin base.html:

Re: unique_together across tables?

2005-08-16 Thread David S .
adrian exoweb.net> writes: > > > Is there a way to create multiple tables which share an id field? My > meaning is that ids would be unique over both tables. One way to do this with django is with a MasterTable that is responsible for the key. For the tables across which you want the un

stylesheets and "root" directory

2005-08-16 Thread David S .
Where do stylesheets for the public interface live? What does the standalone server think its root directory is on the machine it is running on? I can only get my stylesheet working using the code from the admin base.html:

links in admin not working

2005-08-17 Thread David S .
Some images are not showing up in admin. For example: "/media/img/admin/icon_searchbox.png" is not found. The images linked to in the stylesheet work fine. Is there configuration that fixes this?

{% ifnotequal %} string compare

2005-08-17 Thread David S .
I am editing the admin index.html file so that it will ignore Core and Auth and just list the user defined models. But using : {% ifnotequal app.name 'Core' %} appears to have no effect. Am I misunderstanding this tag?

meta.Admin js option

2005-08-18 Thread David S .
Since the admin templates are auto-generated, how does any JavaScript that you link in with the js option actually get used?

Re: meta.Admin js option

2005-08-18 Thread David S .
Awesome. Lucid, concise, timely. Thanks much.

Re: Adding Record Problem

2005-08-19 Thread David S .
Robin Munn gmail.com> writes: > Django will only auto-increment fields listed as AutoField. If you use > any other type (CharField, IntegerField), it's assumed that you want > to specify the primary key yourself each time. The only drawback seems that you can never specify the id when you use

Re: Recipie/tutorial for Django and no apache?

2005-08-19 Thread David S.
I have been persuing the same sort of path, i.e. SQLite, wxPython, cx_freeze for the same reasons. But I am pretty excited about Django and how quickly I can get functionality that has been so tedious to build myself. And, I am happy to go for the web app even for clients with 1 in-house user fo

serving PDF

2005-09-30 Thread David S .
? Thanks for any help. Peace, David S.

Re: serving PDF

2005-09-30 Thread David S .
ls for its clarity and the impact on usability. You can not get things done "more quickly" if you do not know how to do things or where to find out. These tutorials and references are very good at describing how things work. Thanks so much. David S.

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

2005-10-17 Thread David MacKinnon
y it's well understand that anything running on 127.0.0.1 is not able to be accessed from another machine. Regards, -David

<    5   6   7   8   9   10   11   12   13   14   >