> But... The tutorials I've been reading online all recommend
> PostgreSQL.   I don't care, I'll go that route, but the online server
> I am currently using only offers MySQL. Are these two engines
> compatible, or am I going to have to go against what the tutorial
> advises and intall MySQL on my machine?

If you stick to Django's ORM, you should be pretty safe as it 
abstracts away many of the DB-specific portions.  Areas to watch:

1) if you use any calls to .extra() that use DB-specific 
functionality

2) possibly some GIS-related functionality (django.contrib.gis) 
may be limited if you don't run PostgreSQL or Oracle.  I haven't 
deep-dived into that code, but I know it does exploit some of the 
benefits that pg uses

3) if you use a raw connection.cursor to execute custom SQL, 
you're walking in territory that may not port from one DB to another

4) if you use any sort of initial-sql functionality that does 
DB-specific things.

You'll notice the common theme of "if you do something DB 
specific, $PROBLEM may occur (or may require special attention to 
making it DB-portable)" which is the gist of the whole thing. :)

-tim



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to