Opened 9 years ago

Closed 8 years ago

#2980 closed enhancement (fixed)

[patch] URLconf boilerplate uses old-style urlconf example

Reported by: ymasuda <ymasuda@…> Owned by: adrian
Component: Core (Management commands) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In conf/project_template/urls.py, an example urlpattern seems to include a child urlconf
in somewhat old-style layout # (r'^{{ project_name }}/', include('{{ project_name }}.apps.foo.urls.foo')), .
I think # (r'^{{ project_name }}/', include('{{ project_name }}.app.urls')), would be better.

Attachments (1)

boilerplate_change.diff (538 bytes) - added by ymasuda <ymasuda@…> 8 years ago.
change in urlconf boilerplate.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by ymasuda <ymasuda@…>

change in urlconf boilerplate.

comment:1 Changed 8 years ago by ymasuda <ymasuda@…>

  • Summary changed from URLconf boilerplate uses old-style urlconf example to [patch] URLconf boilerplate uses old-style urlconf example

Added patchfile.

comment:2 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [4112]) Fixed #2980 -- Changed project_template/urls.py to use new-style URLconf. Thanks for the patch, ymasuda

Note: See TracTickets for help on using tickets.
Back to Top