Reference discussion: https://github.com/pydanny/dj-
stripe/pull/254#issuecomment-168515982
--
Ticket URL: <https://code.djangoproject.com/ticket/26028>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Old description:
> For dj-stripe, I get asked how to do this a lot. Rather than include
> instructions on how to do this in that third-party package, shouldn't
> this be improved in the core documentation?
>
> Reference discussion: https://github.com/pydanny/dj-
> stripe/pull/254#issuecomment-168515982
New description:
For dj-stripe, I get asked how to do this a lot. Rather than include
instructions on how to do this in that third-party package, shouldn't this
be improved in the core documentation?
Reference discussion: https://github.com/pydanny/dj-
stripe/pull/254#issuecomment-168515982
Current status of instructions:
* Somewhere in the tutorials
*
https://docs.djangoproject.com/en/1.9/ref/templates/api/#django.template.loaders.app_directories.Loader
(arguably obtuse)
--
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:1>
Old description:
> For dj-stripe, I get asked how to do this a lot. Rather than include
> instructions on how to do this in that third-party package, shouldn't
> this be improved in the core documentation?
>
> Reference discussion: https://github.com/pydanny/dj-
> stripe/pull/254#issuecomment-168515982
>
> Current status of instructions:
>
> * Somewhere in the tutorials
> *
> https://docs.djangoproject.com/en/1.9/ref/templates/api/#django.template.loaders.app_directories.Loader
> (arguably obtuse)
New description:
For dj-stripe, I get asked how to do this a lot. Rather than include
instructions on how to do this in that third-party package, shouldn't this
be improved in the core documentation?
Reference discussion: https://github.com/pydanny/dj-
stripe/pull/254#issuecomment-168515982
Existing instructions on template overloading:
* Somewhere in the tutorials
*
https://docs.djangoproject.com/en/1.9/ref/templates/api/#django.template.loaders.app_directories.Loader
(arguably obtuse)
--
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:2>
Comment (by pydanny):
Tutorial location: https://docs.djangoproject.com/en/1.9/intro/tutorial07
/#customizing-your-application-s-templates
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:3>
Comment (by cjrh):
When I was researching how to customize third-party apps, I found this
blog entry very useful for a rapid overview:
http://blog.yourlabs.org/post/19777151073/how-to-override-a-view-from-an-
external-django-app
I also recently discovered this third-party app loader that allows one to
extend templates, rather than replace them completely:
https://pypi.python.org/pypi/django-apptemplates/
From IRC discussions, it sounds like quite a few experienced people use
forking for customization. It would be good to have clear guidelines
about how to avoid forking , as well as guidelines on how to correctly do
forking when you really have to.
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:4>
* type: Uncategorized => New feature
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:5>
Old description:
> For dj-stripe, I get asked how to do this a lot. Rather than include
> instructions on how to do this in that third-party package, shouldn't
> this be improved in the core documentation?
>
> Reference discussion: https://github.com/pydanny/dj-
> stripe/pull/254#issuecomment-168515982
>
> Existing instructions on template overloading:
>
> * Somewhere in the tutorials
> *
> https://docs.djangoproject.com/en/1.9/ref/templates/api/#django.template.loaders.app_directories.Loader
> (arguably obtuse)
New description:
For dj-stripe, I get asked how to do this a lot. Rather than include
instructions on how to do this in that third-party package, shouldn't this
be improved in the core documentation?
Reference discussion: https://github.com/pydanny/dj-
stripe/pull/254#issuecomment-168515982
Existing instructions on template overriding:
* In the tutorial: https://docs.djangoproject.com/en/1.9/intro/tutorial07
/#customizing-your-application-s-templates
*
https://docs.djangoproject.com/en/1.9/ref/templates/api/#django.template.loaders.app_directories.Loader
(arguably obtuse)
--
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:6>
* owner: nobody => phildini
* status: new => assigned
Comment:
I'm very interested in making this better as I use this pattern all the
time. Any tips on where this doc should live would be helpful, I'll also
make a best guess in a PR soon, hopefully.
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:7>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:8>
* cc: berker.peksag@… (added)
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:9>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:10>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:10>
Comment (by Philip James):
Gentle ping: All the tests have passed, and I think the relevant feedback
has been captured in the PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:11>
* stage: Accepted => Ready for checkin
Comment:
I just reviewed the last version the PR and it looks like all of my
previous review comments have been addressed. I left two minor comments on
GitHub, otherwise it looks pretty good to me. Thank you!
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:12>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"7c9a83330169df1118f6bd690aed131e7c59638d" 7c9a8333]:
{{{
#!CommitTicketReference repository=""
revision="7c9a83330169df1118f6bd690aed131e7c59638d"
Fixed #26028 -- Added overriding templates howto.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:13>
Comment (by Tim Graham <timograham@…>):
In [changeset:"34ea3d61af2361c1ed2f4f0709d59c9a64bb866c" 34ea3d6]:
{{{
#!CommitTicketReference repository=""
revision="34ea3d61af2361c1ed2f4f0709d59c9a64bb866c"
[1.11.x] Fixed #26028 -- Added overriding templates howto.
Backport of 7c9a83330169df1118f6bd690aed131e7c59638d from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26028#comment:14>