473,473 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to include CSS in Django Framewok?

88 New Member
hi

i am designing my website currently by using CSS. i have a basetemplate and the rest of template will inherent from this basetemplate. however, i feel it does not have CSS effect, although my CSS is in place and i can see the effect in dreamweaver, however the inherented webpages can not see any effect.i am not sure where is wrong, it seems they never read css file. my basedtemplate is in the following:

Expand|Select|Wrap|Line Numbers
  1. <html xmlns="http://www.w3.org/1999/xhtml" lang="en-gb">
  2.   <head>
  3.        <link rel="stylesheet" type="text/css" href= "../css/car.css" >----->>>my CSS
  4.         <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
  5.     <title>
  6.       {% block site_title %}
  7.         <div align="center">
  8.          Car Rental
  9.         </div>
  10.       {% endblock %}
  11.      </title>
  12.  
  13.      {% block extra_scripts %}
  14.      <!--Page specific css to overide some of the things above can be put here, 
  15.      same for javascripts-->
  16.      {% endblock %}
  17.  
  18.   </head>
  19.   <body>
  20.     <div class="container"><!-- container for everything-->
  21.       <div class="column span-24"><!-- Header --> 
  22.         <h1 class="header">Car Rental</h1>
  23.  <div id="leftcol">
  24.           <ul>
  25.           {% if not Login  %}
  26.             <li><a href="/homepage/" title="Home">Home</a></li>
  27.           {% endif %}
  28.  
  29.           {% if Login %}
  30.           <li><a href="/accounts/profile/" title="Home">Home</a></li>
  31.           {% endif %}
  32.             <li><a href="/browsing/" title="Car Browsing ">Car Browsing</a></li>
  33.             <li><a href="/booking/" title="Booking Online">Booking Online</a></li>
  34.             <li><a href="/rental_guide/" title="rental">Rental Guide</a></li>
  35.             <li><a href="/Outlet/" title="Our Outlet">Our Outlet</a></li>
  36.             <li><a href="/contactus/" title="contactus">Contact us</a></li>
  37.             <li><a href="/search/" title="Search">Search</a></li>
  38.           </ul>
  39.       </div>
  40.  
  41.        <!-- Main Content-->
  42.         {% block content %}
  43.         <div id="centercontent">
  44.         <!--empty block for sub templates to provide their own content inside 
  45.         Refer to index.html for an example.
  46.         -->    </div>
  47.         {% endblock %}
  48.  
  49.       <div id="page-footer"><!-- Footer -->
  50.         <p><small>Copyright 2008 Car Rental Singapore Private Limited | <a href="/TermsAndConditions/">Terms & Conditions</a>
  51.     *All prices shown are applicable for online booking only.</small></p>
  52.       </div>
  53.  
  54.   </body>
  55. </html>
  56.  
thanks for any kind help ;)
Dec 25 '07 #1
0 1827

Sign in to post your reply or Sign up for a free account.

Similar topics

28
by: flamesrock | last post by:
Firstly, this topic is NOT intended for trolling or starting any flame wars. I want to know if anyone has experience with these frameworks, and if so, how do they compare? Which one do you...
0
by: Sokolov Yura | last post by:
Django Model is wonderfull. But SQLObject more flexible (and powerfull, as i think, and has already more db interfaces). But Django Model is tied with Django, and using Django with another OO...
13
by: Ilias Lazaridis | last post by:
I have implemented a simple schema evolution support for django, due to a need for a personal project. Additionally, I've provided an Audit: http://case.lazaridis.com/wiki/DjangoAudit As a...
2
by: guile | last post by:
hi, i'm running apache 2.2.3 on windows xp and have python 2.5 and mysql 5 installed. i'm having problems installing django. please give me some help. i created a folder "django" in my...
1
by: kernel1983 | last post by:
I look it up in PyPI There are info about Django: Package Score Description Django096 0.96 6 Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic...
4
by: seb.haase | last post by:
Hi! I was surprised when I did a google-groups search for python, ( http://groups.google.com/groups/search?q=python&qt_s=Search+Groups ) it shows these groups: comp.lang.python with about...
2
by: cuongvt | last post by:
Hello I'm new to both Django and Python. I'm mainly developing on PHP. I tend to move to Django. But I want to confirm as below: I heard that Django is mainly used for something like content...
4
by: circularfunc | last post by:
i have been trying to get Django running for 2 days now and it drives me crazy. i played with webpy a bit and it is easy to get going with. but django seems like once you have it all up and...
4
by: K | last post by:
Hello everyone, I understand that urllib and urllib2 serve as really simple page request libraries. I was wondering if there is a library out there that can get the HTTP requests for a given...
1
by: Aspersieman | last post by:
On Wed, 05 Nov 2008 08:35:23 +0200, 3000 billg <billg3000@hos.twgg.org> wrote: Hi Excellent choice :)
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.