title: How to serve stylesheet in Django
body: <p>i want to use css in Django templates..If i give CSS with in the templates it gets working.
  But i want to use in static serve manner.</p>
  
  <p>settings.py</p>
  
  <pre><code>       DEBUG =True
         MEDIA_ROOT = 'C:/WorkBase/Python/first/static/'
         MEDIA_URL = '/static/'
         ADMIN_MEDIA_PREFIX = '/media/'
  </code></pre>
  
  <p>TEMPLATE_DIRS = (</p>
  
  <pre><code>      'C:/WorkBase/Python/first/templates',
         )
  </code></pre>
  
  <p>TEMPLATE_LOADERS = (</p>
  
  <pre><code>      'django.template.loaders.filesystem.load_template_source',
        'django.template.loaders.app_directories.load_template_source',
        'django.template.loaders.eggs.load_template_source',
  </code></pre>
  
  <p>)</p>
  
  <p>urls.py</p>
  
  <pre><code>        from django.conf import settings
  
          if settings.DEBUG:
                  urlpatterns +=patterns(' ',
                  (r'^static/(?p&lt;path&gt;.*)$','django.views.static.serve',{'document_root':settings.MEDIA_ROOT}),
  </code></pre>
  
  <p>)</p>
  
  <p>I got  'unexpected end of pattern' error for above line</p>
  
  <pre><code>         &lt;link rel="stylesheet" type="text/css" href="/static/css/style.css"/&gt;
  </code></pre>