Re: increase size of a charfield

2006-10-29 Thread Benedict Verheyen
RajeshD schreef: > Here's one solution: > > When you write out your textarea, encapsulate it in a div element with > a class attribute. For example, > > {{form.address}} > > or > > {{form.address}} > > and so on. > > Then, in your stylesheet, you can target those specific textarea > elements

Re: UTF8 character set problem

2006-10-29 Thread Pythoni
Here are MySQL settings, both on Linux and XP windows LINUX MySQL settings +--++ | Variable_name| Value | +--++ | character_set_client | latin1

admin returning 404 when user is clicked

2006-10-29 Thread Bryan Murdock
I have a blog application, and when I click on a user in the admin, so it tries to go to: http://myblog.example.com/admin/auth/user/1/ I get a 404. I have no idea what's going on. I have another checkout of this project using a different, development database, running with the development serv

Re: "first_name" -> "First Name"

2006-10-29 Thread Rares Vernica
Actually I mean this transformation: "first_name" -> "First name". Thanks, Ray Rares Vernica wrote: > Hi, > > Where is the django function that does the "first_name" -> "First Name" > transformation? (The function is used by the Admin interface.) > > Thanks a lot, > Ray > > > > > --~--~

"first_name" -> "First Name"

2006-10-29 Thread Rares Vernica
Hi, Where is the django function that does the "first_name" -> "First Name" transformation? (The function is used by the Admin interface.) Thanks a lot, Ray --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Firefox Quirks

2006-10-29 Thread Kenneth Gonsalves
On 30-Oct-06, at 6:21 AM, shidan wrote: > Some of my textfields have a yellow background others have have white. > There is nothing in my css to differentiate the two two types. required - non-required? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-

Re: Firefox Quirks

2006-10-29 Thread shidan
Thanks guys, that was it. On Oct 29, 8:13 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 10/29/06, shidan <[EMAIL PROTECTED]> wrote: > > > Some of my textfields have a yellow background others have have white. > > There is nothing in my css to differentiate the two two types. If I > > hardco

Re: Using query sets to get a filtered list across models

2006-10-29 Thread Russell Keith-Magee
On 10/30/06, Ceph <[EMAIL PROTECTED]> wrote: > > What I need to pull is a list of Items using the data from the Render > model that represents the latest Revision of an Item. I am currently > doing this easily with raw SQL, but this seems like something that > Django should be able to do for me.

Re: Firefox Quirks

2006-10-29 Thread James Bennett
On 10/29/06, shidan <[EMAIL PROTECTED]> wrote: > Some of my textfields have a yellow background others have have white. > There is nothing in my css to differentiate the two two types. If I > hardcode it without using Django this didn't happen but I can't see how > this can be related to django in

Re: Firefox Quirks

2006-10-29 Thread Ceph
Do you have any sort of Google Toolbar or any addons (or Firefox itself) that are set to remember form field information? The reason the Django (admin, presumably?) code will highlight is based on field names, so if your text field ends up with name="email", the toolbar will recognize it. In contr

Firefox Quirks

2006-10-29 Thread shidan
Some of my textfields have a yellow background others have have white. There is nothing in my css to differentiate the two two types. If I hardcode it without using Django this didn't happen but I can't see how this can be related to django in anyway. Anyone experienced the same thing? BTW, this

Using query sets to get a filtered list across models

2006-10-29 Thread Ceph
I followed the tutorials and have gone through the manual (all nicely written, by the way), but I'm having trouble trying to wrap my head around using Query Sets to get myself through this. I have the following (abbreviated) models: class Item( models.Model ): pass class Render( models.Mode

Re: Templates and Views - what counts as "logic"?

2006-10-29 Thread ringemup
That definitely looks feasible - thanks! --~--~-~--~~~---~--~~ 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: Templates and Views - what counts as "logic"?

2006-10-29 Thread Russell Keith-Magee
On 10/29/06, ringemup <[EMAIL PROTECTED]> wrote: > > Does that mean that this is really view logic? It seems a shame to > have to write a custom view function just to do something that's as > simple and as display-related as that. Is there any way to do this in > the template? You could split t

Re: custom or build in register/login/logout

2006-10-29 Thread Rob Slotboom
Sorry, I should have searched smarter before posting. Found the anwers at http://www.b-list.org/weblog/2006/09/02/django-tips-user-registration --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

custom or build in register/login/logout

2006-10-29 Thread Rob Slotboom
For a project I need to record customer information such as name, address etc. I doubt about the best approach to create this functionality. Shall I use the user class in contrib.auth and extend it or shall I create an independent customer class/app? The first approach serves me the default authe

Re: include tag and urls

2006-10-29 Thread Rob Slotboom
> Can you give some more details, please? I cannot puzzle out what you are > currently doing here. Hello Malcolm, It's about in the template. Here come the details... ### mysite/polls/templatetags/poll_tags.py from django import template from mysite.polls.models import Poll register = templat

Re: Prepopulate Form

2006-10-29 Thread Jure ÄŒuhalev
On 10/29/06, shidan <[EMAIL PROTECTED]> wrote: > > Hi, I want the same functionality as the ChangeManipulator where it > prepopulates the form with > the current values of the object, how can I do this with custom form > manipulator. Add flatten_data to it and call if when initializing new_data.