title: How do I resolve typeError: unsupported operand type(s) for /: 'str' and 'str' in django app by heroku?
body: <p>When I deployed django app by heroku, I got error.</p>
  <p>BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(<strong>file</strong>)))</p>
  <p>Setting.py has this BASE_DIR.</p>
  <p>How do I resolve this error?</p>
  <pre><code>Traceback (most recent call last):
    File &quot;manage.py&quot;, line 22, in &lt;module&gt;
      main()
    File &quot;manage.py&quot;, line 18, in main
      execute_from_command_line(sys.argv)
    File &quot;/app/.heroku/python/lib/python3.8/site-packages/django/core/management/__init__.py&quot;, line 446, in execute_from_command_line
      utility.execute()
    File &quot;/app/.heroku/python/lib/python3.8/site-packages/django/core/management/__init__.py&quot;, line 386, in execute
      settings.INSTALLED_APPS
    File &quot;/app/.heroku/python/lib/python3.8/site-packages/django/conf/__init__.py&quot;, line 87, in __getattr__
      self._setup(name)
    File &quot;/app/.heroku/python/lib/python3.8/site-packages/django/conf/__init__.py&quot;, line 74, in _setup
      self._wrapped = Settings(settings_module)
    File &quot;/app/.heroku/python/lib/python3.8/site-packages/django/conf/__init__.py&quot;, line 183, in __init__
      mod = importlib.import_module(self.SETTINGS_MODULE)
    File &quot;/app/.heroku/python/lib/python3.8/importlib/__init__.py&quot;, line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1014, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 991, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 975, in _find_and_load_unlocked
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 671, in _load_unlocked
    File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 848, in exec_module
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
    File &quot;/app/MovieReview/settings.py&quot;, line 77, in &lt;module&gt;
      'DIRS': [BASE_DIR / 'templates'],
  TypeError: unsupported operand type(s) for /: 'str' and 'str'
  </code></pre>