Still playing with DJango I have been able to use the web interface to add and modify objects to the database. Once the server is started, I can log in and add, view and make changes to existing objects. In the dJango tutorial they use a Poll object as an example, as in a poll survey poll with questions and possible choices to choose from. In this example, the Poll and Choice objects are defined ahead of time using classes in python. Once that is done, you can manipulate these objects using the dJango API or the web interface. I’ve experimented using both approaches, but typically if an admin is going to make changes they will probably be using the web interface. You can also very easily add features like a search field, options for sorting and filtering results that make the user experience of viewing the web interface a pleasant one. The way you add these features are all done through modifications to a python file, admin.py, which stores all of the information about how your custom web interface should look to the user.
using the admin web interfaceJuly 21st, 2010 by Cory Leave a reply »