Im using Django version 1.8, my CSS, JS or images are not working, I really don't know why my project folder is like
Project Jetint Static CSS
My settings:
DEBUG = True ALLOWED_HOSTS = []
and my base.html
<!DOCTYPE html> <html lang="en"> <head> <title> - {% block title-section%}{% endblock %}</title> <meta charset="utf-8"> <meta name = "format-detection" content = "telephone=no" /> {# <link rel="icon" href="{{ STATIC_URL }}images/favicon.ico"> #} {# <link rel="shortcut icon" href="{{ STATIC_URL }}images/favicon.ico" /> #} {% load staticfiles %} <link rel="stylesheet" href="{{ STATIC_URL }}css/camera.css"> <link rel="stylesheet" href="{{ STATIC_URL }}css/stuck.css"> <link rel="stylesheet" href="{{ STATIC_URL }}css/style.css">
but nothing works, css, js files or images. please, help?
EDIT:
now my html looks like this:
{% load staticfiles %} <!DOCTYPE html> <html lang="en"> <head> <title> Jet Internacional - {% block title-section%}{% endblock %}</title> <meta charset="utf-8"> <meta name = "format-detection" content = "telephone=no" /> {# <link rel="icon" href="{{ STATIC_URL }}images/favicon.ico"> #} {# <link rel="shortcut icon" href="{{ STATIC_URL }}images/favicon.ico" /> #} <link rel="stylesheet" href="{% static 'css/camera.css' %"> <link rel="stylesheet" href="{% static 'css/stuck.css' %"> <link rel="stylesheet" href="{{ % static 'css/style.css'%"> <script src="{{ STATIC_URL }}js/jquery.js"></script> <script src="{{ STATIC_URL }}js/jquery-migrate-1.1.1.js"></script> <script src="{{ STATIC_URL }}js/script.js"></script> <script src="{{ STATIC_URL }}js/superfish.js"></script> <script src="{{ STATIC_URL }}js/jquery.equalheights.js"></script> <script src="{{ STATIC_URL }}js/jquery.mobilemenu.js"></script> <script src="{{ STATIC_URL }}js/jquery.easing.1.3.js"></script> <script src="{{ STATIC_URL }}js/tmStickUp.js"></script> <script src="{{ STATIC_URL }}js/jquery.ui.totop.js"></script> <script src="{{ STATIC_URL }}js/camera.js"></script> <script src="{{ STATIC_URL }}js/jquery.mobile.customized.min.js"></script> <script src="{{ STATIC_URL }}js/jquery-ui-1.10.3.custom.js"></script> <script> $(document).ready(function(){ jQuery('#camera_wrap').camera({ loader: false, pagination: false , minHeight: '200', thumbnails: false, height: '25.625%', caption: false, navigation: true, fx: 'mosaic' }); $().UItoTop({ easingType: 'easeOutQuart' }); $('#stuck_container').tmStickUp({}); }); $(function() { jQuery( "#accordion" ).accordion({ collapsible: true, heightStyle: "content", }); }); </script> </head> <body class="page1" id="top"> <header> <section id="stuck_container"> <div class="container"> <div class="row"> <div class="grid_12"> <h1> <a href="/"> <img src="{% static 'images/logo-rif.png' %}" width="200px;" alt="Logo alt"> </a> </h1> <div class="header_socials"><a href="#" class="fa fa-facebook"></a><a href="#" class="fa fa-twitter"></a><a href="" CLASS="fa fa-instagram"></a> {# <a href="{% url 'registo_usuario' %}"> Registro </a> #} </div>
and my settings ...
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https:
source share