Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Commit 093c542

Browse files
committed
updated documentation data with sample application
1 parent 048591d commit 093c542

File tree

5 files changed

+60
-14
lines changed

5 files changed

+60
-14
lines changed

README.rst

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ Source Code is available in Micropyramid Repository(https://github.com/MicroPyra
1414
Modules used:
1515

1616
* Python >= 2.6 (or Python 3.4)
17-
* Django = 1.9.6
17+
* Django = 1.11.2
18+
* Django Compressor = 2.1.1
19+
* Django Debug Toolbar = 1.8
20+
* requests = 2.17.3
1821
* JQuery >= 1.7
1922

2023

@@ -25,7 +28,7 @@ Installation Procedure
2528

2629
pip install django-web-profiler
2730

28-
(or)
31+
(or)
2932

3033
git clone git://github.com/micropyramid/django-web-profiler.git
3134

@@ -53,13 +56,17 @@ Installation Procedure
5356

5457
Disable 'debug_toolbar.middleware.DebugToolbarMiddleware' if you've already using it.
5558

59+
4. Make sure that 'debug-toolbar' has enabled for your application. After installing debug toolbar, add the following details to settings.py:
5660

57-
3. After installing/cloning, add the following details in settings file about urls, logger names::
61+
INTERNAL_IPS = ('127.0.0.1',)
62+
63+
64+
5. After installing/cloning, add the following details in settings file about urls, logger names::
5865

5966
URLS = ['http://stage.testsite.com/', 'http://stage.testsite.com/testing/']
6067

6168

62-
4. Add the following logger to your existing loggers::
69+
6. Add the following logger to your existing loggers and create a folder called 'logs' where all profiler log files are stored::
6370

6471
'request-logging': {
6572
'level': 'DEBUG',
@@ -70,6 +77,24 @@ Installation Procedure
7077
Here file_log is a handler which contains a path where log files are stored.
7178

7279

80+
Sample Application
81+
==================
82+
83+
1. Install application requirements using the following command::
84+
85+
pip install -r requirements.txt
86+
87+
88+
2. Load the application load using the following command::
89+
90+
python sandbox/manage.py loaddata sandbox/fixtures/users.json
91+
92+
93+
3. Using the following command, we can generate url statistics in production environment i.e debug=False:
94+
95+
python sandbox/manage.py logging_urls
96+
97+
7398
We are always looking to help you customize the whole or part of the code as you like.
7499

75100

docs/source/conf.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
master_doc = 'index'
4444

4545
# General information about the project.
46-
project = u'django-web-packer'
46+
project = u'django-web-profiler'
4747
copyright = u'2016, MicroPyramid'
4848

4949
# The version info for the project you're documenting, acts as replacement for
@@ -176,7 +176,7 @@
176176
#html_file_suffix = None
177177

178178
# Output file base name for HTML help builder.
179-
htmlhelp_basename = 'django-web-packer-doc'
179+
htmlhelp_basename = 'django-web-profiler-doc'
180180

181181

182182
# -- Options for LaTeX output ---------------------------------------------
@@ -196,8 +196,8 @@
196196
# (source start file, target name, title,
197197
# author, documentclass [howto, manual, or own class]).
198198
latex_documents = [
199-
('index', 'django-web-packer.tex', u'django-web-packer Documentation',
200-
u'django-web-packer', 'manual'),
199+
('index', 'django-web-profiler.tex', u'django-web-profiler Documentation',
200+
u'django-web-profiler', 'manual'),
201201
]
202202

203203
# The name of an image file (relative to this directory) to place at the top of
@@ -226,8 +226,8 @@
226226
# One entry per manual page. List of tuples
227227
# (source start file, name, description, authors, manual section).
228228
man_pages = [
229-
('index', 'django-web-packer', u'django-web-packer Documentation',
230-
[u'django-web-packer'], 1)
229+
('index', 'django-web-profiler', u'django-web-profiler Documentation',
230+
[u'django-web-profiler'], 1)
231231
]
232232

233233
# If true, show URL addresses after external links.
@@ -240,8 +240,8 @@
240240
# (source start file, target name, title, author,
241241
# dir menu entry, description, category)
242242
texinfo_documents = [
243-
('index', 'django-web-packer', u'django-web-packer Documentation',
244-
u'django-web-packer', 'django-web-packer', 'One line description of project.',
243+
('index', 'django-web-profiler', u'django-web-profiler Documentation',
244+
u'django-web-profiler', 'django-web-profiler', 'One line description of project.',
245245
'Miscellaneous'),
246246
]
247247

docs/source/index.rst

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ Source Code is available in Micropyramid Repository(https://github.com/MicroPyra
1414
Modules used:
1515

1616
* Python >= 2.6 (or Python 3.4)
17-
* Django = 1.9.6
17+
* Django = 1.11.2
18+
* Django Compressor = 2.1.1
19+
* Django Debug Toolbar = 1.8
20+
* requests = 2.17.3
1821
* JQuery >= 1.7
1922

2023

@@ -74,6 +77,24 @@ Installation Procedure
7477
Here file_log is a handler which contains a path where log files are stored.
7578

7679

80+
Sample Application
81+
==================
82+
83+
1. Install application requirements using the following command::
84+
85+
pip install -r requirements.txt
86+
87+
88+
2. Load the application load using the following command::
89+
90+
python sandbox/manage.py loaddata sandbox/fixtures/users.json
91+
92+
93+
3. Using the following command, we can generate url statistics in production environment i.e debug=False:
94+
95+
python sandbox/manage.py logging_urls
96+
97+
7798
We are always looking to help you customize the whole or part of the code as you like.
7899

79100

sandbox/db.sqlite3

-48 KB
Binary file not shown.

sandbox/requirementx.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Django==1.10.7
1+
Django==1.11.2
22
django-compressor==2.1.1
33
django-debug-toolbar==1.8
44
django-web-profiler==0.1.2

0 commit comments

Comments
 (0)