A simple blog application built with Django. Live Demo: https://django-blog-app-743225501073.asia-south1.run.app
- User authentication (register, login, logout)
- Create, edit, and delete blog posts
- Comment on posts
- Responsive UI using HTML templates
- Admin panel for managing posts and users
This application is dockerized and deployed on Google Cloud Run for easy, scalable hosting.
- The app runs inside a Docker container using Gunicorn as the production server.
- Static files are collected and served properly inside the container.
- Deployment is automated with Google Cloud Build and Cloud Run for seamless updates.
-
Clone the repository:
git clone https://github.com/j-harishankar/django-blog.git cd django-blog -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Create a superuser (admin access):
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
-
Visit the app: Open your browser and go to
http://127.0.0.1:8000/
- Fork the repository.
- Create your feature branch:
git checkout -b feature/YourFeature - Commit your changes.
- Push to the branch:
git push origin feature/YourFeature - Open a pull request.
This way, users understand your app is dockerized and deployed live, but they also have instructions to run it locally.
Want me to help you draft a short Docker usage section too?