Thursday, December 18, 2014

Re: Webcomponents in Django

On 11/19/2014 7:18 AM, Timothy W. Cook wrote:
> then the designer-element.html is imported:
> <link rel="import"
> 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/elements/designer-element/designer-element.html.
That matches
> url(r'^designer/', (DesignerView.as_view()), name='designer')
because there's not a $ at the end of the pattern.

And it loads the page again. That page also has the same relative link,
but this time in a different file, so it creates the new link as
http://127.0.0.1/designer/elements/designer-element/elements/designer-element/designer-element.html
and the process starts all over again.

This isn't a Django problem but an HTML problem.

--
Peter of the Norse

--
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+unsubscribe@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/54932746.1090705%40radio1190.org.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment