Re: acute (á, é, etc) characters in my templates

2007-07-25 Thread James Bennett
On 7/26/07, vida <[EMAIL PROTECTED]> wrote: > I get a UnicodeDecodedError if I try to include any of these acuted- > characters in my templates. It's fine if they come from the database > (unicode) but not if they are part of the markup. > >From what I read (and tried), changing

acute (á, é, etc) characters in my templates

2007-07-25 Thread vida
I get a UnicodeDecodedError if I try to include any of these acuted- characters in my templates. It's fine if they come from the database (unicode) but not if they are part of the markup. >From what I read (and tried), changing settings.DEFAULT_CHARSET and/or settings.LANGUAGE_CODE doesn't/won't

Syndication with kwargs from url

2007-07-25 Thread Mackenzie
I am wondering how you can use args captured from your urls.py in a feed class example urls.py (r'^feeds/(?P.*)/(?P.*)/$', 'django.contrib.syndication.views.feed',{'feed_dict': feeds}), I then want to use myarg in my subclass of Feeds to do filtering on the objects for the feed. Thanks

Re: latest django version

2007-07-25 Thread james_027
hi oggie, On Jul 26, 3:39 am, oggie rob <[EMAIL PROTECTED]> wrote: > Re: TortoiseSVN, take a look athttp://tortoisesvn.net/node/87 > Short story - unless you can get your admin to change your firewall, > you can't use svn since "code" doesn't respond to https, no matter > which platform you are

Re: extending user model, a different approach

2007-07-25 Thread James Bennett
On 7/25/07, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > I realized a new way to extend user models, it is simpler than official > get_profile approach of django[1] as there is only one model to work with, > and relationships are kept on the right model, and gives a less hacky feel > than

Re: A convenient way to include images in a blog entry

2007-07-25 Thread Kai Kuehne
Hi, On 7/26/07, Patrick Anderson <[EMAIL PROTECTED]> wrote: > Make the m2m relation optional using (null = True, blank = True) in your > model This is the case. Greetings Kai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: password reset for all cached users?

2007-07-25 Thread Patrick Anderson
On Wed, 25 Jul 2007 18:39:03 -0500, James Bennett wrote: > On 7/25/07, Patrick Anderson <[EMAIL PROTECTED]> wrote: >> Anyway, why not reset password for a logged-in user only? Maybe I've >> look at the code too briefly, and there might be a reason for iterating >> through users_cache, but that

extending user model, a different approach

