Re: Navigation menu

2011-04-12 Thread emonk
jquery?

2011/4/12 Daniel Gerzo 

> Hello all,
>
> I was wondering how do you generate the navigation menu in your web sites,
> with a possibility to mark up the "active" page?
>
> My searching revealed some solutions, most of them based on implementing a
> custom template tag and then parsing the request.path. I was wondering
> whether someone came up with something more nicer?
>
> Thanks!
>
> --
> Kind regards
>  Daniel Gerzo
>
> --
> 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 email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Looking for IDE + FTP

2011-03-29 Thread emonk
http://wiki.python.org/moin/IntegratedDevelopmentEnvironments

2011/3/28 Karen McNeil 

> Just wanted to give you all an update:  I started using Aptana Studio
> with the PyDev plug-in and I'm really liking it; I think it was just
> what I needed.
>
> Thanks for all the suggestions!
>
> ~Karen
>
> --
> 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 email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django 1.3 released -- say thanks!

2011-03-23 Thread emonk
http://www.revsys.com/django/cheatsheet/

2011/3/23 Shawn Milochik 

> Everyone:
>
>I just donated $25 to the Django Software Foundation. I would like
> to suggest that others who appreciate all the hard work chip in a
> couple of bucks if they are able. Especially those who, like me, want
> to express their gratitude but haven't yet contributed back to the
> community by helping with ticket triage and patches.
>
> http://www.djangoproject.com/foundation/
>
> Go Django! Thanks to the core devs and everyone who has helped to
> close a ticket!
>
> Shawn
>
> --
> 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 email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How i can get username into the error mail?

2011-03-16 Thread emonk
thanks Margie, I already did with the info you gave me Tom.

2011/3/16 Margie Roginski <margierogin...@yahoo.com>

> I found the basics for this by googling around, and I can't remember
> where I got it, but thanks to whomever gave me the basics because it
> is very useful.  Put this in your middleware and it will make the mail
> that you receive have the name of the user and their email:
>
> class ExceptionUserInfoMiddleware(object):
>"""
>Adds user details to request context on receiving an exception, so
> that they show up in the error emails.
>Add to settings.MIDDLEWARE_CLASSES and keep it outermost(i.e. on
> top if possible). This allows
>it to catch exceptions in other middlewares as well.
>
>"""
>
>def process_exception(self, request, exception):
>"""
>Process the exception.
>
>:Parameters:
>- `request`: request that caused the exception
>- `exception`: actual exception being raised
>"""
>
>try:
> if request.user.is_authenticated():
> request.META['USERNAME'] = str(request.user.username)
>request.META['USER_EMAIL'] = str(request.user.email)
>else:
>request.META['USERNAME'] = "UNKNOWN"
>request.META['USER_EMAIL'] = "UNKNOWN"
>except:
>request.META['USERNAME'] = "UNKNOWN"
>request.META['USER_EMAIL'] = "UNKNOWN"
>pass
>
> And for the record, I of course agree that being able to google and
> then adapt things is very important.  But this is a common need so it
> seems worthwhile to post it explicitly to help the django community.
>
> Margie
>
>
> On Mar 16, 11:49 am, Shawn Milochik <sh...@milochik.com> wrote:
> > On Wed, Mar 16, 2011 at 2:47 PM, emonk <elmonke...@gmail.com> wrote:
> > > I'm tired of searching and found many examples of middleware but not
> the one
> > > I seek
> >
> > You almost certainly will not find the exact code you need to cut &
> > paste. You need to read the examples you did find and learn something.
> > Use that knowledge to write what you need. That's what the rest of us
> > do.
> >
> > Shawn
>
> --
> 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 email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How i can get username into the error mail?

2011-03-16 Thread emonk
The only one who respone me an good help is Tom Evans. The rest just
repeats like
a parrot what is in the documentation; please before you say "seach in
google" say nothing is better.

2011/3/16 Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk>

