"multiple values for keyword argument" error

2007-12-03 Thread James Utter
Hi, I've written some code which is meant to wrap around the date based generic views. For some reason, it fails with the following error: TypeError at /news/2007/ archive_year() got multiple values for keyword argument 'year' Here is the contents of my wrapper function. It retur

Hello Guys check this out

2007-12-03 Thread ivant
I love My Job. www.bangbangboomboom.com http://new-best-positions-in-bed.blogspot.com http://e-mail-scam.blogspot.com http://this-is-good-stuff.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Sending two list...using for loop in template

2007-12-03 Thread Greg
Hello, I'm sending two list to my template. I'm looping through one of my list in a for loop. Within that for loop I want to display that contents of my other list. Here is what I have so far: Here is my return statement in my view that calls the template. return

Re: Having a problem using django-admin.py runserver

2007-12-03 Thread Kyle Fox
I'd just like to report that we're having this problem as well, the same as you describe. The `shell` command seems to work fine... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: Another new Django site

2007-12-03 Thread Sandro
Just from a quick glance, the site design is quite pretty and innovative. Looks like there's a ton of stuff at work there, looks like a pretty large undertaking. Are you using satchmo for e-commerce? On Dec 3, 2:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Many, many folks on this list

Re: Python Egg issues

2007-12-03 Thread Graham Dumpleton
The only obvious thing then is too make sure that all directories from root down to the egg cache directory are actually readable/searchable to others. If a parent directory is not readable/searchable ie., o+rx, then Apache will not be able to search in there, even if the egg cache directory has u

Re: Having a problem using django-admin.py runserver

2007-12-03 Thread Russell Keith-Magee
On Dec 4, 2007 10:29 AM, Michael <[EMAIL PROTECTED]> wrote: > > So I'm using a "projectless" setup where I am manually setting > PYTHONPATH and DJANGO_SETTINGS_MODULE. For some reason my settings > module is not being loaded correctly when I use the runserver command > from the django-admin utilit

Re: Python Egg issues

2007-12-03 Thread Michael Newman
tried it fresh, tried it with stuff in it (for kicks). Either way nothing shows up, changes etc. That whole issue with mod_python might be the issue. For the meanwhile, so I can get to bed tonight I just ran easy_install. I will try without the absolute paths tomorrow. Thanks On Dec 3, 7:55 pm, G

Having a problem using django-admin.py runserver

2007-12-03 Thread Michael
So I'm using a "projectless" setup where I am manually setting PYTHONPATH and DJANGO_SETTINGS_MODULE. For some reason my settings module is not being loaded correctly when I use the runserver command from the django-admin utility. Here's an example shell session (in Windows) using an empty proje

Re: Python Egg issues

2007-12-03 Thread Graham Dumpleton
On Dec 4, 11:22 am, Michael Newman <[EMAIL PROTECTED]> wrote: > This isn't strictly a problem with Django, but for some reason I am > having problems extracting my python eggs. Mod_python comes back with: > > ExtractionError: Can't extract file(s) to egg cache > > The following error occurred whil

Re: Cannot resolve keyword 'userprofile' into field.

2007-12-03 Thread James Bennett
On 12/3/07, gkelly <[EMAIL PROTECTED]> wrote: > I'm getting the following Traceback sporadically (using Django 0.96 > and mod_python on linux). > I can hit refresh and the page comes up fine, but sometimes this error > will happen again (as if some httpd children pass and some fail). You're proba

Re: dynamic fields

2007-12-03 Thread Marty Alchin
On 12/3/07, omat <[EMAIL PROTECTED]> wrote: > In the actual case I have more fields in the Record model, and > repeating those fields in the Review model is not DRY. Ah, I see now. Using just "a" "b" and "c", I didn't realize they actually mapped directly to the other model. > If I create a mode

Python Egg issues

2007-12-03 Thread Michael Newman
This isn't strictly a problem with Django, but for some reason I am having problems extracting my python eggs. Mod_python comes back with: ExtractionError: Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 13] Permi

Re: dynamic fields

2007-12-03 Thread omat
In the actual case I have more fields in the Record model, and repeating those fields in the Review model is not DRY. If I create a model with "new" and "comment" and relate it to the Review, what would be the type of the field of the "new"? I want them to be, say, DateField for date fields, and

