@@ -25,7 +25,7 @@ Installation Procedure
25
25
26
26
pip install django-web-profiler
27
27
28
- (or)
28
+ (or)
29
29
30
30
git clone git://github.com/micropyramid/django-web-profiler.git
31
31
@@ -37,16 +37,33 @@ Installation Procedure
37
37
38
38
INSTALLED_APPS = [
39
39
'..................',
40
- 'django-web-profiler',
40
+ 'compressor',
41
+ 'debug_toolbar',
42
+ 'django_web_profiler',
41
43
'..................'
42
44
]
43
45
44
- 3. After installing/cloning, add the following details in settings file about urls, logger names::
46
+ 3. Add 'django_web_profiler.middleware.DebugLoggingMiddleware' to your project middlewares:
47
+
48
+ MIDDLEWARE = [
49
+ '..................',
50
+ 'django_web_profiler.middleware.DebugLoggingMiddleware'
51
+ '..................'
52
+ ]
53
+
54
+ Disable 'debug_toolbar.middleware.DebugToolbarMiddleware' if you've already using it.
55
+
56
+ 4. Make sure that 'debug-toolbar' has enabled for your application. After installing debug toolbar, add the following details to settings.py:
57
+
58
+ INTERNAL_IPS = ('127.0.0.1',)
59
+
60
+
61
+ 5. After installing/cloning, add the following details in settings file about urls, logger names::
45
62
46
63
URLS = ['http://stage.testsite.com/', 'http://stage.testsite.com/testing/']
47
64
48
65
49
- 4 . Add the following logger to your existing loggers::
66
+ 6 . Add the following logger to your existing loggers and create a folder called 'logs' where all profiler log files are stored ::
50
67
51
68
'request-logging': {
52
69
'level': 'DEBUG',
@@ -57,14 +74,6 @@ Installation Procedure
57
74
Here file_log is a handler which contains a path where log files are stored.
58
75
59
76
60
- Features:
61
- =========
62
-
63
- * Logs debug toolbar statistics of a urls into a database in a development environment.
64
- * Logs statistics of a urls into a database in a production environment.
65
- * Provides a basic UI to display production, developement url statistics.
66
-
67
-
68
77
We are always looking to help you customize the whole or part of the code as you like.
69
78
70
79
0 commit comments