On 8/5/06, limodou <[EMAIL PROTECTED]> wrote:
> When you create a new project,  django-admin.py will create a
> SECRET_KEY and saves it in settings.py. Sometimes we are developing an
> open source project, so we'll bring settings.py to public also. And
> also make SECRET_KEY openned. So I think if django-admin.py could
> create a file(maybe .key or key) when creating the project, and change
> the SECRET_KEY to:
>
> SECRET_KEY = file('.key', 'rb').read()

I second what Malcolm said. Here's your solution:

    # settings.py
    from secretkey import SECRET_KEY

    # secretkey.py
    SECRET_KEY = 'foo'

Adrian

-- 
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
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