Hostma – Django Modern Web Hosting Template

Dashboard
Welcome to Hostma – Django Modern Web Hosting Template
  • Created Date : 14/March/2023
  • Author : Spruko
  • Company : Spruko Technologies Private Limited

Thank you for showing interest towards our admin template. Feel free to contact us any time. We have a dedicated team to provide you the best support. If you want any queries open support ticket https://support.spruko.com/.

Introduction
Welcome to Hostma – Django Modern Web Hosting Template

Hostma - Django Modern Web Hosting Template, With these template formats, it's very easy to create a presence and grab someone's attention around the web page Because the template is built using HTML5, CSS3, Bootstrap 5 framework and with Sass. So please before you start working with the template take a quick look on the documentation so that you can easily built your website.

If You Love Our Template Design Please don't forgot to rate it. Thank you so much! 😊

Template Description

Hostma is a Modern Web Hosting Template using modern and minimal design. It is fully flexible user-friendly and responsive. Hostma Modern template is powered with HTML 5, SASS, & Bootstrap 5 which looks great on Desktops, Tablets, and Mobile Devices. This Template Includes 40+ html Pages . No Need to do hard work for this template customization. We already designed it and you can easily design your website just how you like it. This template using Bootstrap 5 framework. After Purchased this template you will get All HTML files, CSS, Scss and JS Files.

It has super clean flat user interface admin Backend design, easy customizable components and widgets.The Template comes with a awesome unique design also we ensure you can easily design template.

It is a fully responsive layout for all type of devices. Works on all major web browsers, Desktop, iPhone, iPad, Tablet and all other smart phone devices

Once you Purchase Hostma is a Modern Web Hosting Template, you will be able to get free download of all future updates.

Theme Features :

Light Theme

Dark Theme

LTR Version

RTL Version

Fullwidth & Boxed

Template Features
Dark Theme Ready RTL Version Boxed Layout
40+ html Pages Easy to Customize Bootstrap 5 Responsive Framework
24 * 7 Professional Company Support Error Page Under Construction Page
Color Theme Support (Primary and Background) Neat, clean and simple design W3C Validated
Minimum Requirements

  • asgiref==3.6.0
  • beautifulsoup4==4.11.2
  • Django==4.1.7
  • django-htmlmin==0.11.0
  • html5lib==1.1
  • six==1.16.0
  • soupsieve==2.4
  • sqlparse==0.4.3
  • tzdata==2022.7
  • webencodings==0.5.1
Installation Process of Python
In order to run Django you need to install Python by the following steps
This steps are based on Windows OS

Step1: Please visite the Official Web Site of the Python python.org

Step2: Click on the Download Python button

Step3: Now your Python setup file has downloaded

Step4: Now Right click on the Python setup file and select Run as administrator click on Yes

Step5: Please click on the Check Box Add Python to PATH. And select Customize installation option

Step6: Click on Install for all users. And click on the Install button to install python on your system

Step7: To check whether Python is installed or not type python --version in your terminal or console

Step8: The pip package is automatically installed with your python installation

Step9: To check whether pip package is installed or not type pip --version in your terminal or console

NOTE: Please follow the official web site python.org to install on Linux/UNIX OS.

SET-UP DJANGO PROJECT
  • Assuming that you have already installed python in your computer.
  • First, you need to create an environment at your project location. where, you want to create your project in your computer globally or locally by setting your project path in the terminal.
  • To create Virtualenv type python -m venv env in your terminal or console
  • Now you need to activate your Virtualenv by typing env\scripts\activate
  • You must activate your Virtualenv to download any new dependencies "locally", otherwise those dependencies will install "globally"
INSTALLATION PROCESS OF Django

Here we are using "Python Manager" to download "Django"

If you know how to create Django project you can skip this step.

  • First open command prompt in my case Example:C:\Users\ADMIN01> and type pip install django and pip install django-htmlmin to install Django globally.
  • To check whether Django is installed or not type python -m django --version in your terminal or console
  • Now open a new command prompt and navigate to the folder where you want to create the Django project.
  • In my case Example:C:\Users\ADMIN01\Desktop\django>.
  • Now type the following command line django-admin startproject projectname and hit enter to create Django project. Here projectname is nothing but your django project folder name that you want to keep as your project name
  • Now you are sucessfully created Django project.
  • To create App or Application navigate to your django project folder Example:C:\Users\ADMIN01\Desktop\django\projectname> in your command prompt and type python manage.py startapp appname
  • Now you are sucessfully created App in your django project.
  • The project that you received will have a file called the requirements.txt file. Now go to that file location and then in your terminal type pip install -r requirements.txt
  • The above command will download all the required packages by using the requirements.txt file.
  • We have an improtant dependency or module called django-htmlmin it is used to minify the html content. You have already installed HTML_MINIFY with the help of requirements.txt file
  • By default we are disabling HTML_MINIFY module i.e., HTML_MINIFY= False if you want to enable HTML_MINIFY module please follow the root path dayone/settings.py in that file you will find HTML_MINIFY= False then change it into HTML_MINIFY= True
  • NOTE: If you have any further queries in installation please refer to the official website HERE

After installation run following command to get Django development server
python manage.py runserver
The Basic Structure Of Django Project
 
					
							├── app/
							|   ├── __pycache__/
							|   ├── migrations/
							|   ├── templates/
							|   |   ├── components/
							|   |   |   ├── layouts/	
							|   |   |   ├── base.html
							|   |   |   ├── custom-base.html	
							|   |   |   ├── custom-base2.html	
							|   |   |   └── switcher-base.html
							|   |   └── 40+ html pages																							
							├── hostma/
							├── static/
							|   └── assets/
							├── db.sqlite3
							├── gulpfile.js
							├── manage.py
							├── package.json
							├── package-lock
					
				
  • First, unzip the project folder that you received from us.
  • Navigate as shown Example: F:\project folder\app\templates in that template folder will have 40+ html pages
  • Navigate as shown Example: F:\project folder\app\templates\ Open components folder there you will find base.html, custom-base.html, custom-base2.html, switcher-base.html files
  • Here base.html file is the base file for all the html pages
  • Here custom-base.html file is the base file for all custom pages ex: forgot-password.html, login.html, register.html
  • Here custom-base2.html file is the base file for all custom pages ex: login2.html, register2.html, under-maintenance.html
  • Here switcher-base.html file is the base file for only switcher page ex: switcher.html
  • NOTE : By default switcher is enabled in your template, so the switcher-styles will work i.e., RTL, Dark-Theme and Light-Theme etc.., So if you want to enable those styles, first you need to remove or disable switcher in your template as shown in switcher section in documentation.
  • Please refer FAQ'S to activate other versions and styles like RTL, Dark-Theme, Boxed-Layout, etc..,
How to Run Django Project in localhost
Step:1 Quick view of Installations

1. Download and Install the python from official site https://python.org/

2. Install Django by using Python as mentioned in the installation process above.

Step:2 Run project

1. Extract the zip folder of the Django project in the path: EX: C:\xampp\htdocs\ that you have received after purchase.

2. Another process for accessing the Django project, open command prompt or terminal and set your project root path: Example: C:\xampp\htdocs

3. To create Virtualenv type python -m venv envin your terminal or console

4. Now you need to activate your Virtualenv by typing env\scripts\activate

5. Now then in your terminal type pip install -r requirements.txt

6. The above command will download all the required packages by using the requirements.txt file.

7. And run the command line: python manage.py runserver

8. Django development server at started: http://127.0.0.1:8000/ now type the url in the browser to access the project.

SCSS & CSS

Django comes with power of SCSS. The css files can be generated from scss by simply following below steps:

  • Gulp

    Gulp is a JavaScipt streaming task runner. It automate many development tasks. Using gulp you can perform tasks like running a local server, minifying code, compilation, Browser sync, optimizing images, etc... We are using gulp which allows to easily compilation of scss to css. You can read it more about it here.

Prerequisites

Please follow below steps to install and setup all prerequisites:

  • Nodejs

    Make sure to have the Node.js installed & running in your computer. If you have already installed nodejs on your computer, you can skip this step, otherwise install nodejs on your computer,

  • Gulp

    Make sure to have the Gulp installed & running in your computer. If you have already installed gulp on your computer, you can skip this step. In order to install, just run command npm install -g gulp from your terminal.

  • Gulp Variables

    After Completion of gulp Install. open gulpfile.js And install the "Declaration of gulp variables" in your command promt. In order to install, just run command
    npm install gulp,
    npm install gulp-sass,
    npm install gulp-postcss,
    npm install autoprefixer,
    npm install gulp-sourcemaps,
    npm install browser-sync,
    npm install gulp-cssbeautify,
    npm install gulp-beautify from your terminal.

    Make sure to have all above prerequisites installed & running in your computer. If you want to install more variables for your template, just declare the variables in gulpfile.js after that run in command promt

Installation

To setup, follow below mentioned steps:

  • Install Prerequisites

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

  • Install Dependencies

    Open your terminal, go to your folder and enter the command npm install. This would install all required dependencies in node_modules folder.

After you finished with above steps, you can run the command to compile scss files into css: gulp

SCSS & CSS

Here we provided package.json and gulpfile.js files in your project, you just need to run npm install in your terminal in your project root path.

After compilation of download, you can compile your SCSS files into CSS files by following below procedure.

Command Description
gulp watch In Noa template gulp watch command is used for, whatever the changes made in scss files, will watch and compiled into css files.
Version
  • python : 3.11.1
  • Django : 4.1.7
  • pip : 22.3.1
  • asgiref : 3.6.0
  • beautifulsoup4 : 4.11.2
  • django-htmlmin : 0.11.0
  • html5lib : 1.1
  • six : 1.16.0
  • soupsieve : 2.4
  • sqlparse : 0.4.3
  • tzdata : 2022.7
  • webencodings : 0.5.1
Over All Folder Structure
					

						├── app/
						|   ├── __pycache__/
						|   ├── migrations/
						|   ├── templates/
						|   |   ├── components/
						|   |   |   ├── layouts/
						|   |   |   |   ├── accept-cookie.html		
						|   |   |   |   ├── custom-scripts.html	
						|   |   |   |   ├── custom-scripts2.html	
						|   |   |   |   ├── custom-styles.html		
						|   |   |   |   ├── footer.html	
						|   |   |   |   ├── header.html
						|   |   |   |   ├── scripts.html	
						|   |   |   |   ├── sidebar.html		
						|   |   |   |   ├── styles.html		
						|   |   |   |   ├── switcher-icon.html	
						|   |   |   |   ├── switcher-scripts.html	
						|   |   |   |   ├── switcher-styles.html		
						|   |   |   |   └── switcher.html
						|   |   |   ├── base.html
						|   |   |   ├── custom-base.html
						|   |   |   ├── custom-base2.html
						|   |   |   └── switcher-base.html	
						|   |   └── 40+ html pages
						|   ├── __init__.py
						|   ├── admin.py
						|   ├── apps.py
						|   ├── models.py
						|   ├── tests.py
						|   ├── urls.py
						|   └── views.py
						├── hostma/
						|   ├── __pycache__
						|   ├── __init__.py
						|   ├── asgi.py
						|   ├── settings.py
						|   ├── urls.py
						|   └── wsgi.py
						├── static/
						|   └── assets/
						├── db.sqlite3
						├── gulpfile
						├── manage.py
						├── package-lock.json
						└── package.json
		
				
SWITCHER?

If you want to remove switcher to your template follow the below process.

FAQ'S

1) How to Change Font Style ?

Step 1:

Go To _fonts.scss (static/assets/scss/style.scss )

if you want to change another font-family Go to the site Google Fonts And Select One font Family and import In to style.css file

How to Select font Family

Example:

Step 2:

And paste Your Selected font-family in _style.scss

Example:

Step 3:

And add the Your Selected font-family in _customs.scss(static/assets/scss/custom/_customs.scss)

Example:

		body {
		font-size: 1rem;
		font-family: "Hind Siliguri", sans-serif;
		font-weight: 400;
		color: #{$color};
		background-color: #{$background};
		line-height: 1.5;
		text-align: start;
		overflow-x: clip;
		padding: 0;
		margin: 0;
		}
		
						

Note : After Changing font you must run gulp command i.e, gulp watch . Refer gulp page for more gulp commands click here.

2) How to Change Logo ?

Go To "static/assets/images/brand" folder and replace your logo with Previous Logos within in image size. note: Please don't increase logo sizes. Replace your logo within given image size. otherwise the logo will not fit in particular place it disturbs the template design.

3) How to change Menu icons ?

By default menu icons are Bootstrap icons if you want to change icons please follow below steps
Step 1 :

