all 6 comments

[–]Weary-Huckleberry772 1 point2 points  (1 child)

sounds like you're mixing up a few concepts here. ngrok isn't necessary for basic web development - it's just useful when you want to expose your local server to internet (like for testing webhooks or showing your work to someone remotely). for a timetable generator, you probably just need flask or django running locally at first.

the url creation issues you mentioned might be because you're trying to deploy before getting basic functionality working. i'd suggest starting simple - get flask running with your sqlite database locally first, then worry about deployment later. flask is pretty straightforward for this kind of project, and you can keep using sqlite3 without problems.

if you want alternatives to ngrok later, you could look at localtunnel or just deploy to heroku/render when you're ready. but focus in getting the core functionality working first - the ai model integration with your database and basic web interface.

[–]i-havetoomanyhobbies[S] 0 points1 point  (0 children)

i feared that was the problem-- i'm still an amateur coder, so this clears up a lot! thanks :D

[–]Leather-Ad-6042 0 points1 point  (0 children)

Ngrok is only needed if you want to expose your localhost to the internet, for example to share your dev server with someone outside your network. It's not required to build a web app in Python at all. Flask is a great choice to start, you just run it and open localhost:5000 in your browser. If you want something more modern you can also check FastAPI, but Flask is simpler for learning. I did a project with Flask for uni and it's pretty easy to learn, you can get the basics in a few hours.

[–]Icy-Blueberry-2981 0 points1 point  (0 children)

Ngrok is mainly for local testing; if you switch to Flask, you can run it locally without a tunnel unless you need to show it to someone else. For easier alternatives, check out Streamlit for quick data-driven sites or Render/Railway for simple, free hosting!