Re: About the Django URL tag {% url %}……

2012-08-29 Thread Scarl
I am so sorry……I didn't provide the render params... -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/04wrFi8MWRcJ. To post to this group, send email to djan

About the Django URL tag {% url %}……

2012-08-29 Thread Scarl
My python version is 2.7.2 , and django version is 1.2.7 I have a test just now. If i put the name parameter in mysite.urls like url(r'^test/$', 'testpage', name='www'), the {% url www %} can work... But when I put the name parameter in mysite.myapp.urls like url(r'help/$', 'testpage', name='www'

Re: Form field with suggestions rather than binding choices

2012-08-29 Thread Giuseppe Saviano
On Wed, Aug 29, 2012 at 4:17 PM, Vikas Rawal wrote: > I want to have a field in which the drop-down menu lists some > suggestions that the user may choose from, or if nothing suits, the > user may enter something other than what is available on the menu. I think you should use a properly modified

Re: Combinable generic CBVs

2012-08-29 Thread Melvyn Sopacua
On 29-8-2012 18:46, Rainy wrote: > On Aug 29, 3:10 am, Melvyn Sopacua wrote: >> On 29-8-2012 4:44, Rainy wrote: >> >>> When I use CBVs, I nearly always end up needing to mix different types in >>> the same view, e.g. detail view and list view, list view and modelform >>> view, etc. I really like C

Can I run django tests in pydev's pyunit view?

2012-08-29 Thread jyria
Im used to JUnit testing in eclipse and Im wondering if I can hook up pyunit view with django tests. I would like to start my tests effortlessly within eclipse, pressing Ctrl+F11 or something like that and get red or a green bar. Currently I'm running tests in console and colorize output with f

Re: Combinable generic CBVs

2012-08-29 Thread Rainy
On Aug 29, 3:10 am, Melvyn Sopacua wrote: > On 29-8-2012 4:44, Rainy wrote: > > > When I use CBVs, I nearly always end up needing to mix different types in > > the same view, e.g. detail view and list view, list view and modelform > > view, etc. I really like CBVs but I feel this is the one shortc

post_syncdb handler never called in an app without models?

2012-08-29 Thread giovanni allegri
I premit that I've never used Django signals, so forgive if it's a trivial question. I have an app without models (models.py empty), but I would like to add custom DB data after every syncdb. I thought I could use the post_syncdb signal to connect my handler method. I wrote it inside management.

Form field with suggestions rather than binding choices

2012-08-29 Thread Vikas Rawal
I want to have a field in which the drop-down menu lists some suggestions that the user may choose from, or if nothing suits, the user may enter something other than what is available on the menu. In other words, I want the menu to give suggestions rather than choices that are validated against va

Re: Column widths in TabularInline

2012-08-29 Thread Vikas Rawal
> How do i customise width of different columns in a TabularInline object in my > admin interface. For record, I finally managed to resize form fields using instructions given here: http://blogs.law.harvard.edu/rprasad/2011/08/31/django-admin-resizing-form-fields-for-tabularinline/ Thanks very

Re: Django IMAGESTORE app help to - create a photo album

2012-08-29 Thread Nicolas Emiliani
On Wed, Aug 29, 2012 at 4:57 AM, hasan faisal wrote: > My project require- user photo upload and album creation ( like facebook > photo album ) ,where one user can upload multiple photos in one album , can > upload multiple album. > > After search I found django imagestore app is handy enough. Bu

Django IMAGESTORE app help to - create a photo album

2012-08-29 Thread hasan faisal
My project require- user photo upload and album creation ( like facebook photo album ) ,where one user can upload multiple photos in one album , can upload multiple album. After search I found django imagestore app is handy enough. But unfortunately I did not find any example or tutorial abo

Re: reverse function giving me NoReverseMatch exception

2012-08-29 Thread nav
Thanks Sebastian that worked. Can't believe it was that simple been breaking my head on this for hours! Cheers, nav On Wednesday, August 29, 2012 12:19:22 PM UTC+5:30, Sebastian wrote: > > On Tue, 28 Aug 2012 23:35:01 -0700 (PDT) > nav > wrote: > > > BACKEND = r'(?P[a-z])' > > Your BACKEND pa

Re: Combinable generic CBVs

2012-08-29 Thread Melvyn Sopacua
On 29-8-2012 4:44, Rainy wrote: > When I use CBVs, I nearly always end up needing to mix different types in > the same view, e.g. detail view and list view, list view and modelform > view, etc. I really like CBVs but I feel this is the one shortcoming that I > constantly run into that makes CBVs