access fields value in template

2011-09-17 Thread Phang Mulianto
hi .. i have a pagination objects : in my view i got query and paginate it using this : objects = paginator.page(page) then the objects goes into the view template. i can populate the field value using this template : {% for object in objects.object_list %} {{ object.title }} {{

Re: request.user not pickable anymore

2011-09-17 Thread Torsten Bronger
Hallöchen! Łukasz Rekucki writes: > On 16 September 2011 22:05, Torsten Bronger > wrote: > >> this means that we don't have to do anything. > > Not really. To 1.4 not be affected, someone needs to write a patch > for that ticket. Of course you are right. I was

Re: intercept calls to reverse(..) in tests

2011-09-17 Thread Reikje
Okay I am having some troubles getting this to work. In my application I am using WebTest and django-webtest to do template testing. In order to monkeypatch the django.core.urlresolvers.reverse function, I have created a new Test base that looks like this: class FacebookWebTest(WebTest): def

Re: access fields value in template

2011-09-17 Thread dm03514
You can access just the values by the values property, {% for value in object.values %} {{ value }} {% endfor %} On Sep 17, 4:33 am, Phang Mulianto wrote: > hi .. > > i have a pagination objects : > > in my view i got query and paginate it using this : > >       objects =

Re: intercept calls to reverse(..) in tests

2011-09-17 Thread DrBloodmoney
On Sat, Sep 17, 2011 at 7:47 AM, Reikje wrote: > Okay I am having some troubles getting this to work. In my application > I am using WebTest and django-webtest to do template testing. In order > to monkeypatch the django.core.urlresolvers.reverse function, I have > created

Re: Removing SECRET_KEY from settings.py

2011-09-17 Thread DrBloodmoney
On Fri, Sep 16, 2011 at 8:54 PM, Tim Chase wrote: > Just returning to some Django work after a time away, I (re)started an old > project in 1.3 and hit an early issue.  I'd like to keep my settings.py > under revision-control that is somewhat publicly accessible,

When set SESSION_ENGINE to memcached, Django website halts

2011-09-17 Thread Yifu Diao
I have set up memcached in Django using Pylibmc binding: CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache', 'LOCATION': ['10.241.1.1:11211', '10.241.1.2:11211',] } } I tested on server with django shell, and the

Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2011-09-17 Thread Alec Taylor
Good afternoon, I plan on using Pinax for a project I'm doing (releasing project under New BSD or similar). My Learning Plan is as follows: 1. https://docs.djangoproject.com/en/dev//intro/tutorial01/ https://docs.djangoproject.com/en/dev//intro/tutorial02/

admin extension not being loaded

2011-09-17 Thread kcstrom
I know I have to be missing something simple - I've followed the instructions at this docand have tried extending several different files from the admin site. I've placed an index.html in the /admin// directory and tried to override

Re: is photologue still maintained?

2011-09-17 Thread Justin
Hey, I'm the original dev of both Photologue and ImageKit. ImageKit is being actively maintained but I'm not using Photologue in any projects anymore so it's hard to find time to keep it up. The next version was planned to be a complete break, as in not backwards compatible, and based on

Admin coding guidelines order?

2011-09-17 Thread Micky Hulse
Hello, I follow the rules on this page for my models (and other files/code): But are what about the admin.py file? Sometimes my admin classes can get pretty cluttery (form, display_on_top,

Re: Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2011-09-17 Thread Russell Keith-Magee
On Sat, Sep 17, 2011 at 3:17 PM, Alec Taylor wrote: > Good afternoon, > > I plan on using Pinax for a project I'm doing (releasing project under > New BSD or similar). > > My Learning Plan is as follows: > 1. https://docs.djangoproject.com/en/dev//intro/tutorial01/ >

Re: Admin coding guidelines order?

2011-09-17 Thread Micky Hulse
On Sat, Sep 17, 2011 at 4:10 PM, Micky Hulse wrote: > But are what about the admin.py file? How's this for organization(?): I guess I am curious how other folks would go about organizing things. :) Thanks! Micky -- You received this

Re: admin extension not being loaded

2011-09-17 Thread kcstrom
It looks like index.html cannot be overridden per app, only per site. From the above link: " Not every template in contrib/admin/templates/admin may be overridden per app or per model. The following can: - app_index.html - change_form.html - change_list.html -

Re: Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2011-09-17 Thread Alec Taylor
Thanks Russ, I'll use that method. :] 2011/9/18 Aesha Umelmumenen : > > > On Sun, Sep 18, 2011 at 2:24 AM, Russell Keith-Magee > wrote: >> >> On Sat, Sep 17, 2011 at 3:17 PM, Alec Taylor >> wrote: >> > Good afternoon, >> >

Re: Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2011-09-17 Thread Alec Taylor
Also, quick tutorial question; are there a good set of video tutorials (i.e. on YouTube or metacafe) for DJango? /me finds the most resources he has at his disposal the quicker he learns On Sep 18, 3:43 pm, Alec Taylor wrote: > Thanks Russ, I'll use that method. > > :] >

How to use SESSION_COOKIE_DOMAIN on two subdomains

2011-09-17 Thread Wim Feijen
Hello, I'd like to share the same session across two subdomains, namely: crm.trumpetcms.nl wtsadvocaten.trumpetcms.nl Do I have to set the SESSION_COOKIE_DOMAIN in both settings.py files? Or just in one? Is this line correct? SESSION_COOKIE_DOMAIN = '.trumpetcms.nl' I am hosting the projects