I bought this template in this week and i dont know how to use this. I want to modify some functions, save some data on my own API, but the js dont allow certain changes, even css dont modify. Help me please soon as possible.
Hello,
For instructions on how to rebuild the JavaScript and CSS assets, please consult the following documentation: https://preview.keenthemes.com/django/metronic/docs/getting-started
If you encounter any issues, kindly share the details with us, and we will be happy to assist you.
Thank you!
Hey, thank you for answer me quickly! I had installed this template in django on this morning but let me explain better. I want to change some data on js, but the variable events[] on the "calandar.js" have static data. How can i get modify using django to consume data from my api to variable events[]? I love the dashboard and i really want to use in my company's system.
By the way, do you have some chatbot or other contact?
Hi,
You can modify the JavaScript files by editing the JS files located at `/starterkit/_keenthemes/src/js/custom/apps/calendar/calendar.js`.
However, after making modifications to this file, you'll need to rebuild the assets. To do this, navigate to `/starterkit/_keenthemes/tools` and use Gulp. You can find detailed instructions on building assets in the Metronic documentation here:
https://preview.keenthemes.com/django/metronic/docs/getting-started#build-assets
If you need to make dynamic data requests to your API, you can utilize JavaScript's AJAX functionality. You can use methods like `fetch` or jQuery's `$.ajax` to fetch data from your Django API and then update the `events` array in your `calendar.js` file or any other relevant file.
This approach will allow you to integrate your Django application with the Metronic template and make the necessary customizations to suit your needs.