PythonDjango-simple-blog-app
-
Download and extract: django_simple_blog_app_complete 2.zip
-
Navigate to Project Folder Open terminal and go into the extracted folder: cd django_simple_blog_app_complete 2
-
Set Up Virtual Environment Create a virtual environment:
python -m venv venv
Activate it: On Windows:
venv\Scripts\activate On Mac: source venv/bin/activate
-
Install Django Install Django using pip:
pip install django
-
Run Migrations Initialize the database:
python manage.py makemigrations python manage.py migrate
-
Create Superuser (Admin Login) To access the admin panel:
python manage.py createsuperuser (Enter username, email, password when prompted.)
-
Run the Server Start the local development server:
python manage.py runserver
-
Visit in your browser: http://127.0.0.1:8000
-
Use the App | Page | URL | | ---------------- | -------------------- | | Blog List (Home) |
/| | Blog Detail |/blog/<id>/| | Create Blog |/blog/create/| | Edit Blog |/blog/edit/<id>/| | Delete Blog |/blog/delete/<id>/| | Register |/register/| | Login |/login/| | Admin Panel |/admin/|
Please run this one command to create the missing migration for your blog models:
python manage.py makemigrations blog python manage.py migrate python manage.py runserver
--------------------------- Thank you -------------------------