title: Debugging URL Pattern in Django
body: <p>I noticed that some of my urlpatterns have attributes different from the others. Notably <code>_urlconf_module</code> and <code>_urlconf_name</code> are missing. I have been getting a ton of <code>AttributeError: 'RegexURLResolver' object has no attribute '_urlconf_module'</code> errors in production and this seems to be the only clue I got.</p>
  
  <p>Does anyone know why the attributes of the urlconf are different and if that is an issue how could one fix it?</p>
  
  <p>One set of urls of the form  <code>url(r'^accounts/register/$',  RegistrationView.as_view(), name='registration_register'),</code> has these attributes</p>
  
  <pre><code>{'_callback': &lt;function app1.views.RegistrationView&gt;,
   '_regex': '^accounts/register/$',
   '_regex_dict': {'en-us': re.compile(r'^accounts/register/$', re.UNICODE)},
   'default_args': {},
   'name': 'registration_register'} 
  </code></pre>
  
  <p>and the other of the form <code>(r'^activation/', include('activation.urls'))</code> has these</p>
  
  <pre><code>{'_app_dict': {},
   '_namespace_dict': {},
   '_regex': '^activation/',
   '_regex_dict': {'en-us': re.compile(r'^activation/', re.UNICODE)},
   '_reverse_dict': {},
   '_urlconf_module': &lt;module 'activation.urls' from '&lt;path to app2&gt;/activation/urls.pyc'&gt;,
   'app_name': None,
   'callback': None,
   'default_kwargs': {},
   'namespace': None,
   'urlconf_name': &lt;module 'activation.urls' from '&lt;path to app2&gt;/activation/urls.pyc'&gt;}
  </code></pre>
  
  <p>Note that I had upgraded to <code>django-registration-1.0</code> when the errors started happening which requires me to use class based view and might be one of the underlying reasons.</p>