FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

settings.base: fix BASE_DIR value

Merged UIS DevOps Division Robot requested to merge github/fork/rjw57/fix-base-dir into master
  1. May 30, 2018
    • Dr Rich Wareham's avatar
      settings.base: fix BASE_DIR value · d1f6b135
      Dr Rich Wareham authored
      The ``BASE_DIR`` value was left at that generated by the default Django
      project template but that assumed that the settings file was located
      within the project root. In our template we locate settings files within
      their own ``settings`` module. This means that ``BASE_DIR`` points to
      ``PROJECT_ROOT`` and not the directory which contains ``PROJECT_ROOT``
      as it should.
      
      Add one more ``os.path.dirname()`` wrapper to the calculation of
      ``BASE_DIR`` to fix this.
      
      This issue was first found in uisautomation/sms-webapp.
      d1f6b135
Loading