You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just stumbled upon this project project and tried out the example project. It's an amazing project and the fact that it's integrated with wagtail is just brilliant. I had never thought of using wagtail for anything other than building a blog or a news site, but this project has proven me wrong.
However, my only complaint is that the project seems geared towards using a JS framework, which I'm not too fond of anymore after discovering htmx. I would prefer to use simple Django views with HTML, CSS, and JS (htmx+ alpinejs) without much hassle. While it seems doable, it's not very easy at first glance.
I plan to try to customize it to suit my needs, and I have some questions that could guide me.
First of all, is it possible to use wagtail pages with the API in a straightforward way?
Additionally, would it be possible to use the API/call the API views inside my views while passing the user request and session around? I'm wondering if this is something that Django Rest Framework would allow.
Finally, I haven't delved too deeply into the code, but I'm curious: does most of the business logic reside in the models (following the fat models approach)? Is the code organized in a way that writing my views would be fairly straightforward?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here's an improved version of your text:
I just stumbled upon this project project and tried out the example project. It's an amazing project and the fact that it's integrated with wagtail is just brilliant. I had never thought of using wagtail for anything other than building a blog or a news site, but this project has proven me wrong.
However, my only complaint is that the project seems geared towards using a JS framework, which I'm not too fond of anymore after discovering htmx. I would prefer to use simple Django views with HTML, CSS, and JS (htmx+ alpinejs) without much hassle. While it seems doable, it's not very easy at first glance.
I plan to try to customize it to suit my needs, and I have some questions that could guide me.
First of all, is it possible to use wagtail pages with the API in a straightforward way?
Additionally, would it be possible to use the API/call the API views inside my views while passing the user request and session around? I'm wondering if this is something that Django Rest Framework would allow.
Finally, I haven't delved too deeply into the code, but I'm curious: does most of the business logic reside in the models (following the fat models approach)? Is the code organized in a way that writing my views would be fairly straightforward?
By the way thank you for making this.
Best regards,
Tobi
Beta Was this translation helpful? Give feedback.
All reactions