https://github.com/ericgitangu/blog
Django-based blog biography
https://github.com/ericgitangu/blog
azure azureblobstorage azureweb ci django django-rest-framework github-actions middleware postgresql whitenoise
Last synced: 7 months ago
JSON representation
Django-based blog biography
- Host: GitHub
- URL: https://github.com/ericgitangu/blog
- Owner: ericgitangu
- Created: 2023-05-10T02:05:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-20T04:01:48.000Z (10 months ago)
- Last Synced: 2025-01-18T03:15:09.482Z (9 months ago)
- Topics: azure, azureblobstorage, azureweb, ci, django, django-rest-framework, github-actions, middleware, postgresql, whitenoise
- Language: CSS
- Homepage: https://deveric-blog.azurewebsites.net
- Size: 3.55 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Eric Gitangu's Tech Blog
![]()
Eric Gitangu
A Django-powered blog showcasing insights in technology, cybersecurity, and software development. Built with Python and Django, featuring Azure cloud integration and robust security measures.## 🚀 Features
- **Dynamic Content Management**: Built-in Django admin interface for content creation
- **Cloud Storage Integration**: Azure Blob Storage for media and static files
- **Production-Ready**: Configured for production with security best practices
- **PostgreSQL Database**: Robust data storage with PostgreSQL
- **Secure Authentication**: Comprehensive password validation and security middleware
- **Logging System**: Detailed debug logging for monitoring and troubleshooting## 🛠️ Tech Stack
### Backend Framework ⚙️
- Django 4.x
- Python 3.11
- WSGI Application Server### Database 🗄️
- PostgreSQL with psycopg2-binary driver
- Environment-based configuration### Cloud Services ☁️ (Azure)
- Azure Web Apps for hosting
- Azure Blob Storage for static/media files
- Azure Managed Identity authentication
- Azure PostgreSQL database## 💾 Storage Configuration
- Whitenoise
- PostgresSQL (Azure flexible)### 📊 Monitoring and Logging
Debug logging configured for production monitoring:
- File handler
- Console handler
- App-level logging - Default DEBUG### 🔒 Security Configuration
- **CSRF Protection**: Configured for production domains
- **Secure Middleware Stack**:
- Security Middleware
- WhiteNoise for static files
- Session Management
- CSRF Protection
- Authentication
- XFrame Options### 🚀 Production Deployment
The application uses GitHub Actions for CI/CD to Azure Web Apps. The deployment process includes:
- Automated testing
- Static file collection
- Database migrations
- Zero-downtime deployment
- Azure Blob Storage configuration
- Secure environment variable managementFor more details, see the deployment workflow in `.github/workflows/main_deveric-blog.yml`.
## 🔗 Connect
- **Website**: [developer.ericgitangu.com](https://developer.ericgitangu.com)
- **LinkedIn**: [Eric Gitangu](https://linkedin.com/in/ericgitangu)
- **Azure Blog**: [deveric-blog.azurewebsites.net](https://deveric-blog.azurewebsites.net)## 📄 License
This project is licensed under the MIT License.