﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28413	app_name doesn't work in ROOT_URLCONF	stephanm	nobody	"In https://docs.djangoproject.com/en/1.11/ref/applications/#projects-and-applications
there is written:
""There’s no restriction that a project package can’t also be considered an application and have models, etc. (which would require adding it to INSTALLED_APPS)""

My environment:
 - django 1.11.3
 - python 3.6.2 64 bit
 - Windows 7 SP1 64bit Pro German

This is just what I did:
 - I created a djproject with {{{django-admin startproject djproject}}}
 - then I added ""djproject"" to INSTALLED_APPS
 - now I added the following files:
   -  djproject/views.py
   -  djproject/Templates/djproject/index.html
 - in djproject/urls.py I add the module veriable:
   {{{app_name = ""djproject""}}}
   
my index.html looks like:
{{{
<!DOCTYPE html>
<html>
<head>
<meta charset=""UTF-8"">
<title>Insert title here</title>
</head>
<body>
<p> the title is {{title}}</p>
<p> the url of this page is: {% url 'index' %}
</body>
</html>
   }}}

which works!
But if modify it to use namespace 'djproject' like this:
{{{
<!DOCTYPE html>
<html>
<head>
<meta charset=""UTF-8"">
<title>Insert title here</title>
</head>
<body>
<p> the title is {{title}}</p>
<p> the url of this page is: {% url 'djproject:index' %}
</body>
</html>
}}}
   
I get an Exception:
   {{{django.urls.exceptions.NoReverseMatch: 'djproject' is not a registered namespace}}}
  
The whole project is attached. To reproduce:
- run: {{{manage.py runserver}}}
- browse to: {{{http://localhost:8000}}}"	Bug	closed	Core (URLs)	1.11	Normal	invalid		Marten Kenbeek	Unreviewed	0	0	0	0	0	0
