Overview • Folders • Key Features • Run Locally • Urls & Views • TODO • Author
This is a project which was developed for the CS50 web course final project. The application contained within is a CMS-style blog site where developers can publish their blog articles and comment on other developers' articles in addition to other options.
Here is the Demo 🙌.
- accounts:
- this app is manage users' accounts (login - logout - register - etc.)
- Django authentication system was used to implement it.
- (TODO) modify user profile.
- blog:
- this app responsible for creating the articles and handling CRUD operations on them.
- User Registration.
- User Login & Logout.
- Create, Read, Update & Delete Articles.
- Save an article with Markdown preview.
- Comments
- Search for articles on any pages
- Customized admin panel
- Categories
- Bookmarks
- Vote system
-
Create Virtual Environment
$ pip install virtualenv $ virtualenv environment_name
On Windows, run:
$ environment_name\Scripts\activate.bat
On Unix or MacOS, run:
$ source environment_name\Scripts\activate
-
clone this repository
$ git clone https://github.com/AhmedBedeir/django-blog.git $ cd django-blog
-
install dependencies
$ pip install -r requirements.txt
-
finally, You can run the project 🎉
$ python manage.py runserver
Open http://localhost:8000 to view it in the browser.
some base URL
-
-
view :
blog/views.py#index
-
template :
blog/templates/index.html
-
-
login required
-
view :
blog/views.py#add
-
template :
blog/templates/add.html
-
-
-
view :
blog/views.py#singleArt
-
template :
blog/templates/singleArt.html
-
-
-
view :
blog/views.py#categories
-
template :
blog/templates/categories.html
-
-
login required owner required
-
view :
blog/views.py#update
-
template :
blog/templates/add.html
-
-
-
/login
- login page
-
/logout
- logout page
-
/register
- sign up page
-
- Toggle between dark and light mode.
- User profile (update information).
- Follow and Unfollow system.
- Enhance article view.
- Forget password.
- paginator.
- ...
Please star the repo and feel free to make pull requests ⭐🙌.
If you have any feedback, feel free to message me.