To change Menu icons, app/templates/components/layouts/sidebar.html page open and go through sidebar section, in that section you will find Bootstrap icons of menu in i tag, there you can replace previous icon with your icon. Example as shown in below

    
	
						
						

4) How to Enable RTL Version?

Please follow the below steps to enable RTL Version
Step 1 :

To enable RTL Version you have to open custom-switcher.js (static/assets/js/custom-switcher.js) file and remove comments for rtl as shown in below



		//RTL

		if (!localStorage.getItem("hostmartl")) {
		// html.setAttribute("dir" , "rtl") // for rtl version 
		}

						
Step 2 :
Remove the comments to enable rtl as shown below


		//RTL

		if (!localStorage.getItem("hostmartl")) {
		html.setAttribute("dir" , "rtl") // for rtl version 
		}

						

5) How to Enable Dark Theme?

Please follow the below steps to enable Dark Theme
Step 1 :

To enable Dark Theme you have to open custom-switcher.js (static/assets/js/custom-switcher.js) file and remove comments for dark-mode as shown in below



		//Dark Theme Style
		if (!localStorage.getItem("hostmadarktheme")) {
		// html.setAttribute("data-theme-mode" , "dark") // for dark theme 
		}

						
Step 2 :
Remove the comments to enable dark-mode as shown below


		//Dark Theme Style
		if (!localStorage.getItem("hostmadarktheme")) {
		html.setAttribute("data-theme-mode" , "dark") // for dark theme 
		}

						

6) How to Enable Boxed?

Please follow the below steps to enable Boxed
Step 1 :

To enable Boxed you have to open custom-switcher.js (static/assets/js/custom-switcher.js) file and remove comments for layout-boxed as shown in below


		if (!localStorage.getItem("hostmaboxed")) {
		// html.setAttribute("data-width" , "boxed") // for boxed style
		}
						
Step 2 :
Remove the comments to enable boxed as shown below

		if (!localStorage.getItem("hostmaboxed")) {
		html.setAttribute("data-width" , "boxed") // for boxed style
		}
						
Local Storage

How to clear LocalStorage (cookie)?

Step1:

Open custom-switcher.js file static/assets/js/custom-switcher.js

To clear LocalStorage loading functions you need to remove localStorageBackup() function in custom-switcher.js as shown below



						function localStorageBackup() {
						}

						
Step2:

To remove complete LocalStorage saving you need to remove all localstorage related calling functions in custom-switcher.js static/assets/js/custom-switcher.js files.

LocalStorage related functions like localStorage.setItem, localStorage.removeItem, localStorage.getItem, localStorage.clear. Below are the some examples to find out.


						localStorage.setItem("hostmadarktheme", true);
						localStorage.removeItem("hostmalighttheme");
						localStorage.getItem('hostmaboxed')
						localStorage.clear();
						localStorageBackup();
						
Theme Styles
Primary Color

How to Change Primary Color?

Please follow the below steps to change Primary Color
Step 1 :

To change Primary Color you have to open _variables.scss file and replace what color you want as shown in below

Rootpath : _variables.scss (static/assets/scss/_variables.scss )

Note : After Changing font you must run gulp command i.e, gulp watch . Refer gulp page for more gulp commands click here.

Dark Theme Style

If you want to change Dark Theme color you need to follow the below process.

How to Change Dark body Color?

Please follow the below steps to change Dark body Color
Step 1 :

To change Dark body Color you have to open _variables.scss file and replace what color you want as shown in below

Rootpath : _variables.scss (static/assets/scss/_variables.scss )

Note : After Changing font you must run gulp command i.e, gulp watch . Refer gulp page for more gulp commands click here.

Sources
Plugins Versions URL
Bootstrap v5.2.2 https://www.npmjs.com/package/bootstrap
Choices js v7.0.0 https://www.npmjs.com/package/choices.js
Swiper js v8.4.4 https://www.npmjs.com/package/swiper
Icons References
Font Awesome https://fontawesome.com/v4.7.0/icons/
Feather Icons https://feathericons.com/
Tabler Icons https://tabler-icons.io/
Bootstrap Icons https://icons.getbootstrap.com/
Images References
Vecteezy https://www.vecteezy.com/
Iconscount https://iconscout.com/
Unsplash https://unsplash.com/
Bootstrap Icons https://icons.getbootstrap.com/
Font Used

Google fonts are used in the template. They are as follows: Google Fonts

THANK YOU!