Total Pageviews

Sunday, 12 July 2026

一个基于python的博客程序 sample-blog


Install Requirements for the project

pip install -r requirements.txt

Run Migrations

python manage.py makemigrations
python manage.py migrate

Run Dev Server:

python manage.py runserver
from  https://github.com/arvind-4/sample-blog
----------
 

Blog Backend

Simple Content Management System build on Django and Django Rest Framework.

Get the Code

  • Clone Repo
git clone https://github.com/Arvind-4/blog-backend
cd blog-backend 
  • Install Virtual Environment and Dependencies
pip install virtualenv
python3.10 -m venv .
source bin/activate
pip install -r requirements.txt
  • Run Local Server
python manage.py runserver
from  https://github.com/arvind-4/blog-backend
-----
A Blog app with comments. 
  
  • Admin Portal:

    • Core data management:

      • Subject List - Dynamically managed (Default list - Physics, Maths, Botany, and Zoology).
      • Category Tags - Dynamically managed (Will be added to the experiments and can be used for filtering purposes).
    • Content Edit feature:

      • Content creation - While creating the content, in the Subject details option the list will be shown dynamically with respect to Core Data Management.
    • Views count option.

    • Blog Page:

      • Add filters option.
      • Provide Claps option to the viewers.
      • Sorting option based on Views and Claps.
    • Frontend Improvements.

Get & Running on your Local Machine

  • Clone the Repo
cd ~/Dev/
mkdir exp
cd exp
git clone  .
  • Create a Virtual Environment for Python

    • using Poetry
     virtualenv --python=python3.9 .
     source bin/activate
     poetry install
    • using Virtualenv
     python -m virtualenv --python=python3.9 .
     source bin/activate
     pip install -r requirements.txt
  • Run Locally

cd ~/Dev/django_vercel
python manage.py runserver
from  https://github.com/arvind-4/exp-website
-------

A simple Blog Using Django Framework

 

Tech Stack:

  • Django - Django makes it easier to build better web apps more quickly and with less code.
  • Bootstrap - Build fast, responsive sites with Bootstrap.
  • Vercel - Vercel's Front end Cloud provides the developer experience and infrastructure to build, scale, and secure a faster, more personalised Web.

Getting Started:

  • Clone repository
mkdir ~/Dev/blog -p
cd ~/Dev/blog
git clone https://github.com/Arvind-4/django-blog.git .
  • Install Dependencies:
cd ~/Dev/blog
python3.8 -m pip install virtualenv
python3.8 -m virtualenv . 
source bin/activate
pip install -r requirements.txt
  • Create .env file: Add Your Credentials .env from sample.env:
DJANGO_SECRET_KEY=
DJANGO_DEBUG=

Get your Secret key from:

python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
  • Run Server:
cd ~/Dev/blog
python manage.py runserver

Open localhost:8000 in your favourite browser :)

from https://github.com/arvind-4/django-blog

-----

 An Open Source Blog Website Powered with Django.

Web Portal

Real Time Web Portal App Using Django, JavaScript, Tailwind CSS and much more..

Tech Stack:

  • Django - Django makes it easier to build better web apps more quickly and with less code.
  • Tailwind 3 - Rapidly build modern websites without ever leaving your HTML.
  • Postgres DB - The World's Most Advanced Open Source Relational Database.

Problem Statement

The proposed web portal aims to provide a platform for the students of Indira Gandhi Delhi Technical University for Women (IGDTUW) to read and access the technical writings, such as blogs, articles, and papers, written by their peers at the university. The main motivation behind this idea is to promote technical writing among students and to make the writings of the students at the university more accessible and widely read among their peers.

The developers are expected to create a user-friendly portal that is easy to navigate, with a clear and intuitive interface. The portal should be designed in such a way that students can easily search and access the writings of their peers with minimal effort. To make it even more user-friendly, the writings should be well-organized and categorized in appropriate sections, such as by topic or field of study, to make it easy for users to discover new content.

Aesthetically, the web portal should be designed with a dark, holographic or neon theme, which will give it a modern and cutting-edge feel. The design should be interactive, intuitive and make it easy for users to find what they are looking for.

It is important to note that the target audience of the portal are students and staff of IGDTUW, so the design should be tailored to the specific needs and preferences of this user group. Additionally, the portal should be scalable and able to handle a large volume of users and writings, as it will be used by a large number of students and staff at the university. The portal also should be provide features such as commenting, rating and discussion features to foster a sense of community among students who write and read the technical writings.

Features

  • User registration and login: This feature will allow students and staff of IGDTUW to create an account on the portal and login to access the technical writing section.
  • Technical writing section: This feature will allow students and staff to browse, read and access technical writings, such as blogs, articles, and papers, written by their peers.
  • Search and filter function: This feature will allow students and staff to easily search and filter through the writings to find the information they need, by topic or field of study,
  • Writing submission feature: This feature will allow students and staff to submit their own technical writings on the portal for others to read.
  • Commenting, rating and discussion: This feature will allow readers and writers to leave comments, rate and discuss the technical writings posted on the portal.

Screenshots:

  • Home Page

  • Sign In

Test Cases Passed:

 from https://github.com/arvind-4/web-portal

No comments:

Post a Comment