> (last email, as i dont want to drag this out any more)
>
> I don't mean it in a nasty way, but I'm so sick and tired of lazy
> developers. Solving problems should be one of the best percs of the job for
> a coder.
>
> If this was something really complex, then I'd understand, but it's not.
> This is a *very* simple piece of functionality, which has plenty of public
> documentation.
>
> On Wed, Mar 16, 2011 at 6:50 PM, emonk <elmonke...@gmail.com> wrote:
>
>> aamh ok
>>
>>
>> 2011/3/16 Cal Leeming [Simplicity Media Ltd] <
>> cal.leem...@simplicitymedialtd.co.uk>
>>
>>> Then this isn't the job for you. Simple.
>>>
>>> On Wed, Mar 16, 2011 at 6:47 PM, emonk <elmonke...@gmail.com> wrote:
>>>
>>>> I'm tired of searching and found many examples of middleware but not the
>>>> one I seek
>>>>
>>>> 2011/3/16 Cal Leeming [Simplicity Media Ltd] <
>>>> cal.leem...@simplicitymedialtd.co.uk>
>>>>
>>>> Actually, I've gotta side with Shawn on this one.
>>>>>
>>>>> There are *TONS* of examples of how to do this, I know this because I
>>>>> created one and put it on djangosnippets. :S
>>>>>
>>>>> If two people are telling you there are answers on Google, then trust
>>>>> me, there are.
>>>>>
>>>>> If you can't find them, then perhaps this isn't the job for you?
>>>>>
>>>>> On Wed, Mar 16, 2011 at 6:42 PM, emonk <elmonke...@gmail.com> wrote:
>>>>>
>>>>>> I repeat, i dont have found (in all entire internet) midlleware
>>>>>> classes about email error.
>>>>>> Thanks, dont need to be a troll :)
>>>>>>
>>>>>>
>>>>>> 2011/3/16 Shawn Milochik <sh...@milochik.com>
>>>>>>
>>>>>>> On Wed, Mar 16, 2011 at 1:16 PM, emonk <elmonke...@gmail.com> wrote:
>>>>>>> > Yep, but i need an example and I have not found any.
>>>>>>> >
>>>>>>>
>>>>>>> If you haven't found any then you haven't looked. Have you heard of
>>>>>>> Google?
>>>>>>>
>>>>>>> Here are the docs:
>>>>>>>
>>>>>>> http://docs.djangoproject.com/en/1.2/topics/http/middleware/#writing-your-own-middleware
>>>>>>>
>>>>>>> For a full working example of middleware that modifies the request,
>>>>>>> do
>>>>>>> a Google search for "django middleware" and click the link for
>>>>>>> "Chapter 16: Middleware" of "The Django Book."
>>>>>>>
>>>>>>> Shawn
>>>>>>>
>>>>>>> --
>>>>>>> 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 email to
>>>>>>> django-users+unsubscr...@googlegroups.com.
>>>>>>> For more options, visit this group at
>>>>>>> http://groups.google.com/group/django-users?hl=en.
>>>>>>>
>>>>>>>
>>>>>>  --
>>>>>> 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 email to
>>>>>> django-users+unsubscr...@googlegroups.com.
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/django-users?hl=en.
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How i can get username into the error mail?

2011-03-16 Thread emonk
aamh ok

2011/3/16 Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk>

> Then this isn't the job for you. Simple.
>
> On Wed, Mar 16, 2011 at 6:47 PM, emonk <elmonke...@gmail.com> wrote:
>
>> I'm tired of searching and found many examples of middleware but not the
>> one I seek
>>
>> 2011/3/16 Cal Leeming [Simplicity Media Ltd] <
>> cal.leem...@simplicitymedialtd.co.uk>
>>
>> Actually, I've gotta side with Shawn on this one.
>>>
>>> There are *TONS* of examples of how to do this, I know this because I
>>> created one and put it on djangosnippets. :S
>>>
>>> If two people are telling you there are answers on Google, then trust me,
>>> there are.
>>>
>>> If you can't find them, then perhaps this isn't the job for you?
>>>
>>> On Wed, Mar 16, 2011 at 6:42 PM, emonk <elmonke...@gmail.com> wrote:
>>>
>>>> I repeat, i dont have found (in all entire internet) midlleware classes
>>>> about email error.
>>>> Thanks, dont need to be a troll :)
>>>>
>>>>
>>>> 2011/3/16 Shawn Milochik <sh...@milochik.com>
>>>>
>>>>> On Wed, Mar 16, 2011 at 1:16 PM, emonk <elmonke...@gmail.com> wrote:
>>>>> > Yep, but i need an example and I have not found any.
>>>>> >
>>>>>
>>>>> If you haven't found any then you haven't looked. Have you heard of
>>>>> Google?
>>>>>
>>>>> Here are the docs:
>>>>>
>>>>> http://docs.djangoproject.com/en/1.2/topics/http/middleware/#writing-your-own-middleware
>>>>>
>>>>> For a full working example of middleware that modifies the request, do
>>>>> a Google search for "django middleware" and click the link for
>>>>> "Chapter 16: Middleware" of "The Django Book."
>>>>>
>>>>> Shawn
>>>>>
>>>>> --
>>>>> 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 email to
>>>>> django-users+unsubscr...@googlegroups.com.
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/django-users?hl=en.
>>>>>
>>>>>
>>>>  --
>>>> 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 email to
>>>> django-users+unsubscr...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/django-users?hl=en.
>>>>
>>>
>>>
>>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How i can get username into the error mail?

