Skip to content

Latest commit

 

History

History
41 lines (38 loc) · 867 Bytes

README.md

File metadata and controls

41 lines (38 loc) · 867 Bytes

Project:

This is a practice project for learning django. The project name is mysite.

$ tree mysite/
mysite/ # root directory is a container for your project
├── manage.py # A command-line utility
├── mysite # directory is the actual Python package for your project
│   ├── asgi.py
│   ├── __init__.py
│   ├── settings.py
│   ├── urls.py
│   └── wsgi.py
└── README.md

Start server:

$ python manage.py runserver 0:8000

APP:

The app name is polls.

$ tree polls/
polls/
├── admin.py
├── apps.py
├── __init__.py
├── migrations
│   └── __init__.py
├── models.py
├── tests.py
└── views.py

The references:

https://docs.djangoproject.com/en/4.2/
https://docs.djangoproject.com/zh-hans/4.2/