A Django app to plot charts and pivot charts directly from the models. Uses HighCharts and jQuery JavaScript libraries to render the charts on the webpage.
# 'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'chartit',
)
python manage.py runserver
Validating models...
0 errors found
June 18, 2014 - 11:14:33
Django version 1.6.5, using settings 'testpage.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "C:\Program Files (x86)\Python33\lib\site-packages\django\core\management
init.py", line 399, in execute_from_command_line
utility.execute()
File "C:\Program Files (x86)\Python33\lib\site-packages\django\core\management
init.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Program Files (x86)\Python33\lib\site-packages\django\core\management
\base.py", line 242, in run_from_argv
self.execute(_args, *_options.dict)
File "C:\Program Files (x86)\Python33\lib\site-packages\django\core\management
\base.py", line 280, in execute
translation.activate('en-us')
File "C:\Program Files (x86)\Python33\lib\site-packages\django\utils\translati
oninit.py", line 130, in activate
return _trans.activate(language)
File "C:\Program Files (x86)\Python33\lib\site-packages\django\utils\translati
on\trans_real.py", line 188, in activate
_active.value = translation(language)
File "C:\Program Files (x86)\Python33\lib\site-packages\django\utils\translati
on\trans_real.py", line 177, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "C:\Program Files (x86)\Python33\lib\site-packages\django\utils\translati
on\trans_real.py", line 159, in _fetch
app = import_module(appname)
File "C:\Program Files (x86)\Python33\lib\importlibinit.py", line 90, in
import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1584, in _gcd_import
File "", line 1565, in _find_and_load
File "", line 1532, in _find_and_load_unlocked
File "", line 584, in _check_name_wrapper
File "", line 1022, in load_module
File "", line 1003, in load_module
File "", line 560, in module_for_loader_wrapper
File "", line 868, in _load_module
File "", line 313, in _call_with_frames_removed
File "C:\Program Files (x86)\Python33\lib\site-packages\django_chartit-0.1-py3
.3.egg\chartitinit.py", line 3, in
from .chartdata import PivotDataPool, DataPool
File "C:\Program Files (x86)\Python33\lib\site-packages\django_chartit-0.1-py3
.3.egg\chartit\chartdata.py", line 109
sort_grp_fn = lambda (tk, td): tuple(chain(str(td['source'].query),
^
SyntaxError: invalid syntax
I have Python33 with Django-1.6.5. When chartit is added to INSTALLED_APPS I got error.
Scenario: django-admin.py startproject testpage cd testpage edit settings.py and add 'chartit', to INSTALLED_APPS
INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles',
Uncomment the next line to enable the admin:
)
python manage.py runserver
Validating models...
0 errors found June 18, 2014 - 11:14:33 Django version 1.6.5, using settings 'testpage.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. Traceback (most recent call last): File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "C:\Program Files (x86)\Python33\lib\site-packages\django\core\management
init.py", line 399, in execute_from_command_line
utility.execute()
File "C:\Program Files (x86)\Python33\lib\site-packages\django\core\management
init.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Program Files (x86)\Python33\lib\site-packages\django\core\management
\base.py", line 242, in run_from_argv
self.execute(_args, *_options.dict)
File "C:\Program Files (x86)\Python33\lib\site-packages\django\core\management
\base.py", line 280, in execute
translation.activate('en-us')
File "C:\Program Files (x86)\Python33\lib\site-packages\django\utils\translati
oninit.py", line 130, in activate
return _trans.activate(language)
File "C:\Program Files (x86)\Python33\lib\site-packages\django\utils\translati
on\trans_real.py", line 188, in activate
_active.value = translation(language)
File "C:\Program Files (x86)\Python33\lib\site-packages\django\utils\translati
on\trans_real.py", line 177, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "C:\Program Files (x86)\Python33\lib\site-packages\django\utils\translati
on\trans_real.py", line 159, in _fetch
app = import_module(appname)
File "C:\Program Files (x86)\Python33\lib\importlibinit.py", line 90, in
import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1584, in _gcd_import
File "", line 1565, in _find_and_load
File "", line 1532, in _find_and_load_unlocked
File "", line 584, in _check_name_wrapper
File "", line 1022, in load_module
File "", line 1003, in load_module
File "", line 560, in module_for_loader_wrapper
File "", line 868, in _load_module
File "", line 313, in _call_with_frames_removed
File "C:\Program Files (x86)\Python33\lib\site-packages\django_chartit-0.1-py3
.3.egg\chartitinit.py", line 3, in
from .chartdata import PivotDataPool, DataPool
File "C:\Program Files (x86)\Python33\lib\site-packages\django_chartit-0.1-py3
.3.egg\chartit\chartdata.py", line 109
sort_grp_fn = lambda (tk, td): tuple(chain(str(td['source'].query),
^
SyntaxError: invalid syntax