#7 - Integrated Django and Vue in Wobu
Modifying an existing codebase is no jokes ๐

Search for a command to run...
Modifying an existing codebase is no jokes ๐

Sometimes it feels like one step forward and two steps back. ๐ฅด You seem to have a good, persistent attitude. I continue to look forward to your updates.
Oh yeah, happens many a time. I'm okay as long as I'm not going just backwards ๐ . Thanks for the constant motivation Mike Boldrick, much appreciated.
In this series, I write about my journey of building WorkBuddy (previously named it Wobu), a work journal. I will share my learning, dos & donts, tips & tricks, best practices and more.
Yes, you heard it right. I decided to take a different route!
Some thoughts on why I built WorkBuddy, from someone who hasn't written here in a while

From content personalization to lead capture: the automation patterns that solve real business problems

See how three powerful tools work together to create professional user onboarding flows

Build scalable update systems that handle calculations, validations, and complex business logic

A step-by-step guide to updating data seamlessly by integrating Xano's backend with WeWeb's front-end

Quite some gap since my previous post, isn't it? Making a change like what I planned (see title of the post ๐ฅ) to is easier said than done, for two reasons:
Without getting a decent hold on Vue Js, it is not a good idea to proceed in my opinion. For that matter, without knowing the features of a framework, not just Vue, anything for that matter, one should not step in too deep. We can perform simple bug fixes and modifications with just basic knowledge and an understanding of the application in the picture, but beyond that is a risk. We will be spending an unnecessarily long time on simple fixes.
Introducing a frontend framework in an already working codebase with a lot of nuts and bolts becomes tricky. In Wobu's case, one major configuration I did after setting up the cookie-cutter Django project was integrating Tailwind Css. That was not as simple as importing Tailwind's Css, it had a lot of steps to be performed. Infact, I planned to share the same in a future post. Now that plans changed, it may not hold good ๐
I wouldn't say there were a lot of hiccups, but there was a major one. On building the Vue project, the assets folder was not copied fully to Django's static folder. CSS and SVG files were always missing.
One reason may have been the manual removal of Tailwind related configuration from my Django project. I removed quite a few folders and entries in multiple files.
Another reason is the configuration difference between a plain vanilla Django project and a cookie-cutter Django project.
The biggest one was, my Django project already had a lot of code from a template perspective.
Fixing path related issues, version related issues, and quite a few other options, didn't help. Hence, for the time being, I decided to take an alternate route. I kept aside the cookiecutter Django project, instead created a plain vanilla one, applied all my changes and then worked on the integration, and it worked.
Troubleshooting is also an art, it's tougher than development is what I've realized many a time ๐. It needs a different knack for things, a different thought process. Depending on the time you have in hand, sometimes you may be forced to put in a dirty fix, I wouldn't say it's a crime. Just make sure to go back to put in the correct fix at a later point in time. These are a few decisions that need to be made as a team.
In the coming weeks, there may be again a small delay in updating my progress in Wobu. Primarily because there's a lot to digest with Vue.
Stay tuned and I will come back with an interesting update soon!