On Tue, 2009-02-03 at 21:30 -0600, James Bennett wrote:
> On Tue, Feb 3, 2009 at 9:22 PM, Jeff Hammerbacher <ham...@cloudera.com> wrote:
> > I could modify the call to Database.connect() in
> > django/db/backends/mysql/base.py, but that's not the most elegant
> > implementation. Does anyone have ideas on how to proceed in a
> > Django-approved fashion?
> 
> http://docs.djangoproject.com/en/dev/ref/settings/#database-options

The documentation for that feature isn't amazingly useful (it refers to
other, non-existent documentation, for example).

In practice what happens is that all the entries in the DATABASE_OPTIONS
dictionary are passed as **kwargs to the database connection command. So
something like

        DATABASE_OPTIONS = {
           'ssl': ...
        }
        
will be passed along as "ssl=..."

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to