2007-07-25 Thread Amit Upadhyay
Hi, I realized a new way to extend user models, it is simpler than official get_profile approach of django[1] as there is only one model to work with, and relationships are kept on the right model, and gives a less hacky feel than "replaces_module" method[2]. User.add_to_class("openid",

Re: password reset for all cached users?

2007-07-25 Thread James Bennett
On 7/25/07, Patrick Anderson <[EMAIL PROTECTED]> wrote: > Anyway, why not reset password for a logged-in user only? Maybe I've look > at the code too briefly, and there might be a reason for iterating > through users_cache, but that approach sounds safer to me. Since the form accepts an email

Re: Confusion over CRUD generic views and newforms

2007-07-25 Thread Etienne Robillard
I think the default value for {{ form }} is {{ form.as_table }}, so perhaps it is safe to just use the default {{ form }} within a table element: {{ form }} As for this error, it looks like the server didnt finished serving a request and crashed. Maybe upgrading Python and a couple of

Re: password reset for all cached users?

2007-07-25 Thread Patrick Anderson
On Wed, 25 Jul 2007 22:47:05 +, Patrick Anderson wrote: > Today when trying to add 'reset password' feature into my project, I > noticed that the PasswordResetForm() 'save' method resets passwords for > all cached users. > > I have been testing the site with various users logged in, and

Re: A convenient way to include images in a blog entry

2007-07-25 Thread Patrick Anderson
On Thu, 26 Jul 2007 00:11:59 +0200, Kai Kuehne wrote: > Unfortunately I cannot keep the relation between Entry and Image because > I get an weird error (see #4633) if the m2m field is None. > > So.. is there another way to just show a list of models on an edit page > of another model without

password reset for all cached users?

2007-07-25 Thread Patrick Anderson
Today when trying to add 'reset password' feature into my project, I noticed that the PasswordResetForm() 'save' method resets passwords for all cached users. I have been testing the site with various users logged in, and when I tried to reset my password from within my public site, I

Re: A convenient way to include images in a blog entry

2007-07-25 Thread Kai Kuehne
Unfortunately I cannot keep the relation between Entry and Image because I get an weird error (see #4633) if the m2m field is None. So.. is there another way to just show a list of models on an edit page of another model without having to do a relation between them? Thanks in advance. Kai

Re: How do I know if fastcgi is installed correctly? (using dreamhost)

2007-07-25 Thread jfagnani
I'm having the same exact problem. Please keep us posted if you get anywhere. So far I've tried just about every variation I could think of based on Jeff Croft's tutorial, the Django page in the Dreamhost wiki, and the Django docs on FastCGI. I can't even get the FastCGI hello world example to

Re: Confusion over CRUD generic views and newforms

2007-07-25 Thread Matt
Eric, It seems I jumped to conclusions too quickly. I'm finding that {{ form.as_table }}, {{ form.as_ul }} and {{ form.as_p }} cause the server to error. The page is still served, but the following is in the terminal where the development server is running: Traceback (most recent call last):

Re: Confusion over CRUD generic views and newforms

2007-07-25 Thread eXt
On 25 Lip, 21:38, Matt <[EMAIL PROTECTED]> wrote: > Hi Eric, > > Unfortunately neither of those seem to do anything - the template > seems to just skip over it. I first tried with the 0.96 release, and I > have updated to the SVN version with the same result. > > Any idea what I'm doing wrong? No

Re: DB-Lookup on dynamically created fieldname

2007-07-25 Thread Andreas Pfrengle
...it can really be that easy. Thanks Doug. :) --~--~-~--~~~---~--~~ 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

Re: for path in ...

2007-07-25 Thread John Shaffer
Try this: TEMPLATE_CONTEXT_PROCESSORS = ( "satchmo.shop.context_processors.settings", ) Note that ("") becomes "" - a string rather than a tuple. You need ("",) - an comma at the end for a single-element tuple. This will show you why it's taking the first letter: for x in 'abc': print

Re: latest django version

2007-07-25 Thread kbochert
The site http://www.instantdjango.com has a download (self-extracting exe) that unzips to a complete Python 25 installation. Unzip to a temp folder then Python25/site-packages/django has version .97 pre ready to copy to your Python dir Not clear how often its is updated. Karl On Jul 25,

Poperty interfaces and tags

2007-07-25 Thread Chris Hoeppner
Hi guys! I'm wanting to implement what you can see at the django-tagging wiki page: a property interface to an object's tags. I got this working on my blog, but surprisingly I seem unable to get this working now. In my model definition, I have the following, beside other stuff: def

Re: latest django version

2007-07-25 Thread oggie rob
Re: TortoiseSVN, take a look at http://tortoisesvn.net/node/87 Short story - unless you can get your admin to change your firewall, you can't use svn since "code" doesn't respond to https, no matter which platform you are using. -rob On Jul 22, 8:20 pm, james_027 <[EMAIL PROTECTED]> wrote: >

Re: Confusion over CRUD generic views and newforms

2007-07-25 Thread Matt
Hi Eric, Unfortunately neither of those seem to do anything - the template seems to just skip over it. I first tried with the 0.96 release, and I have updated to the SVN version with the same result. Any idea what I'm doing wrong? Thanks, Matt. On Jul 25, 6:55 pm, "[EMAIL PROTECTED]" <[EMAIL

for path in ...

2007-07-25 Thread kbochert
I'm trying to get Satchmo working. I can get it to create its database, and it seems to function until I try to bring up its admin in my browser Browsing to loalhost/admin brings up a page ValueError at /admin/ Empty module name The code at the error is in django/template/context.py

Re: latest django version

2007-07-25 Thread Jay Parlar
Often times SVN has trouble getting through corporate firewalls, could that be the issue? Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: latest django version

2007-07-25 Thread Kai Kuehne
Hi James, > james_027 wrote: > > is there an easy to get the latest version of django in winxp? You could install the windows version of svn which can be found here: http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91=91=74 Works great for me. Kai

Re: latest django version

2007-07-25 Thread Forest Bond
On Wed, Jul 25, 2007 at 07:51:59PM +0100, Gerry Steele wrote: > james_027 wrote: > > I would like to use the latest django version. i am trying to use > > tortoise SVN to get the latest version, but iam always getting this > > error > > > > Error * REPORT request failed on

Re: latest django version

2007-07-25 Thread Gerry Steele
Might you have better luck using a unix environment on windows like cygwin. This pretty much uses all the same commands that everyone else on linux uses and thus might give better results. james_027 wrote: > Hi, > > I would like to use the latest django version. i am trying to use > tortoise

Re: Problems with i18n of field labels (newforms)

2007-07-25 Thread Peter Melvyn
On 7/25/07, Nathan Ostgard <[EMAIL PROTECTED]> wrote: > What import are you aliasing as _? Nothing, because I believed it is globally available and no import is neccessary. It was probably true before swap to UNICODE. And on the top of it, I got somehow deranged and assumed that _() function

free videos

2007-07-25 Thread Bob
for free movies that aren't on dvd yet go to saurav.co.uk and make an account. and in the referal box put macsrck. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Best Practices to Make your Apps Portable

2007-07-25 Thread Sebastian Macias
Thanks a lot for the feedback everyone. I have come up a perfect setup and folder structure (at least perfect for my needs) that will allow me to work on generic apps and project specific apps efficiently and just wanted to share it with everyone in case it can save a anyone a headache.

Re: Instant Django

2007-07-25 Thread cjl
YML: OK -- disregard my last post, that was wrong, too, and actually breaks things worse. I need to work some more on this, and try to replicate your error. Could you try downloading again, and trying things out from a "fresh" environment? Thanks again, -cjlesh On Jul 24, 9:48 pm, cjl

Re: Confusion over CRUD generic views and newforms

2007-07-25 Thread [EMAIL PROTECTED]
Hello, {{ form.as_ul }} or {{ form.as_table }}, etc, should work for this purpose. Hope that helps, Eric Matt wrote: > Hello group, > > I'm reasonably new to Django andconfused over how to implement generic > views for CRUD operations, specifically with respect to newforms. I'm > using 0.96

Re: A convenient way to include images in a blog entry

2007-07-25 Thread Kai Kuehne
Hi Justin, On 7/25/07, Justin Lilly <[EMAIL PROTECTED]> wrote: > I'm with Baxter. Tag your images and then just include an image of tag X > along with the story with a similar tag. > > Not sure how this might interact with specific images going with specific > articles, but its not a bad

Confusion over CRUD generic views and newforms

2007-07-25 Thread Matt
Hello group, I'm reasonably new to Django andconfused over how to implement generic views for CRUD operations, specifically with respect to newforms. I'm using 0.96 for the time being, but I'm happy to upgrade to the development version if required. What I'm trying to acheive is an automatic

Re: A convenient way to include images in a blog entry

2007-07-25 Thread Justin Lilly
I'm with Baxter. Tag your images and then just include an image of tag X along with the story with a similar tag. Not sure how this might interact with specific images going with specific articles, but its not a bad generalized solution, I think. On 7/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>

Re: Problem creating choices in Tutorial Part 1

2007-07-25 Thread Dynomite2910
Doh! As I stated and figured it would be... a total noob mistake. Thanks Nathan - I will look even harder before posting next time. D. On Jul 25, 12:37 pm, Nathan Ostgard <[EMAIL PROTECTED]> wrote: > As the error says, you're using self.question in the Choice model -- > it should be

Re: A convenient way to include images in a blog entry

2007-07-25 Thread [EMAIL PROTECTED]
I said to hell with it and put all the related images in a slideshow alongside the entry. On Jul 25, 11:05 am, "Kai Kuehne" <[EMAIL PROTECTED]> wrote: > Hi Patrick, > > On 7/25/07, Patrick <[EMAIL PROTECTED]> wrote: > > > What I did in one of my projects is to use a JS editor (at this point I >

Re: Problems with i18n of field labels (newforms)

2007-07-25 Thread Nathan Ostgard
What import are you aliasing as _? You have three options for gettext calls: - ugettext, which translates as soon as it's *called*. - ugettext_lazy, which does not translate until the attribute is *accessed*. - ugettext_noop, which translates at the last possible moment, such as when the value

Re: Problem creating choices in Tutorial Part 1

2007-07-25 Thread Nathan Ostgard
As the error says, you're using self.question in the Choice model -- it should be self.choice. e.g., change this: class Choice(models.Model): # ... def __unicode__(self): return self.question to this: class Choice(models.Model): # ... def __unicode__(self): return self.choice

Re: A convenient way to include images in a blog entry

2007-07-25 Thread Kai Kuehne
Hi Patrick, On 7/25/07, Patrick <[EMAIL PROTECTED]> wrote: > What I did in one of my projects is to use a JS editor (at this point I > opted for WYM Editor), which has a function to insert image tags if you > give it a URL. I think that is the most-widely used approach. I don't like such

Re: Uploading 1 image...making multiple dimensions of that image?

2007-07-25 Thread Greg
John, And how would I go about installing the 'contrib.thumbnails.7.patch'? Would I use svn? On Jul 25, 9:43 am, Patrick <[EMAIL PROTECTED]> wrote: > On Tue, 24 Jul 2007 20:21:45 -0500, John Shaffer wrote: > > You might want to look at #4115, which adds a thumbnail filter: >

Re: Multiple for loops, alternating between key and value?

2007-07-25 Thread drkfce
Thanks, Russ! Your solution worked fine, however, the format that I will ultimately be given is different than the one I gave you, with it being mostly dictionaries, rather than lists. Thankfully, I was able to figure out the loops enough to get the structure nearly correct, except for one

Re: learning django testing

2007-07-25 Thread Bob T.
> I don't have any idea what is the > testing all about. James, you might want to take a look at Dive Into Python [1] as a starting place. It has a couple good chapters on testing and test driven development. Bob [1] http://diveintopython.org/unit_testing/index.html

Problem creating choices in Tutorial Part 1

2007-07-25 Thread Dynomite2910
Hello, Apologies for a noob question/problem. I have searched the forum and can't find anyone having the same issue. I am working through the tutorial following everything exactly as written. (http:// www.djangoproject.com/documentation/tutorial01/) Everything works as expected until I get to

Re: Model design problem ? (double ForeignKey)

2007-07-25 Thread Tim Chase
>>responsable = models.ForeignKey('Personne', ...) >> >> if you need to forward-reference a model that hasn't yet been >> defined. > > thanks for the anwser. > I dont saw this particular sentence. The magic is in the phrase "If you need to create a relationship on a model that has not yet

Re: ANN: Screencast - Learn Django: Create a Wiki in 20 minutes

2007-07-25 Thread Cam McVey
Really good stuff, Siddhi Do more!! --~--~-~--~~~---~--~~ 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, send

Re: Uploading 1 image...making multiple dimensions of that image?

2007-07-25 Thread Patrick
On Tue, 24 Jul 2007 20:21:45 -0500, John Shaffer wrote: > You might want to look at #4115, which adds a thumbnail filter: > http://code.djangoproject.com/ticket/4115 > > Using this, instead of making multiple copies of the image when you > upload it, you simply upload the original

Re: A convenient way to include images in a blog entry

2007-07-25 Thread Patrick
On Wed, 25 Jul 2007 01:43:53 +0200, Kai Kuehne wrote: > Hi list! > In the last past hours I've been thinking about how to include images > into my django blog application. > > At first, I added a new field to my "Entry" django model and named it > "image". This worked but I decided that (maybe)

Re: Model design problem ? (double ForeignKey)

2007-07-25 Thread Master.h2zu
> >responsable = models.ForeignKey('Personne', ...) > > if you need to forward-reference a model that hasn't yet been > defined. thanks for the anwser. I dont saw this particular sentence. But now I have this message: directory.unite: Reverse query name for field 'responsable' clashes with

Re: Model design problem ? (double ForeignKey)

2007-07-25 Thread Tim Chase
> I like to do something like that in a app models.py: > > > class Unite(models.Model): > responsable = models.ForeignKey(Personne, verbose_name='The > Chief', blank=True) > ... > > class Personne(models.Model): > unite = models.ForeignKey(Unite,null=True) > > > > And I

Model design problem ? (double ForeignKey)

2007-07-25 Thread Master.h2zu
I like to do something like that in a app models.py: class Unite(models.Model): responsable = models.ForeignKey(Personne, verbose_name='The Chief', blank=True) ... class Personne(models.Model): unite = models.ForeignKey(Unite,null=True) And I have this error message in

Re: Best Practices to Make your Apps Portable

2007-07-25 Thread Wolfram Kriesing
That's a valuable info. To me it seemed some Django-standard and those things are supposed to be well thought through, therefore we also broke our heads over it a couple times ... Thanks for the info. Wolfram On 7/25/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 7/24/07, Sebastian

problem to save..

2007-07-25 Thread Marco A.
HI ! In model I have : from django.db import models # Create your models here. class User(models.Model): User = models.CharField(maxlength=200) Pasw = models.CharField(maxlength=16) def __unicode__(self): return self.question def was_published_today(self): return

Re: problem to save..

2007-07-25 Thread Dave Rowe
On Wed, 25 Jul 2007 15:33:19 +0200, Horst Gutmann <[EMAIL PROTECTED]> wrote: > > Marco A. wrote: >> HI ! >> In model I have : >> >> from django.db import models >> >> # Create your models here. >> class User(models.Model): >> User = models.CharField(maxlength=200) >> Pasw =

Re: problem to save..

2007-07-25 Thread Horst Gutmann
Marco A. wrote: > HI ! > In model I have : > > from django.db import models > > # Create your models here. > class User(models.Model): > User = models.CharField(maxlength=200) > Pasw = models.CharField(maxlength=16) > def __unicode__(self): > return self.question > def

Re: Best Practices to Make your Apps Portable

2007-07-25 Thread Adrian Holovaty
On 7/24/07, Sebastian Macias <[EMAIL PROTECTED]> wrote: > My dilemma is... what is the point of having projects and apps if the > applications created for my project won't be portable in other > projects (becase the namespaces will always start with the project > name). I can't just copy and app

Re: Why does direct_to_template require a db?

2007-07-25 Thread Jeremy Dunck
On 7/25/07, omat <[EMAIL PROTECTED]> wrote: > > Thanks for the reply... > > This is a simple application that highlights source code of a remote > resource, so I don't need sessions either. OK, but you've still not set TEMPLATE_CONTEXT_PROCESSORS. This setting is used any time RequestContext is

Re: Why does direct_to_template require a db?

2007-07-25 Thread omat
To clarify, in urlpatterns: (r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'index.html'}) causes the mentioned problem, but (r'^$', 'highlighter.views.index'), works fine, where "highlighter.views.index" is def index(request): return

Re: ANN: Screencast - Learn Django: Create a Wiki in 20 minutes

2007-07-25 Thread Joe Bloggs
Lovely tutorial - now all we need are newforms ... etc as these are really useful ways to learn On 7/25/07, Siddhi <[EMAIL PROTECTED]> wrote: > > > Hi, > > I've create a tutorial screencast for Django. It runs for about 20 > minutes and demonstrates creating a simple wiki app in Django. I've >

Re: transaction commit

2007-07-25 Thread Nimrod A. Abing
On 7/25/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote: > > Nimrod, > > NAA> On 7/25/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote: > >> >> Yes, I read carefuly your question and thought the answer was > >> >> straighforward. I don't understand why you don't want decorators, > but

Re: Why does direct_to_template require a db?

2007-07-25 Thread omat
Thanks for the reply... This is a simple application that highlights source code of a remote resource, so I don't need sessions either. After removing the sessions too, I end-up with a minimal settings file: http://dpaste.com/15278/ Now, django raises an AttributeError and complains that:

ANN: Screencast - Learn Django: Create a Wiki in 20 minutes

2007-07-25 Thread Siddhi
Hi, I've create a tutorial screencast for Django. It runs for about 20 minutes and demonstrates creating a simple wiki app in Django. I've uploaded it to showmedo. Check it out here - http://www.showmedo.com/videos/video?name=110=110 Any feedback would be welcome. -- Siddharta Govindaraj

Re: Using session variable in models

2007-07-25 Thread Arnold Chen
You know? you are superb!!! Arnold On Jul 25, 7:19 am, "Wolfram Kriesing" <[EMAIL PROTECTED]> wrote: > and i forgot, this allows you to access the property "name" of the > object anywhere seemlessly, in the template, in the code, etc. this is > pretty neat imho :-) > > wolfram > > On 7/25/07,

Re: Customizing the settings configuration

2007-07-25 Thread Wolfram Kriesing
the mentioned "local_config.py.default" is ONLY a template for copying, its never really used. wolfram On 7/25/07, Wolfram Kriesing <[EMAIL PROTECTED]> wrote: > we are doing the following pretty successfully: > inside settings.py > -- > > import local_config > > DEBUG =

Re: Customizing the settings configuration

2007-07-25 Thread Wolfram Kriesing
we are doing the following pretty successfully: inside settings.py -- import local_config DEBUG = local_config.DEBUG TEMPLATE_DEBUG = local_config.DEBUG LOG_LEVEL = local_config.LOG_LEVEL DATABASE_ENGINE = local_config.DATABASE_ENGINE DATABASE_NAME =

Re: Using session variable in models

2007-07-25 Thread Wolfram Kriesing
and i forgot, this allows you to access the property "name" of the object anywhere seemlessly, in the template, in the code, etc. this is pretty neat imho :-) wolfram On 7/25/07, Wolfram Kriesing <[EMAIL PROTECTED]> wrote: > after some investigation and help from the list i took this approach >

