Added functioning log-in page for usage view. Changed how URLs are resolved. visit <hostname>/log to log-in. This will redirect you to <hostname>/log/show. If they try going straight to /log/show, it will redirect them to /log
[Broken] First usage table now loads through AJAX. AJAX is working, but my JSON objects themselves contain objects, which seems to be breaking things. I think it's time to make the model changes Charles and I talked about, earlier today, and this should resolve my objects-within-objects problem.
Usage page now properly loads both tables through AJAX
Completely re-did the model to have new structure, capture different data, etc. Updated the views to match new model.
removed some .pyc files
forgot to commit the debug page for testing with
Added GeoIP attribution link to bottom of showlog.html to comply with the licensing agreement for Maxmind's GeoIP database we're using.
The old views were insanely slow, so I learned how to use .filter() to offload all of my filtering to the DB. It is now over 500x faster than it was.
Added a function '_fill_db' that randomly generates IPs, actions, users, etc and commits them to the DB.
There is no entry for it in urls.py, so the only way to access it is with 'manage.py shell'.
Tested it with 3 million records in the DB and it was still too slow getting the country and domain counts. Offloaded the counting to the DB and it's at least 10x faster.
Now none of the LogEvent fields can be null.
Added Platforms view.
Removed a debug print statement from the new platform view.
Changed the URL for getting country stats to be consistent with the URL for platform and domain.
Added error-logging to model and view
Changed table names for LogEvent and Error. Pleaase drop tables and syncdb.
Severity level is now converted to upper-case.
Fields are no longer allowed to be null.
Merge pull request #2 from dfedorth/master

Working Django implementation of usage app