title: Changing a project name in django
body: <p>I changed the name of my django project from <code>oldname</code> to <code>newname</code> using Pycharm's refactor > rename. I have scoured through the project and it seems to have changed the name everywhere. But when I try runserver, here's what I get,</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/melissa/Dropbox/newname/manage.py", line 15, in &lt;module&gt;
      execute_from_command_line(sys.argv)
    File "/Users/melissa/Dropbox/newname/env/lib/python3.7/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
      utility.execute()
    File "/Users/melissa/Dropbox/newname/env/lib/python3.7/site-packages/django/core/management/__init__.py", line 317, in execute
      settings.INSTALLED_APPS
    File "/Users/melissa/Dropbox/newname/env/lib/python3.7/site-packages/django/conf/__init__.py", line 56, in __getattr__
      self._setup(name)
    File "/Users/melissa/Dropbox/newname/env/lib/python3.7/site-packages/django/conf/__init__.py", line 43, in _setup
      self._wrapped = Settings(settings_module)
    File "/Users/melissa/Dropbox/newname/env/lib/python3.7/site-packages/django/conf/__init__.py", line 106, in __init__
      mod = importlib.import_module(self.SETTINGS_MODULE)
    File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/__init__.py", line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "&lt;frozen importlib._bootstrap&gt;", line 1006, in _gcd_import
    File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 953, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 219, in _call_with_frames_removed
    File "&lt;frozen importlib._bootstrap&gt;", line 1006, in _gcd_import
    File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 965, in _find_and_load_unlocked
  ModuleNotFoundError: No module named 'oldname'
  </code></pre>
  
  <p>Can someone help me with this?</p>