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 works great
using  python -m SimpleHTTPServer

I have the code included in the Django app templates directory, renamed
index.html to designer.html

I have a url entry:

url(r'^designer/', (DesignerView.as_view()), name='designer')

I have a view:

class DesignerView(TemplateView):
    template_name = 'TdV-app-designer/designer.html'


and I have tried using the {% verbatim %} {% endverbatim %} tags to wrap
the code (the entire file, just the body, just the <designer-element
id="designer"></designer-element> tags, etc.) all to no success.

What happens is that the server begins recursively calling the custom
element.

​So I get:

[19/Nov/2014 09:46:41] "GET / HTTP/1.1" 200 12867
[19/Nov/2014 09:46:43] "GET /designer/ HTTP/1.1" 200 10193
[19/Nov/2014 09:46:43] "GET /designer/components/platform/platform.js
HTTP/1.1" 200 10196
[19/Nov/2014 09:46:44] "GET
/designer/elements/designer-element/designer-element.html HTTP/1.1" 200
10193
[19/Nov/2014 09:46:44] "GET
/designer/elements/designer-element/components/platform/platform.js
HTTP/1.1" 200 10193
[19/Nov/2014 09:46:44] "GET
/designer/elements/designer-element/elements/designer-element/designer-element.html
HTTP/1.1" 200 10193
[19/Nov/2014 09:46:44] "GET
/designer/elements/designer-element/elements/designer-element/components/platform/platform.js
HTTP/1.1" 200 10193
[19/Nov/2014 09:46:44] "GET
/designer/elements/designer-element/elements/designer-element/elements/designer-element/designer-element.html
HTTP/1.1" 200 10194

...

it continues until timeout and probably forever until the server runs out
of memory.

Anyway, I have no idea what this is telling me.

Any hints as to where the problem is and/or how to fix it?

Thanks,
Tim






​



============================================
Timothy Cook
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
MLHIM http://www.mlhim.org

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2B%3DOU3XdmJmaPmjpGQe0UMXBwk0mhsawbdk3qynxRHwQhW6rsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to