Re: Using session variable in models

2007-07-25 Thread Wolfram Kriesing
after some investigation and help from the list i took this approach and have to say it works great: from django.utils import translation @property def name(self): if translation.get_language()=="en": return self.name_en else: return self.name_de

Using session variable in models

2007-07-25 Thread Arnold Chen
I am implementing a multi-lingual product catalog website with Django. It is in English (default), Trad. Chinese and Simp. Chinese. I want to let user to choose the language they want, and the system display the corresponding product name (in the selected language). The product class is

Problems with i18n of field labels (newforms)

2007-07-25 Thread Peter Melvyn
Hi all, I'm trying to embed login form into each page. I implemented it using new forms as inclusion tag. Form model looks like: ... sf_name = forms.CharField(required=True, label=_('Username:'), max_length=30, widget=forms.TextInput(attrs={'class':'wsu-login-edit'})) ... If I change

Re: transaction commit

2007-07-25 Thread Andrey Khavryuchenko
Nimrod, NAA> On 7/25/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote: >> >> Yes, I read carefuly your question and thought the answer was >> >> straighforward. I don't understand why you don't want decorators, but >> >> you >> >> could just check the decorator definition to read what

domain name based URL dispatch

2007-07-25 Thread Eratothene
I really enjoy django regex-based urlpatterns, but I ran onto the trouble how to realize such functionality, site uses a lot of domain name URL dispatch. Some thing like this: blogs.mysite.com/PATH wikis.mysite.com/PATH tags.mysite.com/PATH And so on. How to make such in django, need something

