Ross wrote: [some stuff you can now find after the question] > On Sep 13, 9:37 am, Mario <[EMAIL PROTECTED]> wrote: >> Hello, >> >> I would like to move off the existing database server off Django. >> Currently, my settings.py file include the following configuration: >> >> DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', >> 'postgresql', 'mysql', 'sqlite3' or 'oracle'. >> >> DATABASE_NAME = 'golf_prod' # Or path to database >> file if using sqlite3. >> >> DATABASE_USER = 'dbadmin' # Not used with sqlite3. >> >> DATABASE_PASSWORD = 'xxxxx' # Not used with sqlite3. >> >> DATABASE_HOST = '' # Set to empty string >> for localhost. Not used with sqlite3. >> >> DATABASE_PORT = '' # Set to empty string >> for default. Not used with sqlite3. >> >> Question – I need to move the Mysql Server off our DMZ and into our >> protected internal network. Can I simply point the URL in the >> DATABASE_HOST . Any suggestions or recommendations?
and Ross said > http://docs.djangoproject.com/en/dev/ref/databases/#connecting-to-the-database > > Putting your database in the DMZ is probably a very bad idea... You > don't want to give the entire internet access to your database. The > standard Django setup expects your database to be accessible on the > same local network as your Django app. Other than that, there is no > special setup. > While putting your database in the DMZ *is* a bad idea, there's nothing in the standard Django setup that requires it to *be* anywhere special. As Ross points out, as long as it can be contacted by name, or by IP address, it's perfectly OK for it to be the other side of a firewall, for example. I sometimes run Django code on my laptop against the database I use to support my public web site, though in that case I have taken the additional precaution of having the database require a digital certificate before it allows access. That's PostgreSQL, so I couldn't quote you the mechanics you'd need to do the same on MySQL. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---