Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

How to use this template with python and a framework django?


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.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


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.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(