Re: Django DocString Tests IO Issue

2009-12-03 Thread Dave Fowler
othing error. So its not that its printing out extra data, its that it's printing out the results when instead it should be returning them. On Dec 3, 2:37 am, Russell Keith-Magee wrote: > On Thu, Dec 3, 2009 at 6:29 PM, Dave Fowler wrote: > > My Django tests have starte

Django DocString Tests IO Issue

2009-12-03 Thread Dave Fowler
My Django tests have started to print out the results instead of registering them for the test results. You can see here, as the tests are run it prints out the True and False results (where normally it just prints out a list of periods) that the docstring tests are expecting, and then latter er

Re: What is the best way to extend the User Model

2009-04-03 Thread Dave Fowler
Great, thanks guys! Just wanted to make sure I wasn't missing anything. On Apr 2, 8:46 pm, Malcolm Tredinnick wrote: > On Thu, 2009-04-02 at 18:29 -0700, Dave Fowler wrote: > > [...] > > > Profile.objects.all().select_related() > > > But it seems weird to b

What is the best way to extend the User Model

2009-04-02 Thread Dave Fowler
I'm about to do my umpteenth Django app and I'm just wondering if there is a new standard (better) way to extend the User model. I've used this method http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/ And a few others, but all of them keep the User and Profile objects s

Django Cached Sessions Logout Login

2009-03-26 Thread Dave Fowler
I'm using memcached sessions and having an issue. When I log out of my site with one user it will not let me log in with another. I have to delete my cookies before I can log into the site with a different user. Anyone run into this? Ideas on fixing? Thanks. --~--~-~--~~--

Re: Dynamically Changing Cache Settings

2009-03-09 Thread Dave Fowler
wrote: > On Mon, 2009-03-09 at 21:28 -0700, Dave Fowler wrote: > > Thanks.  So to summarize, > > > No one knows of a way to change memcached settings without having to > > re-load the django settings > > They're not intended to be changed like that, which is why you ha

Re: Dynamically Changing Cache Settings

2009-03-09 Thread Dave Fowler
ReloadingSourceCode > >  http://blog.dscpl.com.au/2008/12/using-modwsgi-when-developing-django... >  http://blog.dscpl.com.au/2009/02/source-code-reloading-with-modwsgi-o... > > to understand what modes it works in and what it gives you. > > Graham > > On Mar 10, 12:45 pm,

Re: Dynamically Changing Cache Settings

2009-03-09 Thread Dave Fowler
Thanks, I'm currently under mod_python... maybe I should switch. On Mar 9, 8:33 pm, Alex Gaynor wrote: > On Mon, Mar 9, 2009 at 8:31 PM, Dave Fowler wrote: > > > I'm running Django with memcached on EC2.  We frequently turn on or > > off different servers wi

Dynamically Changing Cache Settings

2009-03-09 Thread Dave Fowler
I'm running Django with memcached on EC2. We frequently turn on or off different servers with memcached running on each. To configure your memcached the docs suggest you list them in your settings file: CACHE_BACKEND = 'memcached://172.19.26.240:11211;172.19.26.242:11211/' The only problem wit

Re: Admin get_urls

2009-02-01 Thread Dave Fowler
Daniel, thanks for the response I'm on the latest svn version d...@django$ svn up At revision 9803. so my version shouldn't be the issue. On Feb 2, 1:44 am, Daniel Roseman wrote: > On Feb 1, 10:11 pm, Dave Fowler wrote: > > > > > I'm adding new views to my

Re: Auction app

2009-02-01 Thread Dave Fowler
There's Django Satchmo http://www.satchmoproject.com/ But it doesn't do auctions yet. I haven't heard of anything else... On Feb 1, 12:10 pm, Erik Allik wrote: > Does anyone know of an app written for Django that implements a kind   > of (simple) web-auction functionality suitable for, say, s

Re: Customized model methods

2009-02-01 Thread Dave Fowler
Well you might want to start by looking into django-tagging http://code.google.com/p/django-tagging/wiki/UsefulTips Install that for easy tags, and that link to the useful tips shows how to retrieve and set tags. Also instead of doing a lot of is_this() and is_that() you will probably want to d

Admin get_urls

2009-02-01 Thread Dave Fowler
I'm adding new views to my admin models. The documentation is here: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#get-urls-self and the following is my implementation ( I think the same thing ) from django.conf.urls.defaults import * class AisleAdmin(admin.ModelAdmin): def get_ur

Re: Phantom Query

2008-02-21 Thread Dave Fowler
help. That's the only way i would have found it. On Feb 21, 2:27 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2008-02-21 at 00:37 -0800, Dave Fowler wrote: > > I have a phantom query that is just killing my database. I have a > > model named Stats and django

Re: Phantom Query

2008-02-21 Thread dave fowler
yes, i've taken them all out, even the ones that shouldn't have gotten close to my stats_link table 2008/2/21 Jarek Zgoda <[EMAIL PROTECTED]>: > > Dave Fowler napisał(a): > > > I have a phantom query that is just killing my database. I have a > > model na

Phantom Query

2008-02-21 Thread Dave Fowler
I have a phantom query that is just killing my database. I have a model named Stats and django is executing the equivalent to Link.objects.all() in my Stats app. # Query_time: 20 Lock_time: 0 Rows_sent: 659528 Rows_examined: 659528 SELECT `stats_link`.`id`,`stats_link`.`title`,`stats_link`.`url`

Domain Parsing Question

2008-02-18 Thread Dave Fowler
This doesn't have a lot to do with django, but python and web programming. I'm having an issue parsing the sub domain from a lot of non-US urls. In the US the format is always subdomain.domain.sufix or domain.sufix. Easy to parse. In the uk for example though the format is subdomain.domain.co

Django Connections

2008-02-08 Thread Dave Fowler
ns its own django.db.connection.cursor() each time it is called. Is this bad practice? Would this be using up my connection queue? Thanks Dave Fowler --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&quo

Re: Deploying Django with Apache

2008-02-08 Thread Dave Fowler
If you haven't already, you need to start the development server ./manage.py runserver 0.0.0.0:8000 To get it to work with apache you have to set up a few more things, and then it wouldn't be on port 8000. Docs on getting it running on apache http://www.djangoproject.com/documentation/modpytho