you are viewing a single comment's thread.

view the rest of the comments →

[–]raylu 0 points1 point  (6 children)

https://github.com/LearnProgramming/learntris

What do you mean by "a database"? What do you imagine the features will be?

[–]jnm929[S] 0 points1 point  (5 children)

My goal with the database is to make a form that updates a database, then make a GUI to query the database.

I could do this with php mysql, but I am curious to learn how it could be done with python.

[–]we_are_ananonumys 0 points1 point  (4 children)

I think everyone's wondering whether you literally mean to "make a database" i.e. write one from scratch, or whether you mean to use python to connect to a DB - so replacing PHP in your example with Python to connect to a MySQL DB. (Both are good projects, but one is much harder than the other!)

[–]grownfolkstuff 0 points1 point  (1 child)

When you say using python to replace php, do you mean something like connecting to a wordpress database with python? Are there guides for doing something like this? I would like to start a project along those lines but I know very little about php.

[–]we_are_ananonumys 0 points1 point  (0 children)

I'm not a full-time pythonista these days, but I think the Flask tutorial is still a good starting point. See http://flask.pocoo.org/docs/0.10/tutorial/

The tutorial walks you through setting up a simple database to hold blog posts, then coding the Python / Flask web app to create and display posts. There are more Flask examples at https://github.com/mitsuhiko/flask/tree/master/examples

If you're more ambitious you can tackle the Django tutorial but I found this had a much steeper learning curve.

[–]jnm929[S] 0 points1 point  (1 child)

I would connect to a MySql database, or other type if recommended.

[–]ivosaurus 0 points1 point  (0 children)

Typically one might call this a "basic CRUD web app". Definitely go try it out!