Repository navigation
task: initial url routing and templating - #81
Merged
Merged
Conversation
russtoku
previously approved these changes
Mar 25, 2024
Member
There was a problem hiding this comment.
Looks good to me. OK to merge for now.
I was able to get the dev website running with the database, search engine, and Vite front end. I also loaded the fixtures and uploaded 113 public bodies.
Minor thing:
- I did notice that some JavaScript is missing because the drop-down menu for Hello after you login doesn't work.
russtoku
reviewed
Mar 25, 2024
russtoku
approved these changes
Mar 26, 2024
russtoku
left a comment
Member
There was a problem hiding this comment.
LGTM. The dev site runs and can load public bodies.
Member
|
Awesome! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
As recommended by @stefanw here, this PR introduces:
uipa_org/theme/urls.pyuipa_org/templates/Instructions
For anyone else looking at this PR, the way you can introduce new template overrides is as follows:
froide/templatesand find the correct file/section you are trying to edit, and replicate the same structure underuipa_org/templates{% block < > %}statements match the section you are trying to overrideThis settings code does the magic of importing any new template file automatically under the
uipa_org/templatesdirectory.For introducing any new url routing, look at
uipa_org/theme/urls.py'surlpatternsvariable here:uipa/uipa_org/theme/urls.py
Lines 59 to 60 in 3288d93
Example
Demo Image