Re: Webcomponents in Django

2014-12-18 Thread Peter of the Norse
On 11/19/2014 7:18 AM, Timothy W. Cook wrote: then the designer-element.html is imported: href="elements/designer-element/designer-element.html"> Here's your problem. This is a relative link, so the current directory gets used as the base, and it tries to load http://127.0.0.1/designer/eleme

Re: Webcomponents in Django

2014-11-19 Thread Timothy W. Cook
Progress: I moved the Polymer code tree to my static directory and replaced the URL with designer This at least lets me load the designer. Now on to see if I can build ajax calls to class based views or maybe there is another way? Cheers, Tim On Wed, Nov 19, 2014 at 1:59 PM, Timothy W. Coo

Re: Webcomponents in Django

2014-11-19 Thread Timothy W. Cook
Maybe I bit off too much to start. IT looks like this may be a better place to start. http://themikelewis.com/2014/10/01/django-and-polymer-the-basics-and-vulcanizing/ ... and not running the Django development server. On Wed, Nov 19, 2014 at 12:18 PM, Timothy W. Cook wrote: > > On Wed, Nov

Re: Webcomponents in Django

2014-11-19 Thread Timothy W. Cook
On Wed, Nov 19, 2014 at 12:10 PM, Avraham Serour wrote: > the line you posted is not a call to any template, it translates to a url > address given the view name. > > the top line means that the staticfiles module is loaded, you need that in > order to use it in the template below, my question is

Re: Webcomponents in Django

2014-11-19 Thread Timothy W. Cook
What I am looking for is not necessarily an answer, since there is probably very few people that have tried this. I am hoping that someone can give me an idea 'how to troubleshoot' this issue. How do I break this down into steps to even see what is happening? Since platform.js and designer-eleme

Re: Webcomponents in Django

2014-11-19 Thread Avraham Serour
the line you posted is not a call to any template, it translates to a url address given the view name. the top line means that the staticfiles module is loaded, you need that in order to use it in the template below, my question is if you actually use it, how do you point to the js file for exampl

Re: Webcomponents in Django

2014-11-19 Thread Timothy W. Cook
At the top of the both the main file where designer is called from and at the top of designer.html I have: {% load staticfiles i18n %} The call to the designer template is in a list with other calls that work fine: designer Thanks, Tim On Wed, Nov 19, 2014 at 10:54 AM, Avraham Serour wrote:

Re: Webcomponents in Django

2014-11-19 Thread Avraham Serour
looks like the html rendered is making the recursive requests, are you using {% static %} and {% url 'designer' %} ? On Wed, Nov 19, 2014 at 1:53 PM, Timothy W. Cook wrote: > > I have a Django app that I want to include a UI similar to the Polymer > designer https://www.polymer-project.org/tools

Webcomponents in Django

2014-11-19 Thread Timothy W. Cook
I have a Django app that I want to include a UI similar to the Polymer designer https://www.polymer-project.org/tools/designer/ Source code here: https://github.com/twcook/TdV-app-designer/tree/tdv plus the components installed via bower. I have built this designer as a standalone app and it wo