Call-for-Code-for-Racial-Justice / Call-for-Code-for-Racial-Justice/TakeTwo-WebAPI

Load python modules correctly

Đang mở
#46 1 bình luận 0 reaction 1 người được giao Được giao cho @shubham599 Xem trên GitHub
bug stale
Ngôn ngữ chính
Python
Star
8
Fork
8
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**
Finish #45. Please see here on how to load multiple files - https://fastapi.tiangolo.com/it/tutorial/bigger-applications/

Basically, you need empty __init__.py file to tell python that the folder is a module. You can then simply load as import root_folder.sub_folder.sub_folder.filename.

Context: https://github.com/Call-for-Code-for-Racial-Justice/TakeTwo-WebAPI/pull/45/files#r817986839

FYI @demilolu

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.