2011-03-16 Thread emonk
Thanks for the answers.
topic closed to me

2011/3/16 emonk <elmonke...@gmail.com>

> I'm tired of searching and found many examples of middleware but not the
> one I seek
>
> 2011/3/16 Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk>
>
> Actually, I've gotta side with Shawn on this one.
>>
>> There are *TONS* of examples of how to do this, I know this because I
>> created one and put it on djangosnippets. :S
>>
>> If two people are telling you there are answers on Google, then trust me,
>> there are.
>>
>> If you can't find them, then perhaps this isn't the job for you?
>>
>> On Wed, Mar 16, 2011 at 6:42 PM, emonk <elmonke...@gmail.com> wrote:
>>
>>> I repeat, i dont have found (in all entire internet) midlleware classes
>>> about email error.
>>> Thanks, dont need to be a troll :)
>>>
>>>
>>> 2011/3/16 Shawn Milochik <sh...@milochik.com>
>>>
>>>> On Wed, Mar 16, 2011 at 1:16 PM, emonk <elmonke...@gmail.com> wrote:
>>>> > Yep, but i need an example and I have not found any.
>>>> >
>>>>
>>>> If you haven't found any then you haven't looked. Have you heard of
>>>> Google?
>>>>
>>>> Here are the docs:
>>>>
>>>> http://docs.djangoproject.com/en/1.2/topics/http/middleware/#writing-your-own-middleware
>>>>
>>>> For a full working example of middleware that modifies the request, do
>>>> a Google search for "django middleware" and click the link for
>>>> "Chapter 16: Middleware" of "The Django Book."
>>>>
>>>> Shawn
>>>>
>>>> --
>>>> 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 email to
>>>> django-users+unsubscr...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/django-users?hl=en.
>>>>
>>>>
>>>  --
>>> 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 email to
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How i can get username into the error mail?

2011-03-16 Thread emonk
I'm tired of searching and found many examples of middleware but not the one
I seek

2011/3/16 Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk>

> Actually, I've gotta side with Shawn on this one.
>
> There are *TONS* of examples of how to do this, I know this because I
> created one and put it on djangosnippets. :S
>
> If two people are telling you there are answers on Google, then trust me,
> there are.
>
> If you can't find them, then perhaps this isn't the job for you?
>
> On Wed, Mar 16, 2011 at 6:42 PM, emonk <elmonke...@gmail.com> wrote:
>
>> I repeat, i dont have found (in all entire internet) midlleware classes
>> about email error.
>> Thanks, dont need to be a troll :)
>>
>>
>> 2011/3/16 Shawn Milochik <sh...@milochik.com>
>>
>>> On Wed, Mar 16, 2011 at 1:16 PM, emonk <elmonke...@gmail.com> wrote:
>>> > Yep, but i need an example and I have not found any.
>>> >
>>>
>>> If you haven't found any then you haven't looked. Have you heard of
>>> Google?
>>>
>>> Here are the docs:
>>>
>>> http://docs.djangoproject.com/en/1.2/topics/http/middleware/#writing-your-own-middleware
>>>
>>> For a full working example of middleware that modifies the request, do
>>> a Google search for "django middleware" and click the link for
>>> "Chapter 16: Middleware" of "The Django Book."
>>>
>>> Shawn
>>>
>>> --
>>> 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 email to
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>>
>>  --
>> 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 email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Problem with DECIMAL_SEPARATOR

2011-03-16 Thread emonk
I think DECIMAL_SEPARATOR = ','  wasnt neccesary when USE_L10N=True

2011/3/16 Siara <pawel.skrzyn...@gmail.com>

