This Django blog project is a simple web application built using Django, a high-level Python web framework. It allows users to create, edit, and delete blog posts, as well as comment on existing posts.
- User authentication: Users can register, log in, and log out.
- CRUD operations on blog posts: SuperUsers can create, read, update, and delete blog posts.
- Commenting system: Users can leave comments on blog posts.
- Responsive design: The blog is designed to be mobile-friendly.
To get started with this project, follow these steps:
-
Clone the repository:
git clone https://github.com/AlbeDere/web_blog.git
-
Install dependencies:
pip install -r requirements.txt
-
Apply database migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
Access the application at http://localhost:8000 in your web browser.
This project includes Docker configuration for easy deployment. Follow these steps to run the application in a Docker container:
-
Install Docker Desktop for your operating system: Docker Desktop
-
Build the Docker image:
docker-compose build
-
Start the Docker containers:
docker-compose up -d
Access the application at http://localhost:8000 in your web browser.
Contributions are welcome! Please follow these guidelines when contributing to the project:
- Fork the repository
- Create a new branch (
git checkout -b feature
) - Make your changes
- Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature
) - Create a new Pull Request
- You can create a superuser account to access the Django admin interface:
python manage.py createsuperuser
default superuser is: username - admin password - admin