Skip to content

Latest commit

 

History

History
90 lines (76 loc) · 2.65 KB

README.md

File metadata and controls

90 lines (76 loc) · 2.65 KB

DjCMS

DjCMS is a Django-based web application that allows users to upload their own articles and embed YouTube videos. This project is perfect for bloggers, content creators, and website owners who want to have full control over their content.

For testing purpose you can visit djcms.

Want to write blogs? Use this username and password:-

USERNAME: github_test

PASSWORD: github_test

Features

  • User authentication and authorization
  • Article creation, editing, and deletion
  • YouTube video embedding
  • Responsive design
  • Search functionality
  • Like system
  • Commenting and replying system
  • Categorising (tagging) system
  • Bookmark system

Installation

  1. Clone the repository:
git clone https://github.com/dev-bittu/djcms.git
  1. Create a virtual environment and activate it:
pip install virtualenv
virtualenv env
source env/bin/activate  # for Linux/MacOS
env\Scripts\activate.bat  # for Windows
  1. Install the dependencies:
pip install -r requirements.txt
  1. Create a .env file in the root directory of the project and add the following variables:
SECRET_KEY=your_secret_key_here
DEBUG=True
  1. Run the migrations & migrate:
python manage.py makemigrations
python manage.py migrate
  1. Create a superuser account:
python manage.py createsuperuser
  1. Run the development server:
python manage.py runserver
  1. Open your browser and go to http://localhost:8000/admin to access the admin panel. Log in with the superuser account you created earlier.

Usage

  1. Login as author (create superuser; superuser is an author).
  2. To create a new blog, go to Manage > Blogs and then click on Create New button.
  3. Fill in the required fields (title, content, categories) and add a featured image.
  4. To embed a YouTube video, copy the video ID from the URL (e.g. https://www.youtube.com/watch?v=abcdefg) and paste it into the "YouTube video ID" field.
  5. Click on the "Publish" button to publish the blog.
  6. To view the blog on the website, go to http://localhost:8000/latest in your browser, then select blog what you want to read.
  7. To search for blogs, use the search bar on the top of the website (navbar).
  8. To leave a comment on an blog, scroll down to the bottom of the blog page and fill in the comment form.

ToDo

  • Add forget password
  • Share blogs
  • Change password
  • Profile
  • User logo
  • Notification system

Contributing

Contributions are welcome! If you find a bug or want to suggest a new feature, please open an issue on GitHub. Pull requests are also appreciated.

License

This project is licensed under the MIT License. See the LICENSE file for details.