I personally think that the best way to learn and master something better and faster is to use it, use it more, and then quickly grasp and understand it again and again in solving problems. What do you think? Some time ago I came into contact with bottle, a lightweight web framework, and mongodb, A nosql database. In order to master and understand them, I made a blog program by myself, referring to
I personally think that the best way to learn and master something better and faster is to use it, use it more, and then quickly grasp and understand it again and again in solving problems. What do you think? Some time ago I came into contact with bottle, a lightweight web framework, and mongodb, A nosql database. In order to master and understand them, I made a blog program by myself, referring to
I personally think that the best way to learn and master something better and faster is to use it, use it more, and then quickly grasp and understand it again and again in solving problems. What do you think? Some time ago I came into contact with bottle, a lightweight web framework, and mongodb, A nosql database. to master and understand them, I made a blog program and referred to the physical design in vimer.cn. it uses bottle as the web development framework and mongodb as the background database. main functions:
Front-end display articles: Display by category display by TAG display by month archive display latest articles comment background management: Manage articles manage categories manage comments post articles user verification
Directory structure
Water
+-App program directory
| ---- Admin. py background management
| ---- Blog. py front-end display
| ---- Dbconn. py database connection
| ---- Encrypt. py contains the encryption function
+-Static file directory: including js css image
+-Views template directory
+-Index. py is used to start the entire program.
+-Initiate. py initialization script, used to create a management user
+-Setting. py setting file, various settings
+-Static. py is used by the program to process static files.
The project code is put on google code and you can visit the following link: http://code.google.com/p/sharepythoncode/source/browse/water/
Original article address: A blog program written in bottle + mongodb. Thank you for sharing it with the original author.