On 3/11/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
>
> On 3/10/06, limodou <[EMAIL PROTECTED]> wrote:
> > I want to put some variables in settings.py, and I used lowercase
> > variable name, and I could not access the attribute from settings. And
> > I checked the code, found that the option name should be capital
> > letters, so I have this question:
> >
> > Why settings.py option name should be capital letters
> >
> > Can anyone explain it for me?
>
> Hi limodou,
>
> The "Creating your own settings" documentation states "Setting names
> are in all uppercase."
> http://www.djangoproject.com/documentation/settings/#creating-your-own-settings
>
> They're all uppercase because we like the convention that constants
> (variables whose values don't change) are in all caps.
>
> Adrian
>

oh, I see.


--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to