Hi,

I  created templates and static directory in parallel  with my project 
directory like below but only html part is visible to me css and js part 
are not visible,

<project>/<project>/templates/home.html
<project>/<project>/static/static/css/
<project>/<project>/static/static/js/

 html use,

{% load static %}


<link rel="stylesheet" href="{% static "static/css/bootstrap.min.css" %}" />
    <link href="{% static "static/css/font-awesome.min.css" %}" 
rel="stylesheet"/>
    <link href="{% static "static/css/custom.css"%}" rel="stylesheet"/>
     <script src="{% static "static/js/jquery.min.1.11.1.js"%}"></script>
    <script src="{%static "static/js/bootstrap.min.js"%}"></script>


And added a below line in <project>/settings.py,

STATICFILES_DIRS = (
       os.path.join(PROJECT_PATH, "static"),
   )





-- 
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/ffb7b5a6-2cbf-4573-be0b-b8ea740603b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to