πQuick Start
Welcome to the Django, your go-to foundation for building powerful web applications with Django, HTML5, and Bootstrap 5.*. This guide will walk you through the steps to set up and start us.
Prerequisites
Before you begin, make sure you have the following installed on your machine:
Node.js ( Node v20.*)
Python (3.6 or higher)
Django (4.2 or higher)
A code editor of your choice (e.g., Visual Studio Code, Atom, Sublime Text, etc)
Build Assets
Before running the application we need to build theme assets:
Open your project to vs code.
Start a command prompt window or terminal and change directory to Lightable-Node/
Install packages using one of following commands
This command will fetch all dependencies listed in /package.json
and place them into/node_modules
folder.
You can use Gulp command to bundle theme assets. The below command will compile all the assets(sass, js, media) to
/public/assets
folder:
Install Python
Django is a Python web framework. See What Python version can I use with Django? for details.
Get the latest version of Python at https://www.python.org/downloads/ or with your operating systemβs package manager.
Download the executable installer and run it.
After installation, open the command prompt and check that the Python version matches the version you installed by executing:
Check Pip Version
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
Virtualenv installation command for Windows
Activate Virtual Environment on Windows OS
environment-name/Scripts/activate
Django
Install Django on linux & mac OS
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.
Run Project
You have x unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions. Run 'python manage.py migrate' to apply them.
Setting up Static Files
Go to light_able_django/settings.py and add following command:-
Run below command for run your project
Last updated