title: Can One register namespace in django without adding a URL pattern?
body: <p>When creating an <a href="http://django-cms.readthedocs.org/en/latest/extending_cms/app_integration.html" rel="nofollow">apphook</a> for the <a href="http://django-photologue.readthedocs.org/en/3.0/" rel="nofollow">photologue</a> app into <a href="http://django-cms.readthedocs.org/en/latest/extending_cms/app_integration.html" rel="nofollow">django-CMS</a>, I ran into trouble: </p>
  
  <pre><code>"photologue" is not a registered namespace
  </code></pre>
  
  <p>when trying to reverse an URL such as:</p>
  
  <pre><code>href="{% url 'photologue:pl-gallery-archive-year' date.year %}"
  </code></pre>
  
  <hr>
  
  <p><strong>My current Solution</strong> is to add a 'foo' url pattern below the cms urls in urls.py so that foo will not ever be matched, but the photologue namespace is registered.</p>
  
  <p>urls.py:</p>
  
  <pre><code>urlpatterns = i18n_patterns('',
      url(r'^admin/', include(admin.site.urls)),  # NOQA
      url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap',
          {'sitemaps':
               {
                   'cmspages': CMSSitemap,
                   'photologue_galleries': GallerySitemap,
                   'photologue_photos': PhotoSitemap,
               }}),
  
      url(r'^', include('cms.urls')),
      url(r'^foo/', include('photologue.urls', namespace='photologue')),
  
  )
  </code></pre>
  
  <p>cms_app.py:</p>
  
  <pre><code>class GalleriesApphook(CMSApp):
      name = _("Galleries Apphook")
      urls = ["photologue.urls"]
      app_name = "photologue"
  apphook_pool.register(GalleriesApphook)
  </code></pre>
  
  <hr>
  
  <p><strong>My question is:</strong> Is there a cleaner way to do this ? Like a "register_namespace" function in the django core ?</p>
  
  <p><strong>EDIT</strong> </p>
  
  <p>I found something "slightly cleaner" in the <a href="http://imagestore.readthedocs.org/en/latest/djangocms.html" rel="nofollow">imagestore doc</a>. In order not to pollute urls they re-include the cms ones with the namespace.</p>
  
  <pre><code>url(r'^', include('cms.urls', namespace='imagestore'))
  </code></pre>