Look like you aren't using the static tag for image and javascript url.
2016-05-06 19:20 GMT+02:00 Yakir Gabay <ykrgby@gmail.com>:
> Hello I'm very new to Django and very confused
> I have basic familiarity with HTML.
> Hosted a website on my localhost, the CSS loads like I wanted however the
> images refuse to load and the menu doesn't respond to anything like it
> should..
> Very lost and appreciate any help..
>
> <!DOCTYPE html>
> <html lang="en">
> <head>
> <meta charset="utf-8">
> {% load staticfiles %}
> <meta http-equiv="X-UA-Compatible" content="IE=edge">
> <meta name="viewport" content="width=device-width, initial-scale=1">
> <!-- The above 3 meta tags *must* come first in the head; any other head
> content must come *after* these tags -->
> <title>amwa</title>
>
> <!-- Bootstrap -->
> {% load staticfiles %}
> <link rel="stylesheet" href="{% static 'personal/css/bootstrap.min.css' %}"
> type = "text/css"/>
> <meta name="viewport" content = "width=device-width, initial-scale=1.0">
> <link href="personal/css/custom_ykr.css" rel="stylesheet">
> https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
>
> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and
> media queries -->
> <!-- WARNING: Respond.js doesn't work if you view the page via file://
> -->
> <!--[if lt IE 9]>
> <script
> src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
> <script
> src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
> <![endif]-->
> </head>
> <body>
>
> <div class="navbar navbar-default navbar-fixed-top" role="navigation">
> <div class="container">
> <div class="navbar-header">
> <button type="button" class="navbar-toggle" data-toggle="collapse"
> data-target=".navbar-collapse">
> <span class="sr-only">Toggle navigation</span>
> <span class="icon-bar"></span>
> <span class="icon-bar"></span>
> <span class="icon-bar"></span>
> </button>
> <a class="navbar-brand" href="#"><img src="imgs/logo-header.png"</a>
> </div>
> <div class="navbar-collapse collapse">
> <ul class="nav navbar-nav navbar-right">
> <li class="active"><a href="#">Home</a></li>
> <li><a href="#">About</a></li>
> <li class="dropdown">
> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Themes<b
> class="caret"></b></a>
> <ul class="dropdown-menu">
> <li class="dropdown-header">Admin & Dashboard</li>
> <li><a href="#">Admin 1</a></li>
> <li><a href="#">Admin 2</a></li>
> <li class="divider"></li>
> <li class="dropdown-header">Portfolio</li>
> <li><a href="#">Portfolio 1</a></li>
> <li><a href="#">Portfolio 2</a></li>
> </ul>
> </li>
> <li><a href="#">Contact</a></li>
> </ul>
> </div>
> </div>
> </div>
> {% block content %}
> {% endblock %}
> <div class="navbar navbar-inverse navbar-fixed-bottom" role="navigation">
> <div class="container">
> <div class="navbar-text pull-right">
> <p>amwa.com copyright 2016.</p>
> </div>
> <div class="navbar-text pull-left">
> <a href="#"><i class="fa fa-facebook-square fa-2x"></i></a>
> <a href="#"><i class="fa fa-twitter fa-2x"></i></a>
> <a href="#"><i class="fa fa-google-plus fa-2x"></i></a>
> </div>
> </div>
>
> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
> <script
> src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
> <!-- Include all compiled plugins (below), or include individual files
> as needed -->
> <script src="js/bootstrap.min.js"></script>
> </body>
> </html>
>
> --
> 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 https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e263c7c8-4b7f-4f46-9605-9eada590dcf2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
Cordialement, Coues Ludovic
+336 148 743 42
--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEuG%2BTbnr0qdBwXGgD4kk3dS7nQ%2BWFqsOkCN17qFQhrg5EPbvg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment