This is a minimalistic blog built using Django Admin for content management and Bootstrap for styling.
- User-friendly Django Admin interface for managing blog content.
- Bootstrap for a clean and responsive design.
- Simple and lightweight structure for easy customization.
- Python (3.6 or higher)
- Django (3.x)
- Bootstrap (5.x)
-
Clone the repository:
git clone https://github.com/roderiano/django-blog.git
-
Create and activate a virtual environment:
python -m venv venv
-
Install dependencies:
pip install -r requirements.txt
-
Configure environment variables: Copy the
.env-sample
file to a new file called.env
. Open the.env
file and replace the values with your own. -
Apply migrations:
python manage.py migrate
-
Create a superuser for accessing the Django Admin:
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
-
Open your browser and navigate to http://127.0.0.1:8000/admin/ to log in and start managing your blog content.
To run the tests, use the following command:
python manage.py test
This project provides easy customization of the visual style through custom CSS variables at 'static/css/style.css'. Here's how you can personalize the appearance of your blog:
:root {
--custom-primary: #3498db; /* Replace with your preferred primary color */
--custom-secondary: #777777; /* Replace with your preferred secondary color */
--custom-body-color: #fff; /* Replace with your preferred background color */
--custom-main-color: #000000; /* Replace with your preferred main text color */
--custom-navbar-color: #303030; /* Replace with your preferred navigation bar color */
}
.btn-primary {
background-color: var(--custom-primary);
border-color: var(--custom-primary);
color: #fff;
}
.btn-secondary {
background-color: var(--custom-secondary);
border-color: var(--custom-secondary);
color: #fff;
}
.navbar {
background-color: var(--custom-navbar-color);
}
body {
color: var(--custom-main-color);
background-color: var(--custom-body-color);
}
Feel free to experiment and tailor these variables to match your desired design aesthetic.
- Access the Django Admin interface to create, edit, and delete blog posts.
- Customize the Bootstrap templates in the
templates
directory to modify the appearance of your blog. - Extend the functionality by adding additional Django apps, models, or views as needed.
Contributions are welcome! If you have suggestions, bug reports, or want to discuss new features, please open an issue to start a discussion.
For implementing new features or fixing bugs:
-
Fork the repository.
-
Create a new branch from the
develop
branch:git checkout -b feature/your-feature-name
-
Make your changes and ensure the code follows the project's coding standards.
-
Test your changes thoroughly.
-
Commit your changes:
git commit -m "Add your concise and meaningful commit message"
-
Push your branch to your fork:
git push origin feature/your-feature-name
-
Open a pull request against the
develop
branch, describing your changes and referencing the related issue. -
Your pull request will be reviewed, and once approved, it will be merged.
Thank you for contributing to DevReport!
This project is licensed under the MIT License.