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

Load python modules correctly

Open
#46 1 comment 0 reactions 1 assignee Assigned to @shubham599 View on GitHub
bug stale
Dominant language
Python
Stars
8
Forks
8
PR merge metrics
No merged PRs in 30d

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.