Hello, I can't use static files too. urls: urlpatterns = patterns('', (r'^', 'testjquery.views.first'), ) if settings.DEBUG: urlpatterns += patterns('django.views.static', (r'^%s/(?P<path>.*)$' % settings.STATIC_URL[1:], 'serve', { 'document_root': settings.STATIC_ROOT }), )
settings: def rel(*x): return os.path.join(os.path.abspath(os.path.dirname(__file__)), *x) DEBUG = True TEMPLATE_DEBUG = DEBUG STATICFILES_DIRS = DEBUG and (rel('static'),) or None STATIC_ROOT = rel('static') STATIC_URL='/static/' TEMPLATE_CONTEXT_PROCESSORS = ('django.core.context_processors.static',) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', ) <html> <head> <title>test</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> {% load static %} </head> <body> <div id="logotype"> <img src="{{ STATIC_URL }}images/ob_1_1.png"> </div> Vladimir Moscow, Russia -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.