Cannot resolve keyword 'userprofile' into field.

2007-12-03 Thread gkelly
Hi, I'm getting the following Traceback sporadically (using Django 0.96 and mod_python on linux). I can hit refresh and the page comes up fine, but sometimes this error will happen again (as if some httpd children pass and some fail). FYI: def user_sites(self): return ",".join([s.siteID

Re: Installation - symlink vs. python setup.py install

2007-12-03 Thread Graham Dumpleton
Apache generally runs as a special user. This user must have read access to those Django modules you have symlinked into the Python site- packages directory. Thus if the files are not readable to others, or any of the directories from the root right down to where the Django software is actually in

Another new Django site

2007-12-03 Thread [EMAIL PROTECTED]
Many, many folks on this list helped me with many many things putting this together, and I thank all of you. Let me single out John M. and Tim Chase, for helping me figure out how to get data from a dyno run and import it into the site. Makes for some nifty graphs. http://classicmotorsports.net -

Thanks for the blogs

2007-12-03 Thread Michael
Just a quick thanks to those who posted so many Django blogs throughout November. In particular, Marty's (http:// gulopine.gamemusic.org/) postings on descriptors and James' (http:// www.b-list.org/weblog/categories/django/) series on NewForms were very helpful, though I saw many things I'll be g

Re: Installation - symlink vs. python setup.py install

2007-12-03 Thread Greig Rapley
Actually, I have just rerun "python setup.py install" to get my installation working again and noticed the running install_egg_info that happens last. Might this have something to do with my problems when using a symlink instead ? On Dec 3, 6:17 pm, Greig Rapley <[EMAIL PROTECTED]> wrote: > Hi,

Installation - symlink vs. python setup.py install

2007-12-03 Thread Greig Rapley
Hi, I have django (trunk) installed on MacOSX 10.5 using mod_python and it all works fine when I use python setup.py install to actually install the files retrieved via subversion. However if I follow the installation instructions to use a symlink to my SITE-PACKAGES directory I get the followin

Re: Using raw SQL with filter-support (or: speeding up MySQL views)

2007-12-03 Thread James Bennett
On 12/3/07, Karen Tracey <[EMAIL PROTECTED]> wrote: > I don't know how to go from raw sql to a QuerySet. My own custom managers > start with a model's default QuerySet and modify it using the standard > exclude(), etc. There are two ways to go from raw SQL to Django model objects. One results in

Re: foreign key search

2007-12-03 Thread Karen Tracey
On 12/3/07, Robin Becker <[EMAIL PROTECTED]> wrote: > > Well I see the search box, and when I enter the id of a known A and hit > the go > button The page that returns has > > "23 results (6380 total)" beside the go button and in the body of the page > I see > > 23 as > > > however there's no other

Re: Using raw SQL with filter-support (or: speeding up MySQL views)

2007-12-03 Thread Karen Tracey
On 12/3/07, Adrian R. <[EMAIL PROTECTED]> wrote: > > > Hello, > > I have a few models in my Django-App which are accessing MySQL-views. > They return the correct result but the performance is really bad when > I try to filter the results. I tried to speed up the view by query > optimization but tha

Re: foreign key search

2007-12-03 Thread Robin Becker
Karen Tracey wrote: > On 12/3/07, Robin Becker <[EMAIL PROTECTED]> wrote: >> >> I have a simple model with a foreign key relation >> >> class A(models.Model): >> id = models.CharField('ABCDEFG', .) > > > Do you really have an explicit field named 'id'? Do you also include > primary_ke

Re: foreign key search

2007-12-03 Thread Karen Tracey
On 12/3/07, Robin Becker <[EMAIL PROTECTED]> wrote: > > > I have a simple model with a foreign key relation > > class A(models.Model): > id = models.CharField('ABCDEFG', .) Do you really have an explicit field named 'id'? Do you also include primary_key=True over in that '' part?

Re: very slow behavior of dev server + strange errors before reaching view

2007-12-03 Thread Karen Tracey
On 12/3/07, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I'm trying to get a big project up and running again on my local > machine. I updated to the latest trunk. > > I'm getting this error before reaching my view function and after > waiting about 30 seconds while both mozill

very slow behavior of dev server + strange errors before reaching view

2007-12-03 Thread Bram - Smartelectronix
Hi, I'm trying to get a big project up and running again on my local machine. I updated to the latest trunk. I'm getting this error before reaching my view function and after waiting about 30 seconds while both mozilla and django just sit and do nothing, not even waste CPU: http://dpaste.co

foreign key search

2007-12-03 Thread Robin Becker
I have a simple model with a foreign key relation class A(models.Model): id = models.CharField('ABCDEFG', .) class B(models.Model): def __str__(self): return self.name class Admin: list_display = ('name',) list_display_links = ('name',) o

Re: dynamic fields

2007-12-03 Thread Marty Alchin
I'm a bit confused as to what you're actually trying to accomplish here. Will there always only be three fields (a, b and c), or will they actually be dynamic (and you could have many of them). If three is just an arbitrary number, I think you're looking at creating a new Model, containing "new" a

Using raw SQL with filter-support (or: speeding up MySQL views)

2007-12-03 Thread Adrian R.
Hello, I have a few models in my Django-App which are accessing MySQL-views. They return the correct result but the performance is really bad when I try to filter the results. I tried to speed up the view by query optimization but that's not good enough by half. When I execute the query to get al

dynamic fields

2007-12-03 Thread omat
Hi all, I have two models, such that, one holds a record, and the other holds reviews on that record, if any. The (simplified) models look like this: class Record(models.Model): a = models.CharField(max_length=10) b = models.DateField() c = models.IntegerField() class Review(models

Re: django 1.0 plans?

2007-12-03 Thread Karen Tracey
On 12/3/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > On 03-Dec-07, at 5:16 PM, Aljosa Mohorovic wrote: > > > if i understood correctly django book is finished, api is almost > > stable and 1.0 release could happen soon? > > please comment > > 1.0 may never come ;-) check the recent thread o

Re: Memcached Shared Caching - What if one of the servers drops out?

2007-12-03 Thread Ned Batchelder
Memcached.py (the client library) will mark a server as dead, and then continue to use the remaining servers. The tuple error seems to be in how the error is passed to mark_dead: the client code is inconsistent about what part of the failure exception it uses. Not pooling your cache won't help h

Re: django 1.0 plans?

2007-12-03 Thread Kenneth Gonsalves
On 03-Dec-07, at 5:16 PM, Aljosa Mohorovic wrote: > if i understood correctly django book is finished, api is almost > stable and 1.0 release could happen soon? > please comment 1.0 may never come ;-) check the recent thread on the developers list -- regards kg http://lawgon.livejournal.com

