configuring django settings after moving to another directory?
<p>my django project structure is shown below,</p>

<pre><code>.
├── myapp
│   ├── apps
│   │   └── __init__.py
│   ├── __init__.py
│   ├── settings.py
│   ├── urls.py
│   └── wsgi.py
├── manage.py
└── tests
    └── test_config.py
</code></pre>

<p>from where I moved settings file to form the below structure.</p>

<pre><code>.
├── myapp
│   ├── apps
│   │   └── __init__.py
│   ├── config
│   │   ├── __init__.py
│   │   ├── settings.py
│   │   ├── urls.py
│   │   └── wsgi.py
│   └── __init__.py
├── manage.py
└── tests
    └── test_config.py
</code></pre>

<p>so I changed my <code>wsgi.py</code></p>

<pre><code>import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myapp.config.settings")

application = get_wsgi_application()
</code></pre>

<p>and and my <code>manage.py</code></p>

<pre><code>#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myapp.config.settings")

    print "settings!!"

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)
</code></pre>

<p>now when I run the django shell with<code>./manage.py shell</code> I get this error, the traceback posted below.</p>

<pre><code>Python 2.7.10 (default, Oct 14 2015, 16:09:02) 
[GCC 5.2.1 20151010] on linux2
Django 1.9.2
Traceback (most recent call last):
  File "&lt;input&gt;", line 5, in &lt;module&gt;
  File "/home/marty/.virtualenvs/seventeen/local/lib/python2.7/site-packages/django/__init__.py", line 17, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/home/marty/.virtualenvs/seventeen/local/lib/python2.7/site-packages/django/conf/__init__.py", line 55, in __getattr__
    self._setup(name)
  File "/home/marty/.virtualenvs/seventeen/local/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
    % (desc, ENVIRONMENT_VARIABLE))
ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings
</code></pre>

<p>what is the problem here? how do I fix this?</p>

<p>thanks</p>