This is a simple blog application built with Django. It demonstrates basic CRUD operations (Create, Read, Update, Delete) with Django's models, views, and templates. The application also includes search functionality and utilizes curl
commands for API testing.
If you want to gets more about this project please visit in my blog.
django-project/
manage.py
django-project/
__init__.py
settings.py
urls.py
wsgi.py
asgi.py
blog/
__init__.py
admin.py
apps.py
migrations/
models.py
tests.py
views.py
templates/
blog/
post_list.html
post_detail.html
create_post.html
update_post.html
static/
blog/
style.css
urls.py
- Python 3.x
- Django 3.x or higher
- Clone the repository:
git clone https://github.com/moraneus/django-blog-application-tutorial.git
cd django-blog-application-tutorial
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
- Install dependencies:
pip install django
- Apply migrations:
python manage.py makemigrations blog
python manage.py migrate
- Create a superuser:
python manage.py createsuperuser
- Run the development server:
python manage.py runserver