The zip file contains all js files integrated with Xegal, 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 Xegal/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 Xegal/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
├── Xegal
	├── contact
	├── static
		└── css	
		├── fonts
		├── images
		└── js	
	├── templates
		├── index
		├── partials
	├── xegal
	├── db.sqlite3
	└── manage.py

Set Default home page


1) Index 1

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

2) Index 2

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

3) Index 3

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

4) Index 4

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

5) Index 5

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

6) Index 6

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

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.