django 1.0 plans?

2007-12-03 Thread Aljosa Mohorovic
if i understood correctly django book is finished, api is almost stable and 1.0 release could happen soon? please comment --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

ajax and newforms problems

2007-12-03 Thread super
Some trouble using ajax in with forms. To make things simple a dumb down version I got a two fields : class MyForm(forms.Form): room = forms.ModelChoiceField(queryset=Product.objects.filter(type=1)) attending = forms.ChoiceField(required=False, choices=(('', '-'),)) However eac

Re: newbie questions

2007-12-03 Thread Kenneth Gonsalves
On 03-Dec-07, at 3:31 PM, Darryl Ross wrote: >> I don't think you can do django with only ftp access > > Sure you can, if django is installed into the server by the hosting > company. I'm in the process of getting a django hosting company in > Australia going and it's not that hard to run a djan

Re: newbie questions

2007-12-03 Thread Darryl Ross
Kenneth Gonsalves wrote: > > On 03-Dec-07, at 10:38 AM, dave's not here wrote: >> Thanks for the quick reply. The problem is I don't currently have >> shell access to the server, only ftp. Is there anything I can put into >> one of the .py or template files? Create a view that imports django and

Sixth Python User Meeting in Munich

2007-12-03 Thread Marek Kubica
Hi, just a short notice to all who live in or around Munich and are interested in a meeting: On Thursday, 13th of December 2007 starting at 18:30 will be a meeting of Python users from around Munich. Of course, it is free for anyone to discuss Django as well, some of the people attending use Dja

Re: Expiring cache entries through model save()

2007-12-03 Thread Jarek Zgoda
Malcolm Tredinnick napisaƂ(a): >> I have an interesting idea that I am not quite sure how to pursue. >> I'm wondering if any of you have figured this out already. >> >> What I would like to do is set the cache expiration for a particular >> object in the cache to be very high, and then delete the