> Thx for help,
> DECIMAL_SEPARATOR = ','  wasnt neccesary when USE_L10N=False cause its
> default delimeter
> On 15 Mar, 20:07, emonk <elmonke...@gmail.com> wrote:
> > try this in settings.py
> >
> > USE_L10N = False
> > DECIMAL_SEPARATOR = ','
> >
> > 2011/3/15 Siara <pawel.skrzyn...@gmail.com>
> >
> >
> >
> > > Hi
> > > I tried to find solution to my problem on django-developers group and
> > > they send me here ;)
> > > Ant there is my problem:
> > > I'm writing application which return json with data for another app.
> > > I'm from Poland so I set LANGUAGE_CODE = 'pl', the problem is that we
> > > are using coma instead of dot in float numbers, and setting language
> > > to polish changing dot for coma in jsons, but i need dot.
> > > I tried DECIMAL_SEPARATOR = '.'  but its doesnt work, it looks like
> > > LANGUAGE_CODE is overwriting DECIMAL_SEPARATOR settings.
> > > So any ideas how to keep polish internatiolization with
> > > DECIMAL_SEPARATOR as dot intead coma ?
> >
> > > --
> > > 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 email to
> > > django-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
>
> --
> 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 email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How i can get username into the error mail?

2011-03-16 Thread emonk
I repeat, i dont have found (in all entire internet) midlleware classes
about email error.
Thanks, dont need to be a troll :)

2011/3/16 Shawn Milochik <sh...@milochik.com>

> On Wed, Mar 16, 2011 at 1:16 PM, emonk <elmonke...@gmail.com> wrote:
> > Yep, but i need an example and I have not found any.
> >
>
> If you haven't found any then you haven't looked. Have you heard of Google?
>
> Here are the docs:
>
> http://docs.djangoproject.com/en/1.2/topics/http/middleware/#writing-your-own-middleware
>
> For a full working example of middleware that modifies the request, do
> a Google search for "django middleware" and click the link for
> "Chapter 16: Middleware" of "The Django Book."
>
> Shawn
>
> --
> 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 email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How i can get username into the error mail?

2011-03-16 Thread emonk
Yep, but i need an example and I have not found any.

2011/3/16 Tom Evans <tevans...@googlemail.com>

> On Tue, Mar 15, 2011 at 6:32 PM, emonk <elmonke...@gmail.com> wrote:
> > Hi django-users.
> >
> > I have a django project running in apache2 with  mod_wsgi and I need get
> the
> > username logged into the mail error; the user is registered in the same
> data
> > base of the project, i mean in the auth_user table (request.user.username
> > called in the views).
> >
> > This is an example of the error mail generated by a some user request
> with
> > an error and received by me (the admin) using DEBUG = False in
> settings.py:
> >
>
> Write some middleware which runs after AuthenticationMiddleware and
> inserts the user's name into request.META.
>
> Cheers
>
> Tom
>
> --
> 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 email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Problem with DECIMAL_SEPARATOR

2011-03-15 Thread emonk
try this in settings.py

USE_L10N = False
DECIMAL_SEPARATOR = ','


2011/3/15 Siara 

> Hi
> I tried to find solution to my problem on django-developers group and
> they send me here ;)
> Ant there is my problem:
> I'm writing application which return json with data for another app.
> I'm from Poland so I set LANGUAGE_CODE = 'pl', the problem is that we
> are using coma instead of dot in float numbers, and setting language
> to polish changing dot for coma in jsons, but i need dot.
> I tried DECIMAL_SEPARATOR = '.'  but its doesnt work, it looks like
> LANGUAGE_CODE is overwriting DECIMAL_SEPARATOR settings.
> So any ideas how to keep polish internatiolization with
> DECIMAL_SEPARATOR as dot intead coma ?
>
> --
> 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 email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: docs.djangoproject.com may be down!

2011-03-15 Thread emonk
working fine here

2011/3/15 vijay 

> It's working
>
>
> On Tue, Mar 15, 2011 at 11:43 AM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Confirmed down.
>>
>>
>> On Tue, Mar 15, 2011 at 6:42 PM, Nathanael Abbotts > > wrote:
>>
>>> I cannot access http://docs.djangoproject.com/ can anyone else?
>>>
>>> --
>>> 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 email to
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>  --
>> 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 email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> 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 email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



How i can get username into the error mail?

2011-03-15 Thread emonk
Hi django-users.

I have a django project running in apache2 with  mod_wsgi and I need get the
username logged into the mail error; the user is registered in the same data
base of the project, i mean in the auth_user table (request.user.username
called in the views).

This is an example of the error mail generated by a some user request with
an error and received by me (the admin) using DEBUG = False in settings.py:

,
POST:,
COOKIES:{'csrftoken': '8b8344b68c0983c708c7ac0269f9fb41',
 'sessionid': '8636774d354a46c35fd8c95d741cb9fa'},
