The zip file contains all js files integrated with Sozia, 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 Paython 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.
Please follow below steps to install and setup all prerequisites:
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 Paython version 2 then make sure to run all the below commands with python insted of python3.
py -m pip --version
upgrade pip
py -m pip install --upgrade pip
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
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 |
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 Lexa/setings.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 Sozia/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.
Root Directory ├── Sozia ├── contact ├── portfolio ├── shop ├── static └── css ├── fonts ├── images └── js ├── templates ├── blog ├── dashboard ├── partials ├── portfolio ├── shop ├── sozia ├── db.sqlite3 └── manage.py
In order to have Light mode enabled, Go to Sozia/static/js/app.js
.
and update code
mode="light";
at line number 175.
In order to have Dark mode enabled, Go to Sozia/static/js/app.js
.
and update code
mode="dark";
at line number 175.
In order to have Default Color enabled, Go to Sozia/static/js/app.js
.
and update code color = "default";
at line number 175.
In order to have Success Color enabled, Go to Sozia/static/js/app.js
.
and update code color = "success";
at line number 175.
In order to have Warning Color enabled, Go to Sozia/static/js/app.js
.
and update code color = "warning";
at line number 175.
In order to have Danger Color enabled, Go to Sozia/static/js/app.js
.
and update code color = "danger";
at line number 175.
In order to have Info Color enabled, Go to Sozia/static/js/app.js
.
and update code color = "info";
at line number 175.
In order to have Amber Color enabled, Go to Sozia/static/js/app.js
.
and update code color = "amber";
at line number 175.
Version 1.1.0 - 22 Dec 2023
Version 1.0.0
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,
- Themesdesign
Copyright 2022 Themesdesign.