Skip to content

Ngounse/python_djangonautic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

run django

# cd djangonautic/
# pip install -r req.txt
# python manage.py runserver

admin account : ngounse passwd : 123

add filed database table

python manage.py makemigrations

migrate database table

python manage.py migrate

python shell

from articles.models import Article

## list
Article.objects.all()

article2 = Article()

article2.title = "Django Rules"
## save
article3.save()

create app

python manage.py startapp "folder name"

to make change in setting effect

python manage.py collectstatic

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published