title: Django can't recognize view when add transaction.atomic on view function
body: <p>My django project works fine.
  But when I add <code>@transaction.atomic</code> on a view function in <code>test_view.py</code>,e.g.</p>
  <pre class="lang-py prettyprint-override"><code>@transaction.atomic
  @csrf_exempt
  @required_http_methods
  def test_view(request):
  </code></pre>
  <p>Django server can't run correctly with Error:</p>
  <p><code>AttributeError: modyle 'xxx.test_view.test_view has not attribute 'test_view</code></p>
  <p>Without <code>@transaction.atomic</code>, URL can find my view module.
  What's the problem?</p>