Closed anschelburk closed 4 months ago
Did you check the runserver log?
When I make an edit to the title of an event I see this:
Not Found: /api/updat_event
Not Found: /api/update_event/
[06/Jun/2024 15:37:09] "GET /api/updat_event HTTP/1.1" 404 2845
[06/Jun/2024 15:37:09] "PUT /api/update_event/ HTTP/1.1" 404 2851
This seems off?
path('api/update_event', views.create_event, name='update_event'),
I use the Silver Searcher for finding patterns fast, so based on the error, seems you have a typo here:
$ ag updat_event
planner/templates/calendar_modal_structure.html
30: <button type="button" hx-get="/api/updat_event" hx-target="#calendar" class="btn btn-primary" id="saveEventChanges">Save changes</button>
@anschelburk this will help: https://github.com/anschelburk/simpleplanner/pull/14
Please merge my changes there, then pull your branch and keep going 📈
I use the Silver Searcher for finding patterns fast, so based on the error, seems you have a typo here:
$ ag updat_event planner/templates/calendar_modal_structure.html 30: <button type="button" hx-get="/api/updat_event" hx-target="#calendar" class="btn btn-primary" id="saveEventChanges">Save changes</button>
I installed ripgrep actually today, slightly faster even (and in rust < so you'll need to have rust installed): cargo install ripgrep
Got my code up on GitHub! I followed the steps in Issue #12, but it still isn't working. This may be in part because the modal is no longer closing when a user clicks "Save." I'm not sure what I'm doing wrong. Do you have any suggestions? Appreciate it.