Skip to content

emrekahriman/django-blog

Repository files navigation

Django-Blog

A simple django project


Installing

Step by step commands on how to run this project on your computer

1)- Install Virtualenv

pip install virtualenv

2)- Create Virtualenv

virtualenv venv

3)- Activate virtual env

venv/Scripts/activate

4)- Install requirements

pip install -r requirements.txt

Note: Above lines are required for first time installation

5)- Execute below commands

python manage.py makemigrations
python manage.py migrate

Note: Above commands should be executed if there is any db level changes

6)- Create superuser for admin access and follow instruction, if not created one

python manage.py createsuperuser

7)- Collect static files in one location.

python manage.py collectstatic

Running the tests

python manage.py runserver

And the project is ready for use on your computer!


Screenshots of the project

Home Page:

home

Posts Page:

allposts

Authors Page:

authors

Post Create Page:

post-create

Post Update Page:

update-post