User Registration Form

2007-07-25 Thread Jack Woods
Hey again, I don't want to abuse the group, but I'm stumped again. I'm trying to render a form, but the (supposedly) auto-generated form fields aren't showing up. Here's part of register.html: UserName: {{ form.username }} Email: {{ form.email }} Password: {{ form.password1 }} Password

Re: transaction commit

2007-07-25 Thread Nimrod A. Abing
Hello Andrey, > NAA> On 7/25/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote: > >> Yes, I read carefuly your question and thought the answer was > >> straighforward. I don't understand why you don't want decorators, but > you > >> could just check the decorator definition to read what

Re: unbound method get_profile()

2007-07-25 Thread Jack Woods
Works! New to Django/python, and you just solved an hour's worth of head trauma. Thanks Russ! On Jul 25, 2:33 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 7/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > def profile(request): > > template_name =

Re: Shift a QuerySet?

2007-07-25 Thread Russell Keith-Magee
On 7/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Oops, that should read "Cannot resolve keyword 'playlist_aggreation' > into field", even though I am messing with song aggregations and > playlist aggregations :) Apologies - I got tied up in underscores :-) Try:

Re: unbound method get_profile()

2007-07-25 Thread Russell Keith-Magee
On 7/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > def profile(request): > template_name = 'user_profile.html' > obj_list = User.get_profile() ... > unbound method get_profile() must be called with User instance as > first argument (got nothing instead) Look closer at

Re: Shift a QuerySet?

2007-07-25 Thread [EMAIL PROTECTED]
Oops, that should read "Cannot resolve keyword 'playlist_aggreation' into field", even though I am messing with song aggregations and playlist aggregations :) On Jul 24, 11:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks! > > All of your workarounds involving filter didn't work,

Re: Shift a QuerySet?

2007-07-25 Thread [EMAIL PROTECTED]
Thanks! All of your workarounds involving filter didn't work, erroring with "Cannot resolve keyword 'song_aggregation' into field", which makes sense since I really wanted to go the other way around, I think. Anyways, after some munging with 'extra', as per your suggestion, I got it working!

Re: List with pagination, sorting and simple search interface

2007-07-25 Thread Przemek Gawronski
> Thanks. Finally I've used PaginatorPag from your link (with some > changes) and > Sortable Headers (from djangosnippets) with some changes too, newforms > to create search form and generic list. > Changes I had to do were necessary because each of those components - > sort, filter and

unbound method get_profile()

2007-07-25 Thread [EMAIL PROTECTED]
Hey all, I feel like I may be missing a small thing, but here it is. from django.shortcuts import render_to_response from django.template import RequestContext from django.contrib import auth def profile(request): template_name = 'user_profile.html' obj_list =