02.03 Identified data model

master
Jason Zhu 2020-10-18 23:25:17 +11:00
parent 42d7e3491c
commit c48e1ee928
1 changed files with 46 additions and 1 deletions

View File

@ -4,4 +4,49 @@ This is repository to practise Python + Django following **Web Development in Py
## Add app in django ## Add app in django
* add in `config/settings.py` * add in `config/settings.py`
## Models
Project Features
* Basic blogs with Blog Posts
* Categorize startup businesses using Startup and Tags
* Link to news articles about a specific startup (NewsLinks)
* All objects appear in site URL:URIs necessitate slugs
Tag objects:
* name
* e.g.: Web Development, Django
* slug (to identity)
* e.g.: web-development, django
Startup Objects:
* name
* slug
* description
* date founded
* contact
* website link
News Link Objects:
* title
* slug
* date published
* link to article
* startup
Blog Post Objects:
* title
* slug
* text
* date published
Object Relations:
* One-To-One
* One-To-Many
* Many-To-One: NewsLink refers to a single Startup
* Many-To-Many:
* Tags and Startups
* Blog Posts and Tags
* Blog Posts and Startups