Python Version >> 3.8.10 Django Version >> 3.2.5 Skote Installation in Django Python >>>Installation Python ->https://www.python.org/downloads/ >>For Windows OS -Download python from windows store -Select the Python's version to download. -Click on the Install Now -Installation in Process >>For Linux OS -sudo apt update -sudo apt install python3 >>>Open terminal -python --version >>>To check pip version -py -m pip --version -upgread pip -py -m pip install --upgrade pip >>>Installing virtualenv #linux & mac os ->python3 -m pip install --user virtualenv #Windows ->py -m pip install --user virtualenv >>>Create Virtual Environment #linux & mac os ->python3 -m venv environment_name #Windows ->python -m venv environment_name >>>Activate Environment #Linux & mac os ->source environment_name/bin/activate #Windows ->environment_name\Scripts\activate >>>Install Django #linux & mac os ->pip3 install django #Windows ->pip install django >>>First please check Django properly Installed or not #Linux/macOS python3 -m django --version #Windows python -m django --version >>>Open terminal -Goto project directory using cd command >>>Install few libraries ->pip install django-embed-video ->pip install django-crispy-forms 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', } } >>>To Create superuser ->python manage.py createsuperuser enter username = your_username enter your Email Address enter your password enter your password again -> Windows:-python manage.py migrate -> Linux:-python3 manage.py migrate >>>To load Static Files:- >Go to Skote/setings.py -Add following command:- STATIC_URL = '/static/' STATICFILES_DIRS = [os.path.join(BASE_DIR,'static')] STATIC_ROOT= os.path.join(BASE_DIR,'assets') >Run Command In Terminal -python manage.py collectstatic -Goto settings.py of Main Directory -SMTP CONFIGURATION 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' >>>To Set Default Layout >Goto templates/partial/base.html #STEP :-1 Select Anyone of following BodyTag #Make changes according choice at Line No 23 1.Dark Sidebar 2.light sidebar 2.Compact Sidebar 3.Icon Sidebar 4.Box Width Sidebar 5.Prealoader Sidebar
6.Colored Sidebar 7.Scrollable Sidebar STEP:-2 Select Vertical Header and Siderbar & comment the Horizontal Header View as shown below. {% block header %} {% include 'partials/header.html' %} {% endblock %} {% block sidebar %} {% include 'partials/sidebar.html' %} {% endblock %} {% comment %} {% block header %} {% include 'partials/hori-header.html' %} {% endblock %} {% block sidebar %} {% include 'partials/hori-sidebar.html' %} {% endblock %} {% endcomment %} #STEP :-1 Select Anyone of following BodyTag #Make changes according choice at Line No 23 1.Horizontal Bar 2.Horizontal top dark Bar 3.Horizontal Box Width Sidebar 4.Horizontal Prealoader bar
5.Horizontal colored Header 6.Scrollable Horizontal sidebar STEP :-2 Comment the Vertical layout view and Siderbar & then Select Horizontal Layout View as shown below. {% comment %} {% block header %} {% include 'partials/header.html' %} {% endblock %} {% block sidebar %} {% include 'partials/sidebar.html' %} {% endblock %} {% endcomment %} {% block header %} {% include 'partials/hori-header.html' %} {% endblock %} {% block sidebar %} {% include 'partials/hori-sidebar.html' %} {% endblock %} >> To set Default light/dark/RTL Mode >>Go static/js/app.js -line number 218 >For Light theme alreadyVisited = "light-mode-switch"; >For Dark theme alreadyVisited = "dark-mode-switch"; >For RTL theme alreadyVisited = "rtl-mode-switch"; # for RTL mode only -Goto templetes/partials/base.html line number 3 -> Windows:-python manage.py migrate -> Linux:-python3 manage.py migrate >>>Run your project -Windows:-python manage.py runserver -Linux:-python3 manage.py runserver