aptivate / kashana

Aptivate logframe django project
GNU Affero General Public License v3.0
13 stars 15 forks source link

Help with making changes to the "Indicator" Structure #78

Closed werzum closed 4 years ago

werzum commented 4 years ago

Hello, I am not sure wether this is the right channel, but I am trying to develop a fork of Kashana that integrates some changes for the NGO "Aktion Sodis" from Germany. However, I encounter many difficulties in making changes in the codebase and seeing any kind of outcome from them. I know this is a very broad question, but maybe someone could get in touch with me and try to help me out with understanding the project structure in general?

A short overview of the goal: For starters, I basically want to clone the "Source:" textfield in the Indicator, rename it to "Questions", and add it to every indicator.

What I already did: -added it to the logframe/models.py -added it to the .CSS and SCSS files -added a handlebar-template in the JS templates

I have seen models added in the migration-files, and reloaded the static files and cleaned the cache from my browser.

The problem: Changes do not present themselves, not even simple changes in the handlebar-templates (eg. changing the default text for the Question-textbox).

Thanks for your help in advance!

martinburchell commented 4 years ago

That sounds familiar. It's a while since I've developed code on this project but I think you need to rebuild your assets somehow. I'll check when I get a moment.

werzum commented 4 years ago

Thanks for the quick response, let me know when you find something!

werzum commented 4 years ago

Okay, so what solved the issue for me was simply running the grunt-job in /javascript/grunt.js. The grunt-file recompiles the handlebar-templates into the full logframe.js, which can then be moved into the static files with /django/website/manage.py collectstatic (--noinput --clear if you want to be safe and delete and copy all assets again).