Problemas vinculados a archivos estáticos en Django 1.3

Estoy ejecutando django 1.3, python 2.7 en Windows XP

Estoy tratando de configurar un CSS en una carpeta estática para mi aplicación django.

La plantilla se ve así:

<html>
    <head>
        <title>css demo</title>
        <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/my.css" />

    </head>
    <body>

El HTML generado se ve así:

<html> 
    <head> 
        <title>css demo</title> 
        <link rel="stylesheet" type="text/css" href="http://localhost/static/css/my.css" /> 

    </head>
...

Así que parece que tengo todo configurado para especificar dónde están los archivos estáticos en la plantilla, y luego en el html generado.

Pero hay una nota en 'http: //localhost/static/css/my.cs '. ¿Cómo lo consigo allí?

Yo corrí colectivo así:

C:\root\workspace\mywebapp\src\mywebapp>c:\Python27\python.exe manage.py collectstatic

You have requested to collect static files at the destination location as specified in your settings file.

This will overwrite existing files.
Are you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel: yes
Copying 'c:\root\workspace\mywebapp\src\mywebapp\css_demo\static\css\my.css'

1 static file copied to 'C:/root/workspace/mywebapp/src/mywebapp/static/'.

Así que ahora tengo my.css en c: \ root \ workspace \ mywebapp \ src \ mywebapp \ css_demo \ static \ css \ my.css

En mi configuración, tengo:

STATIC_ROOT = 'C:/root/workspace/mywebapp/src/mywebapp/static/'
STATIC_URL = 'http://localhost/static/'

y en mi url.py tengo:

from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

urlpatterns = patterns('',

    (r'^mywebapp/', include('mywebapp.css_demo.urls')),
)

urlpatterns += staticfiles_urlpatterns()

Así que si entiendo correctamente, mi CSS en:

c:\root\workspace\mywebapp\src\mywebapp\css_demo\static\css\my.css

no debería estar disponible en:

http://localhost/static/css/my.css

Pero en cambio veo:

Page not found (404)
Request Method: GET
Request URL:    http://localhost/static/css/my.css
Using the URLconf defined in mywebapp.urls, Django tried these URL patterns, in this order:
^mywebapp/
The current URL, static/css/my.css, didn't match any of these.

También probé:

http://localhost/mywebapp/static/css/my.css
http://localhost/mywebapp/css_demo/static/css/my.css

¿Me estoy perdiendo un paso aquí? La documentación sobre esto es un poco confusa. @http: //docs.djangoproject.com/en/1.3/howto/static-files http: //docs.djangoproject.com/en/1.3/ref/contrib/staticfiles

¡Gracias

Respuestas a la pregunta(2)

Su respuesta a la pregunta