title: Django/Python Runtime Error: Maximum recursion depth exceeded
body: <p>I'm trying to add a blog app to my Django project. When I put everything together, I can see my blog posts page, but something with the blogapp/urls.py file is causing me to get a maximum recursion error somewhere and I'm having a hard time finding it. First, here is the error message in full:</p>
  <pre><code>RuntimeError at /admin/
  maximum recursion depth exceeded while calling a Python object
  Request Method: GET
  Request URL:    localhost/admin/  #I edited this due to a posting error
  Django Version: 1.4
  Exception Type: RuntimeError
  Exception Value:    
  maximum recursion depth exceeded while calling a Python object
  Exception Location: /Users/User/tmp/newproject/DJANGO/lib/python2.7/site-packages/Django-1.4-py2.7.egg/django/utils/translation/trans_real.py in get_language, line 222
  Python Executable:  /Users/User/tmp/newproject/DJANGO/bin/python
  Python Version: 2.7.1
  </code></pre>
  <p>Here is the urlpatterns variable from mysite/urls.py:</p>
  <pre><code>urlpatterns = patterns('',
      url(r'^polls/', include('polls.urls')),
      url(r'^blogapp/', include('blogapp.urls')),
      url(r'^admin/', include(admin.site.urls)),
  )
  </code></pre>
  <p>And this is my blogapp/urls.py file:</p>
  <pre><code>from django.conf.urls import patterns, include, url
  from django.views.generic import ListView
  from blogapp.models import Post
  urlpatterns = patterns('',
      url(r'^', ListView.as_view(queryset=Post.objects.all().order_by(&quot;-created&quot;)[:2],
                              template_name=&quot;/Users/User/tmp/newproject/DJANGO/mysite/templates/blogapp/blog.htm    l&quot;)),     
      url(r'^blog/', include('blogapp.urls')),
  )
  </code></pre>
  <p>And, for good measure, this is my blogapp/models.py file:</p>
  <pre><code>from django.db import models
  
  class Post(models.Model):
      '''represents a class instance of a blog entry'''
      title = models.CharField(max_length=100)
      created = models.DateTimeField()
      body = models.TextField()
  
      def __unicode__(self):
          return self.title
  </code></pre>