Site
Home / Forum / Developers / settings.py

settings.py


Posted: 23 Nov 2023 13:33
totototo
Posts: 10
Joined: 2023-11-23

Hi,

I am new to the database and want to work in Python. It is starting well, but I have a question.

I am not sure why the list of leagues are in settings.py. Why are they there hard-coded when I would simply expect them to be fetched from the database online. Is it used?

Thanks for your time and effort!

Posted: 23 Nov 2023 14:52
curswine
Posts: 870
Joined: 2020-06-17

This website is solely a API/database and does not provide any Python files to download.

So I'm not sure what settings.py file you're talking about.

Posted: 23 Nov 2023 15:34
totototo
Posts: 10
Joined: 2023-11-23

Thanks for your reply. That's from the Github project here: https://github.com/TralahM/thesportsdb

Posted: 23 Nov 2023 17:43
curswine
Posts: 870
Joined: 2020-06-17

I see, you're best asking the dev on github if you have any specific questions about that wrapper. It doesn't look like its been maintained in 3 years though.

Any general questions we can try and help with here if you have some.

zag
Posted: 23 Nov 2023 21:16
totototo
Posts: 10
Joined: 2023-11-23

Thanks!

curswine

Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 5 (Total: 5)