Spaceblock / cosmoterm

GNU Affero General Public License v3.0
2 stars 1 forks source link

Exception has occurred: IndexError list index out of range #2

Closed IvanIsak2000 closed 1 year ago

IvanIsak2000 commented 1 year ago

Is this error just me?

image

mb6ockatf commented 1 year ago
  • win10
  • python 3.11.3

Is this error just me?

image

you should launch it with python3 src/app.py <some random symbols>

these random symbols needed to handle cookies correctly, in case we'll be using them (just a good practice, otherwise flask uses it's default password - that's bad)

IvanIsak2000 commented 1 year ago

Wow, this is really a new way to run a server! image


Previously, I wrote like this, and the program could be launched by running app.py

image

mb6ockatf commented 1 year ago

Wow, this is really a new way to run a server! image

Previously, I wrote like this, and the program could be launched by running app.py image

@IvanIsak2000

well, we're doing the same things. we just pass a command line parameter after src/app.py. it's possible to set it statically in code (although we mustn't pass it into VCS, as it's dangerous), get it as an environment variable or out of configuration file