def do_user_setup_switch(root_path, project_path):
# first, copy over our user_setup.py
filecopy( os.path.join(root_path, "supporting", "user_setup_template.py"),
- os.path.join(project_path, "
use r_setup.py") )
+ os.path.join(project_path, "se.py") )
# and change settings.py to pull our user setup in...
applypatch( os.path.join(root_path, "supporting", "user_setup.diff"),
+# used for INSTALLED_APPS and things we don't want to change.
+# There may be an established pattern for this in the Django world, but
-+# I'm just going to do it my way for now: load a
user_settings.py, if it exists,
++# I'm just going to do it my way for now: load a settings.py, if it exists,
+# into the namespace of this project. It'll override values that are already there
+# in the namespace, and that's EXACTLY what we want.
+use_local_settings = True
user_settings import *
++ from settings import *
+ use_local_settings = False