Hi all ,
I m sorry but new to Django and after some learning i came to Jet Admin Backend. All works fine excepting the "Google Analytics Widget".
Could anybody help me ?
I folowed absolutly this link
https://github.com/geex-arts/django-jet/blob/master/docs/dashboard_modules.rstbut it s a prob with my Document root . When i set the absolute path to the client_secrets.json i become this output
File "/home/developer/webapps/machine2/django/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 662, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/developer/webapps/machine2/django/pressmedia/pm/settings.py", line 4, in <module>
JET_MODULE_GOOGLE_ANALYTICS_CLIENT_SECRETS_FILE = os.path.join(PROJECT_DIR, '/home/developer/webapps/machine2/django/pressmedia/client_secrets.json')
NameError: name 'PROJECT_DIR' is not defined
Thanks a lot if someone has an answer for me.