META:{'CSRF_COOKIE': '8b8344b68c0983c708c7ac0269f9fb41',
 'CSRF_COOKIE_USED': True,
 'DOCUMENT_ROOT': '*/var/www/*',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT':
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
 'HTTP_ACCEPT_LANGUAGE': 'es-cl,es;q=0.8,en-us;q=0.5,en;q=0.3',
 'HTTP_CACHE_CONTROL': 'max-age=0',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'sessionid=8636774d354a46c35fd8c95d741cb9fa;
csrftoken=8b8344b68c0983c708c7ac0269f9fb41',
 'HTTP_HOST': 'example.com',
 'HTTP_KEEP_ALIVE': '115',
 'HTTP_REFERER': 'http://example.com',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; es-CL;
rv:1.9.2.15) Gecko/20110303 Ubuntu/10.04 (lucid) Firefox/3.6.15',
 'PATH': '/usr/local/bin:/usr/bin:/bin',
 'PATH_INFO': u'*/app/*',
 'PATH_TRANSLATED': '*/path/to/project/apache/script.wsgi/app/*',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '192.168.x.x',
 'REMOTE_PORT': '34717',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '*/app/*',
 'SCRIPT_FILENAME': '*/path/to/project/apache/script.wsgi*',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '192.168.x.x',
 'SERVER_ADMIN': 'webmas...@example.com',
 'SERVER_NAME': 'example.com',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': 'Apache/2.2.9 (Debian)
PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2
mod_wsgi/2.5 Server at example.com Port 80\n',
 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with
Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_wsgi/2.5',
 'mod_wsgi.application_group': 'example.com|',
 'mod_wsgi.callable_object': 'application',
 'mod_wsgi.listener_host': '',
 'mod_wsgi.listener_port': '80',
 'mod_wsgi.process_group': 'example.com',
 'mod_wsgi.reload_mechanism': '1',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (2, 5),
 'wsgi.errors': ,
 'wsgi.file_wrapper': ,
 'wsgi.input': ,
 'wsgi.multiprocess': True,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}>


Any help is welcome.
Best regards!



-- 
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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: form error_messages doesnt work

2009-04-09 Thread emonk
ok ok, i will use a regexp field, but I still think they should be able to
make a custom error message for form.IntegerField without %s .
thanks for your help guys.

On Fri, Apr 10, 2009 at 1:02 AM, Alex Gaynor <alex.gay...@gmail.com> wrote:

>
>
> On Thu, Apr 9, 2009 at 11:58 PM, emonk <elmonke...@gmail.com> wrote:
>
>> Thanks but is not a better solution, this is bug
>> http://code.djangoproject.com/ticket/8104#comment:1
>>
>> On Fri, Apr 10, 2009 at 12:52 AM, Malcolm Tredinnick <
>> malc...@pointy-stick.com> wrote:
>>
>>>
>>> On Fri, 2009-04-10 at 00:48 -0300, emonk wrote:
>>> > I understand your point, but how i do if i dont want to show the %s in
>>> > my custom error message? :S
>>>
>>> I mentioned that in my original reply in this thread: Use CharField or
>>> RegexField.
>>>
>>> Regards,
>>> Malcolm
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> ---
>> Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
>> --
>>
>>
>>
> No a ticket was filed, that doesn't inherently indicate a bug(lots of
> erroneous tickets are filed), as SmilyChris notes it really just needs a
> docs fix, because the only other alternative is a bunch of try except blocks
> which is both unreasonable, and as Malcolm has stated really indicates that
> you should be using a different field type.
>
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your right to
> say it." --Voltaire
> "The people's good is the highest law."--Cicero
>
>
> >
>


-- 
---
Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
--

--~--~-~--~~~---~--~~
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 email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: form error_messages doesnt work

2009-04-09 Thread emonk
Thanks but is not a better solution, this is bug
http://code.djangoproject.com/ticket/8104#comment:1

On Fri, Apr 10, 2009 at 12:52 AM, Malcolm Tredinnick <
malc...@pointy-stick.com> wrote:

>
> On Fri, 2009-04-10 at 00:48 -0300, emonk wrote:
> > I understand your point, but how i do if i dont want to show the %s in
> > my custom error message? :S
>
> I mentioned that in my original reply in this thread: Use CharField or
> RegexField.
>
> Regards,
> Malcolm
>
>
>
> >
>


-- 
---
Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
--

--~--~-~--~~~---~--~~
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 email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: form error_messages doesnt work

2009-04-09 Thread emonk
I understand your point, but how i do if i dont want to show the %s in my
custom error message? :S

On Fri, Apr 10, 2009 at 12:22 AM, Malcolm Tredinnick <
malc...@pointy-stick.com> wrote:

