| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A digital platform dedicated to promoting positive content created by Malawian content creators and influencers. NyasaBlog aims to be the most trusted source for Malawian content in the areas of Culture, Entertainment, Entrepreneurship, Tourism, Technology, Sports, Lifestyle, Education, Health, and Opinion.
Live site: nyasablog.com
NyasaBlog was created and founded by Ephraim Kanyandula, a Malawian national, with the vision of building a platform that amplifies Malawian voices and showcases the best of Malawian creativity and innovation.
nyasablog/ ├── mysite/ # Settings, root URLs, WSGI ├── personal/ # Home, about, contact, search, API docs │ └── templates/ ├── account/ # Custom user model, profiles, auth views │ ├── api/ # Account REST API │ └── templates/ ├── blog/ # Posts, categories, tags, comments, likes, bookmarks │ ├── api/ # Blog REST API │ └── templates/ ├── templates/ # Base template, header, footer, 404, registration ├── static/ # Static assets (logo) ├── DESIGN.md # Design system documentation └── requirements.txt
git clone https://github.com/Kanyandula/BlogPost.git
cd BlogPost
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp settings.ini.example settings.ini
# Edit settings.ini with your SECRET_KEY and DEBUG=True
python manage.py migrate
python manage.py createsuperuser
python manage.py runserverVisit http://127.0.0.1:8000
python manage.py test blog55 tests covering models, views, auth, and API.
All authenticated endpoints require Authorization: Token <token> header.
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /api/blog/list | Yes | List posts (search, filter, paginate) |
| GET | /api/blog/<slug>/ | Yes | Get post detail |
| POST | /api/blog/create | Yes | Create post |
| PUT | /api/blog/<slug>/update | Yes | Update post (author only) |
| DELETE | /api/blog/<slug>/delete | Yes | Delete post (author only) |
| GET | /api/blog/categories/ | No | List all categories |
| GET | /api/blog/tags/ | No | List all tags |
| GET | /api/blog/<slug>/comments/ | No | List threaded comments |
| POST | /api/blog/<slug>/comments/create/ | Yes | Create comment |
| DELETE | /api/blog/comments/<pk>/delete/ | Yes | Delete own comment |
| POST | /api/blog/<slug>/like/ | Yes | Toggle like |
| POST | /api/blog/<slug>/bookmark/ | Yes | Toggle bookmark |
| GET | /api/blog/bookmarks/ | Yes | List bookmarked posts |
List filtering: ?category=<slug>, ?status=published, ?search=<query>, ?ordering=-date_updated
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /api/account/register | No | Register new user |
| POST | /api/account/login | No | Get auth token |
| GET | /api/account/properties | Yes | Get user info |
| PUT | /api/account/properties/update | Yes | Update user info |
| PUT | /api/account/change_password/ | Yes | Change password |
| GET | /api/account/profile/<username>/ | No | Public author profile |
| PUT | /api/account/profile/update/ | Yes | Update own profile |
Full API documentation available at nyasablog.com/api/
Ephraim Kanyandula — Creator & Founder
All rights reserved.
| Back | FazBrowse Home | New Git URL |