/Django-Blog

A Django Blog Application built using Django framework. It is designed with all CRUD functionalities using Class-Based Views. This project is for beginners who want to learn Django framework.

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

Django-Blog

Open in Visual Studio Code Python Django Bootstrap Code style: black Licence Visits Badge

Description

A Django Blog Application built using Django framework. It is designed with all CRUD functionalities using Class-Based Views. This project is for beginners who want to learn Django framework.

Features

  • Ready Bootstrap-themed pages
  • CRUD functionalities, user can view, create, update, and delete posts
  • Works on Python 3 and Django 2

Installation

Quick start

  1. First of all, you need to download Python from here, and install it on your computer.

  2. Clone the repository into a new folder.

    git clone https://github.com/ZikaZaki/Django-Blog.git
  3. Open the Django-Blog folder in Visual Studio Code. If you don't have VS Code you can download it from here.

  4. Create a virtual environment and activate it using the following commands.

    python -m venv venv
    venv\Scripts\activate
  5. Once the virtual environment is activated, type the following commands in your shell in order to move to the DBlog folder and install the requirements.txt file.

    cd .\DBlog\
     pip install -r requirements.txt
  6. After installing the requirements.txt file type the following commands in order to migrate all the tables to the database.

    python manage.py makemigrations
    python manage.py migrate
  7. After the migration process, type the following command to create an admin user for the project.

    python manage.py createsuperuser

Running

Go to the DBlog folder and run

python manage.py runserver

Then go to the browser and enter the url http://127.0.0.1:8000/

Admin Login

You can access the django admin page at http://127.0.0.1:8000/admin, and login with username and password specified in the 'createsuperuser' step. The default username is 'admin' and the default password is 'admin'.

Also a new admin user can be created using

python manage.py createsuperuser

Instructions

  • WorksFork this Repository
  • Clone your forked repository
  • Add your scripts
  • Commit & Push
  • Create a pull request
  • Star this repository
  • Wait for Pull Request to merge
  • Celebrate, your first step into the open Source World and contribute more

Note: When you Add a project Add it to the README for ease of finding it

Note: Please do not put the project link to reference your local forked repo. Always link it to this repo after it's been merged with main

Contribution 🙌

Contributions are welcome, and they are greatly appreciated ❤️! Every little bit helps, and credit will always be given. please star ⭐ the repo and feel free to make pull requests.

Detailed instructions

Take a look at the docs for more information.

  1. Python
  2. Djangoproject