The Simple Blog/News Site is a web-based platform for creating, managing, and publishing categorized media content. This application is designed to provide an engaging and user-friendly experience for public visitors and an efficient content management interface for site administrators.
The project is built using Bootstrap for the frontend and Django for the backend.
-
Homepage
- Displays categorized posts (e.g., cultural, sports, social) with at least four categories.
- Highlights featured or important posts in a dedicated section.
- Designed with a responsive layout for audience engagement.
-
Category Pages
- Displays posts in paginated form (10 posts per page).
- Includes navigation buttons for easy access to additional pages.
-
Search Functionality
- Enables users to search posts by content or keywords.
-
Post Pages
- Each post includes a title, image, publication date, and summary. Full content is displayed upon clicking the post.
- Users can leave comments on posts.
- Visitor registration timestamps are recorded using the solar date format.
-
Responsive Design
- Fully responsive layout powered by Bootstrap for optimal viewing on various devices.
-
Authentication
- User login with a username and password.
- Restricted access ensures only authenticated users can access the management panel.
-
Content Management (CRUD)
- Manage categories: Create, update, delete, and view category lists.
- Manage posts: Create, update, delete, and view post lists.
- Schedule posts to be published at future dates.
-
Comments Management
- View comments associated with posts.
- Delete unwanted comments through a simple interface.
-
Content Preview
- Preview posts before publishing to ensure accuracy.
-
Logout
- Provides an option to log out securely from the management panel.
To reduce complexity:
- User access levels and profiles are not implemented.
- Each user manages only their own posts.
- Advanced content editing features are excluded.
- Comments are displayed in a basic format with only deletion functionality available for administrators.
- Python 3.x
- Django
- Bootstrap (linked via CDN in templates)
- Clone the repository:
git clone https://github.com/mohdelite/Advance_blog.git
- Navigate to the project directory:
cd Advance_blog
- Create a virtual environment and activate it:
python -m venv env source env/bin/activate # For Linux/Mac env\Scripts\activate # For Windows
- Install dependencies:
pip install -r requirements.txt
- Apply migrations:
python manage.py migrate
- Start the development server:
python manage.py runserver
- Open the site in your browser at
http://127.0.0.1:8000/
.
- Frontend: Bootstrap, HTML, CSS
- Backend: Django
- Database: SQLite (default for Django; replaceable with other DBs like PostgreSQL or MySQL)
Contributions are welcome! Please fork the repository and submit a pull request with your improvements or bug fixes.