mirror of
https://github.com/postgres/pgweb.git
synced 2025-07-25 16:02:27 +00:00

render_to_response does not work on newer django, so it needs to be replaced. And using a speicfic context actually overcomplicates things, it's easier to just use a wrapper function. For those cases where we don't need NavContext, just use render() (the new shortcut function from django), which also removes the need to use RequestContext.
11 lines
472 B
ReStructuredText
11 lines
472 B
ReStructuredText
Navigation
|
|
==========
|
|
The navigation system is based on a django function called render_pgweb,
|
|
implemented in pgweb.util.contexts. This means that all the
|
|
menu links in the system are defined in this file
|
|
(pgweb/utils/contexts.py). Each django view needs to use render_pgweb()
|
|
instead of render(), and this will make the correct nav menu show up.
|
|
|
|
This is one of the parts of the system that can probably be made a lot
|
|
easier, leaving much room for future improvement :-)
|