>
> On Fri, 2009-04-10 at 00:07 -0300, emonk wrote:
> > I do not understand that these messages are not working as if the
> > other
> > Who care if i talk about lenght, what happen if i talk about range of
> > numbers?
>
> I wrote that you need to accept a format parameter in the error messages
> (the "%s"). Have a look at the original messages you are trying to to
> replace (in the file I pointed you to) and you'll see what I mean. I
> also told you what the parameter is for (it contains the maximum or
> minimum value allowed in the field). This means your error message for
> those cases must use the maximum and minimum values in the string it
> outputs. If that's not appropriate, then this isn't the right form field
> to be using.
>
> > That should be work just like the message "invalid" .
>
> No they shouldn't. The error messages you are replacing are for max- and
> min-value violations are specialised messages. They are giving the user
> the necessary information to correct their error by providing the
> maximum and minimum values.
>
> The "invalid" error is much more generic and used when there isn't
> something more specific available. You can't just guess at how things
> should behave and then complain when it doesn't work like that. You have
> to allow for the possibility that it's your guess which is wrong.
>
> Regards,
> Malcolm
>
>
>
> >
>


-- 
---
Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
--

--~--~-~--~~~---~--~~
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 email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: form error_messages doesnt work

2009-04-09 Thread emonk
btw, thanks anyway :)

On Fri, Apr 10, 2009 at 12:07 AM, emonk <elmonke...@gmail.com> wrote:

