Belajar Django

django-admin startproject mysite

Run Python Server

py manage.py runserver
atau
py manage.py runserver 8080
atau
py manage.py runserver 0.0.0.0:8080

Project VS apps

  • What’s the difference between a project and an app? An app is a web application that does something – e.g., a blog system, a database of public records or a small poll app. A project is a collection of configuration and apps for a particular website. A project can contain multiple apps. An app can be in multiple projects.

  • Install App

py manage.py startapp polss