The Starter Kit includes only the theme source code(sass, js, media, fonts and icons) from the HTML version, build tools(Gulp, Webpack),
layout views and general pages(index, authentication, error) integration.
To use any feature shown in the HTML version just copy & paste the HTML code and include required assets(css, js) using the Theme Api.
Verify that pip is installed by running the previous command to check the version. Navigate to the installation location (Python\Python311\Scripts) by default.
Django can be installed easily using pip.
In the command prompt and execute the following command:
python -m pip install django
This will download and install the latest Django release.
After the installation has completed, you can verify your Django installation by executing django-admin --version in the command prompt.
Before running the application we need to build theme assets:
Start a command prompt window or terminal and change directory to starterkit/_keenthemes/tools
Install dependencies with either one, yarn or npm:
You can use either one.
This command will fetch all dependencies listed in starterkit/_keenthemes/tools/package.json and place them into _keenthemes/tools/node_modules folder.
You can use Gulp
or Webpack commands to bundle theme assets.
The below command will compile all the assets(sass, js, media) to starterkit/assets folder:
For gulp use command:
For webpack use command:
npm run build
Note on the package.json file. This step is very important for Webpack in Metronic template. The default package.json works for Gulp. To make it work for Webpack, you have to modify tools/package.json and remove "type": "module".
Otherwise, it will cause compilation error when running the build command.
To run the Django application navigate your prompt to starterkit folder and run the following command. This command will listen for changes and hot reload them.