관리 메뉴

Silver Library (Archived)

#4 Django and 'migrate' & application 본문

Personal DB/Unclassified record

#4 Django and 'migrate' & application

Ayin Kim 2020. 11. 25. 14:13
반응형

Such a warning message (17 unapplied migration) will appear UNLESS I do 'migrate'.

 

Issue :

After running migrate, 'db.sqlite3' did not generate itself.

# db.sqllite3 is a file of sql language.

 

Solution :

# Make sure the server is running. Then proceed to 'migrate' phase.

Turn off VSCode, then re-run. It will appear on the file list. Assume this is an old never-fixed issue since Windows 97. So, I need to refresh that programme if the file never appears or generates itself.

 

Django will do the work what MySQL do.

 

Application

An app is a web application that does something like - weblog (from Django document)

 

# Each application should be described in one sentence. Make it independent.

Don't include too many things in a single group.

(e.g. users for 15functions , rooms for 5 functions etc. Already enough. This means, consider to make it separately if I need to add extra function.)