ข้ามไปที่เนื้อหาหลัก

Object Final

 Final Examination OBJECT


You will be given the "project name" and django project name.


Inheritance 1 question

Polymorphism 1 question

(main.py)

Django database 1 question

Rest API → List items 1 question

Rest API → Item detail 1 question

Rest API → Transaction 1 question (Wallet App)


-----------------------------------------------------------------------------------------------------------------------------


pip install django

django-admin startproject mysite_project


py manage.py startapp catalog_app 


Create the database models in terminal


py manage.py makemigrations

py manage.py migrate

py manage.py createsuperuser


Rest API


pip install djangorestframework

pip install markdown      

pip install django-filter


pip install virtualenv


---------------------------------------------------------------------------------------------------------------------------


พยายามติดตั้ง 

py manage.py makemigrations

py manage.py migrate

ทุกครั้งหลังจาก เปลี่ยนรูปแบบโค้ด



ตัวอย่างของอาจาร ข้อ transaction 

https://github.com/omiejung01/PythonOO2_2023/tree/master08


บางข้อเหมือน assignment 1


i


ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

OOPT01

 Lists: Lists are ordered collections that can contain elements of different types. They are mutable, meaning you can change their elements. Example: python Copy code my_list = [1, 2, "apple", True] my_list.append(5)  # Adding an element print(my_list[2])  # Accessing an element by index my_list.remove("apple")  # Removing an element print(my_list)  # Printing the modified list Dictionary: Dictionaries are unordered collections of key-value pairs. They use keys to access their associated values and are mutable. Example: python Copy code my_dict = {"name": "Alice", "age": 25, "city": "New York"} print(my_dict["age"])  # Accessing value by key my_dict["occupation"] = "Engineer"  # Adding a new key-value pair del my_dict["city"]  # Deleting a key-value pair print(my_dict)  # Printing the modified dictionary Ranges: Ranges are sequences of numbers used for iterating over a sequence...

OPPTH

 https://github.com/kongruksiamza/python-oop