Sunday, March 16, 2014

Re: problem with integrating bootstrap 3.1.1 and django 1.6

On Sunday, March 16, 2014 1:58:50 AM UTC-4:30, rafiee.nima wrote:
I'm using development server . and when i use  <link href="{{STATIC_URL}}css/bootstrap.css" rel="stylesheet" media="screen"> it seems work correctly but when I use <link href="{% static 'css/bootstrap.min.css' %}css/bootstrap.css" rel="stylesheet" media="screen">  my project file and directory structure is like :
  1. root project folder
    1. app folder
  2. static
    1. css
      1. bootstarp.css
    2. js
    3. img
  3. media
  4. template
    1. app
      1. base.html
Hello,

<link href="{% static 'css/bootstrap.min.css' %}css/bootstrap.css" rel="stylesheet" media="screen"> 

should be:

<link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet" media="screen">

Camilo

--
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/f01e1098-fbfd-47dc-aca3-69ffbb1de06a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment