Closed romanrdgz closed 6 years ago
The default path for the config file is {% static 'dashing-config.js' %}
you have {% static 'dashing/dashing-config.js' %}
also you can replace the config_file
block in your template (http://django-dashing.readthedocs.io/en/latest/getting-started.html#template-file)
Finally achieved it by adding this to my settings.py: STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static'), ]
I have followed the steps in order to create my own widget. But no matter what I do, default widgets are being loaded instead. If I check my Django debug server output, my own dashing-config.js is being loaded because I'm doing a GET request there that is happening according to the log, but I assume that later the default dashing-config.js is being loaded.
I'm working with Python 3.5.2 with Django 2.0.
My widgets.py:
My dashing-config.js (situated in /myapp/myapp/static/dashing/dashing-config.js):
My urls.py:
Default settings.py but for including dashing in INSTALLED_APPS.
What am I missing here? It seems non trivial to avoid loading default demo widgets...