title: django TemplateDoesNotExist
body: <p>I want to make a signup page, when user click signup, it will check if the two password are the same, when not, give a error message after "confirm password". </p>
  
  <p>But when I call "return render(request, reverse("accounts:signup"), {'form': signup_form}) " in my views.py, it shows me an error, the traceback is:</p>
  
  <pre><code>Environment:
  
  Request Method: POST
  Request URL: http://127.0.0.1:8000/accounts/signup_post/
  
  Django Version: 1.7
  Python Version: 2.7.5
  Installed Applications:
  ('django.contrib.admin',
   'django.contrib.auth',
   'django.contrib.contenttypes',
   'django.contrib.sessions',
   'django.contrib.messages',
   'django.contrib.staticfiles',
   'accounts')
  Installed Middleware:
  ('django.contrib.sessions.middleware.SessionMiddleware',
   'django.middleware.common.CommonMiddleware',
   'django.middleware.csrf.CsrfViewMiddleware',
   'django.contrib.auth.middleware.AuthenticationMiddleware',
   'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
   'django.contrib.messages.middleware.MessageMiddleware',
   'django.middleware.clickjacking.XFrameOptionsMiddleware')
  
  Template Loader Error:
  Django tried loading these templates, in this order:
  Using loader django.template.loaders.filesystem.Loader:
  Using loader django.template.loaders.app_directories.Loader:
  
  Traceback:
  File "/Users/feizhao/.virtualenvs/nahan/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
    111.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/Users/feizhao/dropbox/nahan/accounts/views.py" in signup_post
    64.     return render(request, reverse("accounts:signup"), {'form': signup_form})
  File "/Users/feizhao/.virtualenvs/nahan/lib/python2.7/site-packages/django/shortcuts.py" in render
    48.     return HttpResponse(loader.render_to_string(*args, **kwargs),
  File "/Users/feizhao/.virtualenvs/nahan/lib/python2.7/site-packages/django/template/loader.py" in render_to_string
    170.         t = get_template(template_name, dirs)
  File "/Users/feizhao/.virtualenvs/nahan/lib/python2.7/site-packages/django/template/loader.py" in get_template
    144.     template, origin = find_template(template_name, dirs)
  File "/Users/feizhao/.virtualenvs/nahan/lib/python2.7/site-packages/django/template/loader.py" in find_template
    136.     raise TemplateDoesNotExist(name)
  
  Exception Type: TemplateDoesNotExist at /accounts/signup_post/
  Exception Value: /accounts/signup/
  </code></pre>
  
  <p>my account app looks like:</p>
  
  <pre><code>$ tree -L 3 accounts
  accounts
  ├── __init__.py
  ├── admin.py
  ├── forms.py
  ├── locale
  │   └── zh_CN
  ├── migrations
  │   ├── 0001_initial.py
  │   ├── __init__.py
  ├── models.py
  ├── static
  │   └── accounts
  │       └── login.css
  ├── templates
  │   └── accounts
  │       ├── base.html
  │       ├── login.html
  │       └── signup.html
  ├── tests.py
  ├── urls.py
  ├── views.py
  </code></pre>
  
  <p>urls.py:</p>
  
  <pre><code>urlpatterns = patterns(
      '',
      url(r'^accounts/', include('accounts.urls', namespace="accounts")),
      url(r'^admin/', include(admin.site.urls)),
  )
  </code></pre>
  
  <p>accounts/urls.py:</p>
  
  <pre><code>urlpatterns = patterns(
      '',
      url(r'^login/$', views.login, name='login'),
      url(r'^signup/$', views.signup, name='signup'),
      url(r'^login_post/$', views.login_post, name='login_post'),
      url(r'^signup_post/$', views.signup_post, name='signup_post'),
  )
  </code></pre>
  
  <p>signup_post function in views.py: </p>
  
  <pre><code>def signup_post(request):
      if request.method == 'POST':
          signup_form = forms.SignupForm(request.POST)
  
          if signup_form.is_valid():
              signup_info = signup_form.cleaned_data
              username = signup_info['username']
              email = signup_info['email']
              password = signup_info['password_1']
              user = User.objects.create_user(
                  username=username,
                  email=email,
                  password=password)
              user.save()
  
      else:
          signup_form = forms.SignupForm()
  
      return render(request, reverse("accounts:signup"), {'form': signup_form})
  </code></pre>
  
  <p>I have read <a href="https://stackoverflow.com/questions/4765003/django-templatedoesnotexist">Django TemplateDoesNotExist</a> and other similar questions, but no help!</p>
  
  <p>ps: I have asked <a href="https://stackoverflow.com/questions/27821252/django-form-field-validation-and-error-display">another question</a> about the signup, maybe usefull.</p>