Django-Blog
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
, anddelete
posts - Works on Python 3 and Django 2
Installation
Quick start
-
First of all, you need to download
Python
from here, and install it on your computer. -
Clone the repository into a new folder.
git clone https://github.com/ZikaZaki/Django-Blog.git
-
Open the
Django-Blog
folder inVisual Studio Code
. If you don't haveVS Code
you can download it from here. -
Create a
virtual environment
and activate it using the following commands.python -m venv venv
venv\Scripts\activate
-
Once the virtual environment is activated, type the following commands in your shell in order to move to the
DBlog
folder and install therequirements.txt
file.cd .\DBlog\
pip install -r requirements.txt
-
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
-
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.