Ask coding questions

← Back to all posts
How to store users input in a .env file (python)
BartKeijzer

I wanna store an users input in an .env file (for a login system) but i forgot how to.

Voters
BartKeijzer
Comments
hotnewtop
MrVoo

Logins will NOT work on console based projects. If you use flask, django, or any other Python backend, use ReplDB.

BartKeijzer

and how to just send the information, that a user typed in, to a document?

@MrVoo

SixBeeps

Don't. The .env file (which isn't even a file anymore) is not for storing user data. Instead, using something like ReplDB or another database service.

BartKeijzer

and how to just send the information, that a user typed in, to a document?

@SixBeeps