The zip file contains all js files integrated with Kucra, however you need to perform following steps to run project locally.

Make sure to have the Python installed & running in your computer. If you already have installed Python on your computer, you can skip this step. Please use Python version 3 or if you are using Python version 2 then make sure to run all the below commands with python insted of python3. If you are using Windows OS then please install using APP store.

Prerequisites

Please follow below steps to install and setup all prerequisites:

  • Python

    Make sure to have the Python installed & running in your computer. If you already have installed Python on your computer, you can skip this step. Please use Python version 3 or if you are using Python version 2 then make sure to run all the below commands with python insted of python3.

    For windows
    • Download python from windows store
    • Select the Python's version to download.
    • Click on the Install Now
    • Installation in Process
    For Linux
    • sudo apt update
    • sudo apt install python3

  • Check Pip version

    py -m pip --version
    upgrade pip
    py -m pip install --upgrade pip

  • Virtualenv

    Make sure to have the virtualenv installed globally & running on your computer. If you already have installed on your computer, you can skip this step.

    Virtualenv installation command for linux & mac os
    python3 -m pip install --user virtualenv
    Virtualenv installation command for Windows
    py -m pip install --user virtualenv

Installation
  • Install Prerequisites

    Make sure to have all above prerequisites installed & running on your computer

Command Description
python3 -m venv env_name Create Virtual Environment on linux & mac OS
python -m venv env_name Create Virtual Environment on Windows OS
source environment_name/bin/activate Activate Environment on Linux & mac OS
environment_name\Scripts\activate Activate Environment on Windows OS
pip3 install django Install Django on linux & mac OS
pip install django Install Django on Windows OS

Note: Depending on your installation, you may need to use either pip3 or pip and for python you may need to use either python3 or python.

After you finished with the above steps, you can run the following commands into the terminal / command prompt from the root directory of the project to run the project locally:

Database Connectivity
Goto settings.py of main directory and update below settings.

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.#databaseservername#',
'NAME': 'Your Database Name',
'USER' : 'Database User Name',
'PASSWORD' : 'Your Password',
'HOST' : 'Write down Host',
'PORT' : 'Write down port',
}
}

Run below command for database migration
For Windows: python manage.py migrate
For Linux: python3 manage.py migrate

To create a superuser run the below command
python manage.py createsuperuser
enter username Your Username
enter your Email Address
enter your Password
enter your Password again

Run below command for run your project
For Windows: python manage.py runserver
For Linux: python3 manage.py runserver

To load static files
Go to Kucra/settings.py and add following command:-
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR,'static')]
STATIC_ROOT= os.path.join(BASE_DIR,'assets')

python manage.py collectstatic

SMTP CONFIGURATION

Go to Kucra/settings.py and update credential

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = 'YOUR EMAIL ADDRESS'
EMAIL_HOST_PASSWORD = 'YOUR HOST Password'
DEFAULT_FROM_EMAIL = 'YOUR EMAIL ADDRESS'
SERVER_EMAIL = 'YOUR EMAIL ADDRESS'

I have tried my best to have standards and modular structure while developing the theme. Following sections are explaining the theme File & Folder, Structure, CSS, js files Structure and plugins.

File & Folder Structure


Root Directory
├── Kucra
	├── contact
	├── kucra
	├── static
		└── css	
		├── fonts
		├── images
		└── js											
	├── templates
		├── account
		├── index
		├── partials
	├── db.sqlite3
	└── manage.py

Set Default home page


1) Index 1

Go to Kucra/kucra/urls.py.
and update code path('', TemplateView.as_view(template_name="index/index-1.html"),name="index") at line number 25.

2) Index 2

Go to Kucra/kucra/urls.py.
and update code path('', TemplateView.as_view(template_name="index/index-2.html"),name="index") at line number 25.

3) Index 3

Go to Kucra/kucra/urls.py.
and update code path('', TemplateView.as_view(template_name="index/index-3.html"),name="index") at line number 25.

4) Index 4

Go to Kucra/kucra/urls.py.
and update code path('', TemplateView.as_view(template_name="index/index-4.html"),name="index") at line number 25.

5) Index 5

Go to Kucra/kucra/urls.py.
and update code path('', TemplateView.as_view(template_name="index/index-5.html"),name="index") at line number 25.

6) Index 6

Go to Kucra/kucra/urls.py.
and update code path('', TemplateView.as_view(template_name="index/index-6.html"),name="index") at line number 25.

Color mode


1) Default Color

In order to have Default Color enabled, Go to Kucra/static/js/app.js.
and update code color = "default"; at line number 80.

2) Info(Sky Blue) Color

In order to have Info Color enabled, Go to Kucra/static/js/app.js.
and update code color = "info"; at line number 80.

3) Orange(orange) Color

In order to have Orange Color enabled, Go to Kucra/static/js/app.js.
and update code color = "orange"; at line number 80.

3) Success(Greeen) Color

In order to have Success Color enabled, Go to Kucra/static/js/app.js.
and update code color = "success"; at line number 80.

4) Purple(purple) Color

In order to have Purple Color enabled, Go to Kucra/static/js/app.js.
and update code color = "purple"; at line number 80.

6) Warning(yellow) Color

In order to have Warning Color enabled, Go to Kucra/static/js/app.js.
and update code color = "warning"; at line number 80.

manage.py Structure


Once again thank you for purchasing the theme. I am always avaialble to help you. If you have any suggestion or feature to make it more better, I am requesting you to contact me, I'll try my best to add them in future updates.

Best,

- Pichforest

Copyright 2021 Pichforest.