Omaha Python Users Group

Python Users in the Omaha Metro Area

October 19, 2010

October 18, 2010 Meeting Notes

Filed under: MeetingNotes — Tags: — Steve @ 12:22 pm

The attendees of tonight’s meeting had been working with Django and the talks centered around some cool features and extensions.

  • django-command-extensions – “This is a repository for collecting global custom management extensions for the Django Framework.”  Of particular interest was the graph_models model which creates a GraphVis dot file (or an image) of your models.  You can specify the whole project or specific apps.  The code is here.
  • Databrowse is a Django application that lets you browse your data.  Databrowse dynamically creates a rich, browsable Web site by introspecting your models.”  This comes free with Django, and is similar to the admin interface, with the ability to click links to related tables to follow how the data is connected.
  • We were discussing how to easily get test data into the Django models when building a project and needing to build, test, tear down, build, test… and came up with two items:
    • When your model is not changing much, Django comes with Fixtures.  “Fixtures are a way of loading data into the database in bulk. Fixture data can be stored in any serializable format (including JSON and XML).”
    • When you are just beginning and have a sample set of data, and need to build a model, test it, throw it away, create another model, and loading the data each time, Jeff suggested using the “writing custom django-admin commands” feature to write your own Django manage.py code.  Then you only have to tweak this to fit the new model and run to import.  This gives a place to put code when it doesn’t belong in the finished app.
  • Mercurial was suggested as a nice start to version control, especially for Windows users.  Jeff explained how committing small updates and documenting them helps in several ways:
    • when a bug is noticed after several changes it is easy to unload each change and test to see where the problem is.
    • you can try something “crazy” without much worry because it will be easy to revert to the previous version.
    • easier to build and test changes before submitting them to a live project.

Panera’s had good food and outlets near tables, but this particular location is pretty loud, not a good choice for the future in my opinion…

October 18, 2010

October 18 Meeting Location

Filed under: info — Steve @ 5:30 pm

Tonight we will be meeting at the Panera Bread at 7825 Dodge St., 7pm.  Hope to see you then.

Powered by WordPress

Stop SOPA