> I do not understand that these messages are not working as if the other
> Who care if i talk about lenght, what happen if i talk about range of
> numbers?
> That should be work just like the message "invalid" .
>
>
> On Thu, Apr 9, 2009 at 11:50 PM, Malcolm Tredinnick <
> malc...@pointy-stick.com> wrote:
>
>>
>> On Thu, 2009-04-09 at 23:23 -0300, emonk wrote:
>> > Hi,
>> > I have this form:
>> > class registerForm(forms.Form):
>> > aNumber = forms.IntegerField(
>> > label='Some Integer Field',
>> > max_value=,
>> >
>> > min_value=100,
>> > help_text='7 digits min and 8 digits
>> max',
>> > error_messages={
>> > 'invalid':'Only numbers
>> pls!',
>> >
>> > 'min_value':'min 7
>> digits!',
>> > 'max_value':'max 8
>> digits!',
>>
>> If you have a look at the error messages you are replacing (in
>> django/forms/fields.py), you'll see that they are passed a single
>> parameter (indicated by the "%s"). So your replacement messages must be
>> able to handle those parameters as well.
>>
>> If you look a bit closer, you'll see that the parameter being passed in
>> is the maximum or minimum value. You're trying to use max- and
>> min-values to talk about length, which isn't really the intention, so
>> things aren't going to work nicely. If you want to talk about length,
>> use a CharField, or a RegexField -- since you're trying to treat the
>> input as a string (with a length), rather than a number (with a size).
>>
>> Regards,
>> Malcolm
>>
>>
>> >>
>>
>
>
> --
> ---
> Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
> --
>



-- 
---
Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
--

--~--~-~--~~~---~--~~
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 email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: form error_messages doesnt work

2009-04-09 Thread emonk
I do not understand that these messages are not working as if the other
Who care if i talk about lenght, what happen if i talk about range of
numbers?
That should be work just like the message "invalid" .

On Thu, Apr 9, 2009 at 11:50 PM, Malcolm Tredinnick <
malc...@pointy-stick.com> wrote:

>
> On Thu, 2009-04-09 at 23:23 -0300, emonk wrote:
> > Hi,
> > I have this form:
> > class registerForm(forms.Form):
> > aNumber = forms.IntegerField(
> > label='Some Integer Field',
> > max_value=,
> >
> > min_value=100,
> > help_text='7 digits min and 8 digits
> max',
> > error_messages={
> > 'invalid':'Only numbers
> pls!',
> >
> > 'min_value':'min 7
> digits!',
> > 'max_value':'max 8
> digits!',
>
> If you have a look at the error messages you are replacing (in
> django/forms/fields.py), you'll see that they are passed a single
> parameter (indicated by the "%s"). So your replacement messages must be
> able to handle those parameters as well.
>
> If you look a bit closer, you'll see that the parameter being passed in
> is the maximum or minimum value. You're trying to use max- and
> min-values to talk about length, which isn't really the intention, so
> things aren't going to work nicely. If you want to talk about length,
> use a CharField, or a RegexField -- since you're trying to treat the
> input as a string (with a length), rather than a number (with a size).
>
> Regards,
> Malcolm
>
>
> >
>


-- 
---
Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
--

--~--~-~--~~~---~--~~
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 email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



form error_messages doesnt work

2009-04-09 Thread emonk
Hi,
I have *this form:*

class registerForm(forms.Form):
aNumber = forms.IntegerField(
label='Some Integer Field',
max_value=,
min_value=100,
help_text='7 digits min and 8 digits max',
error_messages={
'invalid':'Only numbers pls!',
'min_value':'min 7 digits!',
'max_value':'max 8
digits!',
 }
)
*the view:*
def register_form(request):
if request.method == 'POST':
form = registerForm(request.POST)
if form.is_valid():
register = registerModel.objects.get_or_create(
aNumber=form.cleaned_data['aNumber']
)
return HttpResponseRedirect('/home/')
else:
form = registerForm()
vars = RequestContext(request, { 'form':form })
return render_to_response('register_form.html', vars)

*the model:
*class registerModel(models.Model):
aNumber = models.IntegerField(primary_key=True,unique=True,db_index=True)*
*

Well, if I put any character like "123asd" in the form field, the form
is re-rendered with the label mesaage "Only numbers pls!" at the top
of the same field rigth? that's good

But if I put only integer digits violating the rule min_value or max_value,
i get a TypeError page with:

"TypeError at /myProject/myApp/form/

not all arguments converted during string formatting

Exception Type: TypeError
Exception Value: not all arguments converted during string formatting
Exception Location: /usr/lib/pymodules/python2.5/django/forms/fields.py in
clean, line 190
Python Executable: /usr/bin/python
...
/usr/lib/pymodules/python2.5/django/forms/fields.py in clean
...
190.raise ValidationError(self.error_messages['min_value'] %
self.min_value)
..."

Why the error_message 'min_value' doesn't work as the error_message
'invalid'?
What is wrong?
Thanks a lot for any help.




-- 
---
Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
--

--~--~-~--~~~---~--~~
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 email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Positive integer form field with max lenght

2009-04-09 Thread emonk
duh, iam a fool

Thanks to both for the fast response :)

On Thu, Apr 9, 2009 at 4:46 AM, Adi Sieker <a...@sieker.info> wrote:

>
>
> On 09.04.2009, at 09:27, emonk wrote:
>
> > Hi people.
> > This is my doubt
> >
> > I need make a form field with this restrictions:
> >
> > _field content must be only integers numbers and postive.
> > _filed content must have a max lenght, for example 8 characters.
> >
> > I am confused beacuse models.PositiveIntegerField has no have
> > max_length atribute (have a max_value), but models.CharacterField
> > have max_lenght atribute.
> >
> > Any idea? :S
>
> An integer doesn't usually have a max length, if at all it has a max
> value. Which in your case sounds like 99.999.999.
> To actually achieve what you want read through the form validation
> docs http://docs.djangoproject.com/en/dev/ref/forms/validation/
>
> adi
>
> >
>


-- 
---
Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
--

--~--~-~--~~~---~--~~
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 email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Positive integer form field with max lenght

2009-04-09 Thread emonk
Hi people.
This is my doubt

I need make a form field with this restrictions:

_field content must be only integers numbers and postive.
_filed content must have a max lenght, for example 8 characters.

I am confused beacuse models.PositiveIntegerField has no have max_length
atribute (have a max_value), but models.CharacterField have max_lenght
atribute.

Any idea? :S

Thanks a lot.


-- 
---
Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
--

--~--~-~--~~~---~--~~
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 email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: unindent does not match any outer indentation level

2009-03-05 Thread emonk
nevermind, is a tabulation error
duuh!

On Thu, Mar 5, 2009 at 12:05 PM, emonk <elmonke...@gmail.com> wrote:

> the line 178 is -> importeMaximoCuotaSugerida = forms.IntegerField(
>
>
> On Thu, Mar 5, 2009 at 12:04 PM, emonk <elmonke...@gmail.com> wrote:
>
>> HI,
>> I have a form model, and i cant find any error in syntax, however the
>> browser report this execption
>> "IndentationError at /brou/
>>
>> unindent does not match any outer indentation level (forms.py, line 178)
>>
>>  Request Method: GET  Request URL: http://localhost/brou/  Exception
>> Type: IndentationError  Exception Value:
>>
>> unindent does not match any outer indentation level (forms.py, line 178)
>>
>>  Exception Location: /home/monk/documents/prodie/proyectos/brou/sac/views.py
>> in , line 8  Python Executable: /usr/bin/python  Python Version:
>> 2.5.4  Python Path: ['/home/monk/documents/prodie/proyectos',
>> '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2',
>> '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload',
>> '/usr/local/lib/python2.5/site-packages',
>> '/usr/lib/python2.5/site-packages',
>> '/usr/lib/python2.5/site-packages/Numeric',
>> '/usr/lib/python2.5/site-packages/PIL', '/var/lib/python-support/python2.5',
>> '/var/lib/python-support/python2.5/gtk-2.0',
>> '/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode']  Server time: jue,
>> 5 Mar 2009 11:58:30 -0200"
>> This is the code in forms.py
>> "
>> class registroForm(forms.Form):
>> .
>> .
>> importeMaximoCuotaSugerida = forms.IntegerField(
>> required=False,
>> label='Importe maximo cuota sugerida a
>> descontar',
>> max_value=999,
>> help_text='13 enteros y 2 decimales,
>> sin separacion por coma',
>> error_messages={
>> 'invalid':'Ingrese solo
>> numeros!',
>> 'max_value':'Ha exedido el
>> maximo de caracteres permitidos!'
>> }
>> )
>>
>> "
>> --
>> ---
>> Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
>> --
>>
>
>
>
> --
> ---
> Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
> --
>



-- 
---
Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
--

--~--~-~--~~~---~--~~
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 email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: unindent does not match any outer indentation level

2009-03-05 Thread emonk
the line 178 is -> importeMaximoCuotaSugerida = forms.IntegerField(

On Thu, Mar 5, 2009 at 12:04 PM, emonk <elmonke...@gmail.com> wrote:

> HI,
> I have a form model, and i cant find any error in syntax, however the
> browser report this execption
> "IndentationError at /brou/
>
> unindent does not match any outer indentation level (forms.py, line 178)
>
>  Request Method: GET  Request URL: http://localhost/brou/  Exception Type:
> IndentationError  Exception Value:
>
> unindent does not match any outer indentation level (forms.py, line 178)
>
>  Exception Location: /home/monk/documents/prodie/proyectos/brou/sac/views.py
> in , line 8  Python Executable: /usr/bin/python  Python Version:
> 2.5.4  Python Path: ['/home/monk/documents/prodie/proyectos',
> '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2',
> '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload',
> '/usr/local/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages/Numeric',
> '/usr/lib/python2.5/site-packages/PIL', '/var/lib/python-support/python2.5',
> '/var/lib/python-support/python2.5/gtk-2.0',
> '/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode']  Server time: jue,
> 5 Mar 2009 11:58:30 -0200"
> This is the code in forms.py
> "
> class registroForm(forms.Form):
> .
> .
> importeMaximoCuotaSugerida = forms.IntegerField(
> required=False,
> label='Importe maximo cuota sugerida a
> descontar',
> max_value=999,
> help_text='13 enteros y 2 decimales,
> sin separacion por coma',
> error_messages={
> 'invalid':'Ingrese solo
> numeros!',
> 'max_value':'Ha exedido el
> maximo de caracteres permitidos!'
> }
> )
>
> "
> --
> ---
> Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
> --
>



-- 
---
Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
--

--~--~-~--~~~---~--~~
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 email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



unindent does not match any outer indentation level

2009-03-05 Thread emonk
HI,
I have a form model, and i cant find any error in syntax, however the
browser report this execption
"IndentationError at /brou/

unindent does not match any outer indentation level (forms.py, line 178)

 Request Method: GET  Request URL: http://localhost/brou/  Exception Type:
IndentationError  Exception Value:

unindent does not match any outer indentation level (forms.py, line 178)

 Exception Location: /home/monk/documents/prodie/proyectos/brou/sac/views.py
in , line 8  Python Executable: /usr/bin/python  Python Version:
2.5.4  Python Path: ['/home/monk/documents/prodie/proyectos',
'/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2',
'/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload',
'/usr/local/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages/Numeric',
'/usr/lib/python2.5/site-packages/PIL', '/var/lib/python-support/python2.5',
'/var/lib/python-support/python2.5/gtk-2.0',
'/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode']  Server time: jue, 5
Mar 2009 11:58:30 -0200"
This is the code in forms.py
"
class registroForm(forms.Form):
.
.
importeMaximoCuotaSugerida = forms.IntegerField(
required=False,
label='Importe maximo cuota sugerida a
descontar',
max_value=999,
help_text='13 enteros y 2 decimales, sin
separacion por coma',
error_messages={
'invalid':'Ingrese solo
numeros!',
'max_value':'Ha exedido el
maximo de caracteres permitidos!'
}
)

"
-- 
---
Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
--

--~--~-~--~~~---~--~~
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 email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---