Skip to content

A blog app developed with django and django rest framework utilizing management command to populate database

Notifications You must be signed in to change notification settings

mwicwiri-bonface/django-blog-drf-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Blog Website using Django, DRF

Step 1.1 Create a settings.ini

create a settings.ini file in core directory add the following

[settings]
DEBUG=True
SECRET_KEY=SOMEKEY

Step 1.2 Django configuration

installing dependencies and migrating database

pip install -r requirements.txt

python manage.py makemigrations

python manage.py migrate

Step 1.3 Populating database

run following commands in the given order below

python manage.py create_authors --authors=200
python manage.py create_categories --categories=20
python manage.py create_posts --posts=300

Step 1.4 For running tests

python manage.py test

Step 1.5 For running project

python manage.py runserver

About

A blog app developed with django and django rest framework utilizing management command to populate database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published