Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
92 views
in Technique[技术] by (71.8m points)

python - To make a plan for my first MySQL project

I need to complete the plan of a ask-a-question site for my uni. in a few days. I need to have the first version of the code ready for the next Tuesday, while the end of the project is in about three weeks.

Questions about the project which do not fit here


My uni. offers little support for tools which I selected:

Tools in building the backend

  • Python in building the database schema??? (I am not sure which components I can build by Python)
  • MySQL to store data
  • I am not sure which tool to use in building login and logout -system. They do not allow me to use Google's system. This forces me to use some simple open-source code, since it would take more than a week to build a descent login/logout -system.

Tools in building the frontend

  • Django (if we can use MySQL in Django)

Tools for Planning

  • Google Docs' Spreadsheet for illustrating the usecases
  • TopCoder UML Tool to show primary keys and other relations in the database

Tools for coding

My focus in the project: I aim to build a database system only for users and moderators such that I only provide the following features

  1. to allow user to add to a database such that I neutralize the input (I know that there is some tool for that, but I am not sure about its name.)
  2. to arrange questions by time
  3. to arrange questions by name
  4. to arrange questions by their subject
  5. to allow users to remove their questions
  6. to send an email to user that the question was successfully asked

Things about which I am uncertain

  1. how to integrate the login -system to the database such that the user sees only his data that is his username when he logins successfully, similarly as in Joomla
  2. Which components should I not build by Python when I use MySQL for databases?
  3. My uni. does not give me hardware support for the project. This suggests me that I will be better of in using a host which is specialized in my project. I used Djangohosting.ch the last month, and by their toos, I got started. Which host would you use such that I can show the final product to my Uni.?

This is my first official database project so my plan apparently has shortcomings, since there must be tools which I do not know. Please, pinpoint any one of them.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

First, this is all a lot to work with in a week. But here it goes.

Tools for the backend:

  1. SQLAlchemy - This is an ORM toolkit that is plenty powerful for most smaller tasks when using a MySQL database built with Python. To my knowledge, it is the best for this job. http://www.sqlalchemy.org/
  2. Django - "...is a high-level Python Web framework..." This might be better for rapid development of a site with login/logout methods included and a minimal learning curve for someone with web/Python understanding.

Tools in building the frontend:

If you already plan on using Django for the backend, I'd recommend using it for the frontend as well.

Things about which you are uncertain:

  1. The users can be specified in MySQL and their permissions can be set accordingly.
  2. From some of the requirements you listed, most of these sound like they can be contained within the capabilities of Django.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...