{"action":"created","issue":{"url":"https://api.github.com/repos/talpor/django-dashing/issues/38","labels_url":"https://api.github.com/repos/talpor/django-dashing/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/talpor/django-dashing/issues/38/comments","events_url":"https://api.github.com/repos/talpor/django-dashing/issues/38/events","html_url":"https://github.com/talpor/django-dashing/issues/38","id":109910774,"number":38,"title":"Question Developing New Widget Locally","user":{"login":"shinyarc","id":483310,"avatar_url":"https://avatars.githubusercontent.com/u/483310?v=3","gravatar_id":"","url":"https://api.github.com/users/shinyarc","html_url":"https://github.com/shinyarc","followers_url":"https://api.github.com/users/shinyarc/followers","following_url":"https://api.github.com/users/shinyarc/following{/other_user}","gists_url":"https://api.github.com/users/shinyarc/gists{/gist_id}","starred_url":"https://api.github.com/users/shinyarc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinyarc/subscriptions","organizations_url":"https://api.github.com/users/shinyarc/orgs","repos_url":"https://api.github.com/users/shinyarc/repos","events_url":"https://api.github.com/users/shinyarc/events{/privacy}","received_events_url":"https://api.github.com/users/shinyarc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-06T00:13:08Z","updated_at":"2015-10-11T21:58:31Z","closed_at":null,"body":"I am a little confused on how to set up my directory when I am trying to develop and test a widget locally. Based on the documentation I have my directory like this in my project:\r\n\r\nproject/\r\n-----static/\r\n----------dashing-config.js\r\n----------widgets/\r\n---------------custom_widget.js\r\n---------------custom_widget.css\r\n---------------custom_widget/\r\n-------------------- custom_widget.html\r\n\r\nWhen I do this and add my custom widget to my INSTALLED_WIDGETS option in my settings.py, I receive a \"custom_widget does not exist\" error in my web console. \r\n"},"comment":{"url":"https://api.github.com/repos/talpor/django-dashing/issues/comments/147249890","html_url":"https://github.com/talpor/django-dashing/issues/38#issuecomment-147249890","issue_url":"https://api.github.com/repos/talpor/django-dashing/issues/38","id":147249890,"user":{"login":"asampat3090","id":873127,"avatar_url":"https://avatars.githubusercontent.com/u/873127?v=3","gravatar_id":"","url":"https://api.github.com/users/asampat3090","html_url":"https://github.com/asampat3090","followers_url":"https://api.github.com/users/asampat3090/followers","following_url":"https://api.github.com/users/asampat3090/following{/other_user}","gists_url":"https://api.github.com/users/asampat3090/gists{/gist_id}","starred_url":"https://api.github.com/users/asampat3090/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asampat3090/subscriptions","organizations_url":"https://api.github.com/users/asampat3090/orgs","repos_url":"https://api.github.com/users/asampat3090/repos","events_url":"https://api.github.com/users/asampat3090/events{/privacy}","received_events_url":"https://api.github.com/users/asampat3090/received_events","type":"User","site_admin":false},"created_at":"2015-10-11T21:58:31Z","updated_at":"2015-10-11T21:58:31Z","body":"Hi @individuo7 that didn't work for me. Is there anything else I need to do other than add 'custom_widget' to the INSTALLED_WIDGETS? I added the files and then added code like this to my dashing-config.js but the block never shows up nor do I get any error in my web console....I have no idea what else to do. \r\n\r\n```javascript\r\ndashboard.addWidget('custom_widget', 'CustomWidget', {\r\n    col: 3,\r\n    getData: function () {\r\n        this.interval = 2000;\r\n\r\n        $.extend(this.data, {\r\n            title: \"Something\",\r\n            more_info: \"\",\r\n            updated_at: \"\",\r\n            detail: \"\",\r\n        });\r\n\r\n        var pineapple = this;\r\n        $.getJSON('widgets/custom_widget/', function (data) {\r\n            console.log(data.value);\r\n            pineapple.data.value = data.value;\r\n        });\r\n    }\r\n});\r\n```"}}