forked from Atomidata/Brainacle
/
vasil-vangelovski.html
282 lines (210 loc) · 13.4 KB
/
vasil-vangelovski.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<!DOCTYPE html>
<html lang="en">
<head>
<title>Brainacle - Articles by Vasil Vangelovski</title>
<meta charset="utf-8" />
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
<link href=".././" type="application/atom+xml" rel="alternate" title="Brainacle ATOM Feed" />
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
</head>
<body id="index" class="home">
<a href="#index" id="goto-top">TOP</a>
<a href="#extras" id="goto-bottom">Links/Blogroll</a>
<a href="https://github.com/dekomote/Brainacle">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
</a>
<header id="banner" class="body">
<h1><a href="../."><img src=".././theme/images/brainacle_logo.png" alt="Brainacle "/></a></h1>
<nav><ul>
<li><a href="../.">Home</a></li>
<li><a href=".././pages/pages/about.html">About</a></li>
<li ><a href=".././category/Coding.html">Coding</a></li>
<li ><a href=".././category/Miscellaneous.html">Miscellaneous</a></li>
<li ><a href=".././category/Sys.html">Sys</a></li>
<li><a href=".././archives.html">Archives</a></li>
</ul></nav>
</header><!-- /#banner -->
<aside id="featured" class="body"><article>
<h1 class="entry-title"><a href=".././announcing-django-audit-log.html">Announcing Django-audit-log</a></h1>
<footer class="post-info">
<abbr class="published" title="2009-12-22T21:39:00">
Tue 22 December 2009
</abbr>
<address class="vcard author">
By <a class="url fn" href="#">Vasil Vangelovski</a>
</address>
<p>In <a href=".././category/Coding.html">Coding</a>. </p>
<p>tags: <a href=".././tag/django.html">django</a> <a href=".././tag/python.html">python</a> <a href=".././tag/audit-log.html">audit-log</a> </p>
</p>
</footer><!-- /.post-info -->
<p>For those unfamiliar with the term, a definition from Wikipedia:</p>
<blockquote>
Audit trail or audit log is a chronological sequence of audit records, each
of which contains evidence directly pertaining to and resulting from the
execution of a business process or system function.</blockquote>
<p>How does this come into play in a web application?</p>
<p>Lets examine the case of a simple application for keeping track of a store's
inventory:</p>
<p>In the most simple case there would be a single database table in which
we'd keep details on different products in the store. In the case where
multiple users would have access to INSERT/UPDATE/DELETE records in the
products table, one user could insert a product with name, description
and price, later another user could change the description or even delete
the whole record. If at some later point we wanted to restore the original
record or see who made the latest changes we'd have to ask all the users to
remember what they did. An audit log for this table would provide the means
of keeping track of all the changes that were made to it and who made the
changes in a chronological order.</p>
<p><a class="reference external" href="https://code.google.com/p/django-audit-log/">django-audit-log</a> provides such
facilities for your Django models. It's designed to be very simple to add
chronological tracking to any django model with the least amount of changes
to your existing code. Adding an audit log for your models is done in
three steps:</p>
<ul class="simple">
<li>Add a middleware class in settings.py.</li>
<li>Add a manager property to every model you need to keep track of.</li>
<li>Execute the syncdb management command.</li>
</ul>
<p>To keep track of all the changes a separate table will be created for
each tracked model. This table would have the same column structure as
the original model plus columns for tracking the time, type of action
(create, change or delete) and user who did the action. Queries on the
audit log for a model are made via the manager added in step 2.</p>
<p>The project is still under heavy development and there's no
official release yet. Keep that in mind if you consider using it in
production. The code can be downloaded from the mercurial repository:</p>
<div class="highlight"><pre>hg clone https://django-audit-log.googlecode.com/hg/ django-audit-log
</pre></div>
<p>Basic usage instructions can be found on
<a class="reference external" href="https://code.google.com/p/django-audit-log/wiki/UsageInstructions">this wiki page</a> .
<strong>Feature requests are always welcome.</strong></p>
<p>Details on how it works and extension points will be coming up on
the project wiki page soon.</p>
</article></aside><!-- /#featured -->
<section id="content" class="body">
<h1>Other articles</h1>
<hr />
<ol id="posts-list" class="hfeed">
<li><article class="hentry">
<header>
<h1><a href=".././benchmark-of-django-deployment-techniques.html" rel="bookmark" title="Permalink to Benchmark of django deployment techniques">Benchmark of django deployment techniques</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2010-01-19T19:55:00">
Tue 19 January 2010
</abbr>
<address class="vcard author">
By <a class="url fn" href="#">Vasil Vangelovski</a>
</address>
<p> In <a href=".././category/Sys.html">Sys</a></p>
<p>tags: <a href=".././tag/django.html">django</a> <a href=".././tag/python.html">python</a> <a href=".././tag/deployment.html">deployment</a> <a href=".././tag/sys.html">sys</a> <a href=".././tag/benchmark.html">benchmark</a> </p>
</p>
<p></p>
</footer><!-- /.post-info -->
<p>I made a benchmark of different Django deployment techniques and configurations
mostly for my personal purposes. The results are published in the hope that it
would save others some time. The benchmark was not designed to test the speed
of Django itself, only to give relative comparison between different techniques ...</p>
<a class="readmore" href=".././benchmark-of-django-deployment-techniques.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href=".././django-toolbox-for-komodo.html" rel="bookmark" title="Permalink to Django Toolbox for Komodo">Django Toolbox for Komodo</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2010-05-03T16:08:00">
Mon 03 May 2010
</abbr>
<address class="vcard author">
By <a class="url fn" href="#">Vasil Vangelovski</a>
</address>
<p> In <a href=".././category/Coding.html">Coding</a></p>
<p>tags: <a href=".././tag/development.html">development</a> <a href=".././tag/editors.html">editors</a> <a href=".././tag/komodo.html">komodo</a> <a href=".././tag/django.html">django</a> </p>
</p>
<p></p>
</footer><!-- /.post-info -->
<p>If you’re using TextMate for Django development you’ve probably came
across the <a class="reference external" href="http://svn.textmate.org/trunk/Bundles/Python%20Django.tmbundle/">Python Django</a>
and Python <a class="reference external" href="http://svn.textmate.org/trunk/Bundles/Python%20Django.tmbundle/">Django Template</a> bundles.</p>
<p>The Django Toolbox for Komodo does most of what the TextMate bundles
do, plus integrated shortcuts for the most important links in the
Django docs. Builtin template filter support ...</p>
<a class="readmore" href=".././django-toolbox-for-komodo.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href=".././pgbouncer-makes-a-difference.html" rel="bookmark" title="Permalink to Pgbouncer Makes a Difference">Pgbouncer Makes a Difference</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2010-06-15T23:17:00">
Tue 15 June 2010
</abbr>
<address class="vcard author">
By <a class="url fn" href="#">Vasil Vangelovski</a>
</address>
<p> In <a href=".././category/Sys.html">Sys</a></p>
<p>tags: <a href=".././tag/django.html">django</a> <a href=".././tag/pgbouncer.html">pgbouncer</a> <a href=".././tag/pgpool.html">pgpool</a> <a href=".././tag/postgresql.html">postgresql</a> </p>
</p>
<p></p>
</footer><!-- /.post-info -->
<p>Last week I was building VMware images for database and web server
appliances that would host a fairly large Django application. The
application is backed by a PostgreSQL database and I was looking for
some info on compiling/configuring pgpool on Debian (I like to compile
stuff when I can ...</p>
<a class="readmore" href=".././pgbouncer-makes-a-difference.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
<div class="blogroll">
<h2>blogroll</h2>
<ul>
<li><a href="http://atomidata.com/">Atomidata</a></li>
<li><a href="http://pressedweb.com/">Pressed Web</a></li>
<li><a href="http://flyeyedesign.com">Flyeye Design</a></li>
<li><a href="/archives.html">Archives</a></li>
</ul>
</div><!-- /.blogroll -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href=".././" rel="alternate">atom feed</a></li>
<li><a href="http://twitter.com/dekomote">@dekomote</a></li>
<li><a href="http://twitter.com/itarpeyo">@ItarPeyo</a></li>
<li><a href="https://bitbucket.org/vvangelovski/">Vasil's Bitbucket</a></li>
<li><a href="https://bitbucket.org/dekomote/">Dejan's Bitbucket</a></li>
<li><a href="https://github.com/dekomote">Dejan's Github</a></li>
<li><a href="https://github.com/vvangelovski">Vasil's Github</a></li>
<li><a href="mailto:info@atomidata.com">Mail Us</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">
© Brainacle 2011 | Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">Pelican</a>.
</address><!-- /#about -->
</footer><!-- /#contentinfo -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-26853324-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>