Saturday, April 13, 2013

Re: How to run cdn link in a local setup without screwed up hyperlink?

Instead of http:// I recommend using just // , for example:


On Sat, Apr 13, 2013 at 6:29 PM, Vincent Fulco <vfulco1@gmail.com> wrote:
[SOLVED] Oddly, copied right from an online resource and colon was missing in web address, accesses external site correctly now.


On Saturday, April 13, 2013 9:37:07 AM UTC-5, Vincent Fulco wrote:
Attempting to use bootstrapcdn.com in a local bootstrap template on a VM (with 2nd IP address to outside world) before pushing to heroku.  Standard code in the head:

<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">

<script src="http//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>

Static urls ref in other lines works fine--> <link href="{{STATIC_URL}}css/custom.css" rel="stylesheet">

Django base.py seems to be set up correctly but I get a mangled hyperlink and #404 error:

/website/http//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js HTTP/1.1" 404 2915


TIA, V.





 

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate