Index: django/core/management.py
===================================================================
--- django/core/management.py	(revision 5457)
+++ django/core/management.py	(working copy)
@@ -479,6 +479,18 @@
     data_types = get_creation_module().DATA_TYPES
 
     cursor = connection.cursor()
+    
+    # Execute pre_syncdb sql.
+    try:
+        for statement in settings.DATABASE_PRE_SYNCDB:
+            try:
+                cursor.execute(statement)
+            except Exception, e:
+                sys.stderr.write("Failed to execute pre_syncdb sql for %s: %s\n" % \
+                                (app_name, statement))
+    # Be silent if pre_syncdb is unset.
+    except AttributeError:
+        pass
 
     # Get a list of all existing database tables,
     # so we know what needs to be added.
