title: How to run all tests with python manage.py test command in django
body: <p>I am working on a django project in which I have multiple apps. Every app has a tests directory which has test for whole project. My directory structure is as follow.</p>
  
  <pre><code>Project
        App_1
             tests
                 __init__.py
                 tests_views.py
        App_2
             tests
                 __init__.py
                 tests_views.py
        settings.py
        manage.py
  </code></pre>
  
  <p>I can run tests like this </p>
  
  <blockquote>
    <p>python manage.py test App_1.tests</p>
  </blockquote>
  
  <p>which run all tests in App_1/tests/test_views.py. But I have to do this for all app in my project. I want a single command which run all tests inside all apps in my project. I tried by running </p>
  
  <blockquote>
    <p>python manage.py test</p>
  </blockquote>
  
  <p>but I got following error</p>
  
  <pre><code>Traceback (most recent call last):
    File "manage.py", line 9, in &lt;module&gt;
      execute_from_command_line(sys.argv)
    File "/srv/www/project/shared/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
      utility.execute()
    File "/srv/www/project/shared/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/srv/www/project/shared/env/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 30, in run_from_argv
      super(Command, self).run_from_argv(argv)
    File "/srv/www/project/shared/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 390, in run_from_argv
      self.execute(*args, **cmd_options)
    File "/srv/www/project/shared/env/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 74, in execute
      super(Command, self).execute(*args, **options)
    File "/srv/www/project/shared/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 441, in execute
      output = self.handle(*args, **options)
    File "/srv/www/project/shared/env/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 90, in handle
      failures = test_runner.run_tests(test_labels)
    File "/srv/www/project/shared/env/local/lib/python2.7/site-packages/django/test/runner.py", line 209, in run_tests
      suite = self.build_suite(test_labels, extra_tests)
    File "/srv/www/project/shared/env/local/lib/python2.7/site-packages/django/test/runner.py", line 150, in build_suite
      tests = self.test_loader.discover(start_dir=label, **kwargs)
    File "/usr/lib/python2.7/unittest/loader.py", line 204, in discover
      tests = list(self._find_tests(start_dir, pattern))
    File "/usr/lib/python2.7/unittest/loader.py", line 285, in _find_tests
      for test in self._find_tests(full_path, pattern):
    File "/usr/lib/python2.7/unittest/loader.py", line 265, in _find_tests
      raise ImportError(msg % (mod_name, module_dir, expected_dir))
  ImportError: 'tests' module incorrectly imported from '/vagrant/code/project/App_1/tests'. Expected '/vagrant/code/project/App_1'. Is this module globally installed?
  </code></pre>
  
  <p>Can any one tells me how I can all tests in my app with a single command?</p>