1. Osiloke Emoekpere
  2. mezzanine

Commits

Stephen McDonald  committed 2b02120

Added some sys.path fixing in manage.py to avoid some cron issues.

  • Participants
  • Parent commits 317a31b
  • Branches default

Comments (0)

Files changed (1)

File mezzanine/project_template/manage.py

View file
     mezzanine_path = path_for_import("mezzanine")
     assert os.path.abspath(os.path.join(mezzanine_path, "..")) == dev_path
 
+# Corrects some pathing issues in various contexts, such as cron jobs.
+os.chdir(project_path)
+
 from django.core.management import execute_manager
 try:
     import settings  # Assumed to be in the same directory.