A blog made with Python Django.
Previews |
---|
Homepage |
Author's Dashboard |
User's dashboard |
-
Python 3.11 or higher
-
Git Bash (Optional)
Open cmd
or bash
in the project directory.
Install Python virtual environment
pip install virtualenv
Create a virtual environment
virtualenv env_name
Activate virtual environment
On Mac
and Linux
(Also if you are using bash
on Windows
)
source env_name/bin/activate
On Windows
(If you are using cmd
)
.\env_name\Scripts\activate
Install dependencies
pip install -r requirements.txt
Migrate database
python manage.py makemigrations && python manage.py migrate
Collect static files (JS, CSS, Images)
python manage.py collectstatic
Create an admin user
python manage.py createsuperuser
Run the Django
server
python manage.py runserver
You can access the website at http://127.0.0.1:8000/ and the admin panel at http://127.0.0.1:8000/admin