Django Reporter Pro
Setup in your django project:
- Clone into
django_reporterfolder of youproject's rootdirectorygit clone git@github.com:shamilison/django-reporter-pro.git <reporting_cloned_folder_name>
- Add reporter.pth file in your python environment's site-package folder where content will be
import sys;sys.__plen = len(sys.path) /{path_to_<reporting_cloned_folder_name>}/ import sys; new=sys.path[sys.__plen:];del sys.path[sys.__plen:];p=getattr(sys,'__egginsert',0);sys.path[p:p]=new;sys.__egginsert = p+len(new);
- Add in settings settings.py
WEBPACK_APPLICATION_STATS_PATH = os.path.join(os.path.join(BASE_DIR, '<reporting_cloned_folder_name>'), 'django_report_vue', 'webpack-application-stats.json') # WEBPACK_APPLICATION_STATS_PATH has to be path to the file of "<reporting_cloned_folder_name>/django_report_vue/webpack-application-stats.json" WEBPACK_LOADER = { 'DJANGO_REPORT_PRO': { 'CACHE': not DEBUG, 'BUNDLE_DIR_NAME': '/bundles/', # must end with slash 'STATS_FILE': WEBPACK_APPLICATION_STATS_PATH, }, }
- Add apps in our installed app's list
# Vuejs Integration Helpers 'webpack_loader', 'corsheaders', # Reporter app 'django_reporter_pro',
- Include urls of reporter library in your project urls.py url(r'^', include('django_reporter_pro.urls')),
- These are the URLS:
/django-reporter/#/build-report/create/ - to create report /django-reporter/#/build-report/update/{pk}/ - to update report /django-reporter/#/build-report/view/{pk}/ - to view the report output
- Install required python packages as follows:
cd <reporting_cloned_folder_name> pip install -r packages.txt
- Run
python manage.py migrateto introducedjango_reporter_promodule models - Here
<reporting_cloned_folder_name>/django_report_vueis a standalone VueJS project: Go to<reporting_cloned_folder_name>/django_report_vueand run:npm install npm run serve
This will update awebpack-application-stats.jsonfile for your django project's webpack. - Use following decorator over a model to make it available for reporter:
enable_for_reporter
Release files for django-reporter-pro 2020.1.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-reporter-pro-2020.1.8.2.tar.gz | 4.5 MB | Details |
Release files / django-reporter-pro-2020.1.8.2.tar.gz
| Download URL | django-reporter-pro-2020.1.8.2.tar.gz |
|---|---|
| Size | 4.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0fd6222704ace789689592228c170532493f82db10a1b474d11c7b06331316c
|
|
BLAKE2b-256 checksum How to use checksums |
79c6e6e83dffcd11b0f84244ff5ec0ef50d2f136888c803a574eaafd6a1d71e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.2
|