Question: My Django templates use a lot of related stuff: images, style sheets, etc.

Where should I put these file, or how should I refer to them in the template itself?

For now I'm using the development server.

I know it's a really common thing, but I can't really figure it out.

Answer: 
I put them inside a folder named `static`, which is in the web project's top level folder. 

Example: 

> 
> /static/img/  
> 
>  /static/js/  
> 
>  /static/css/  
> 
>  /templates/  
> 
>  urls.py  
> 
>  settings.py 
> 
> 
> 

I then have the following rule in my `urls.py` file:

```
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),

```

My `settings.py` contains:

```
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'static').replace('\\', '/')
ADMIN_MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'static/admin').replace('\\', '/')

```
Maybe you can read the doc <http://docs.djangoproject.com/en/dev/howto/static-files/#howto-static-files>