Want to know which files are missing or not between two directories:

Use diff

>diff direc1 direc2

  • Open up windows explorer
  • Tools -> Folder Options.
  • File Types Tab
  • Select the Folder file type
  • Click Advanced
  • Click New
  • For the Action type what ever you want the context menu to display, I used Command Prompt.
  • For the Application used to perform the action use c:\windows\system32\cmd.exe (note on win2k you will want to specify the winnt directory instead of the windows directory

Original post: here

In settings.py

STATIC_DOC_ROOT = os.path.join(os.path.dirname(__file__), “static”)

MEDIA_URL = ‘/static/’

——————–

In urls.py
from django.conf import settings
if settings.DEBUG:
urlpatterns += patterns(”,
(r’^static/(?P<path>.*)$’, ‘django.views.static.serve’, {‘document_root’: settings.STATIC_DOC_ROOT }),
)

————-

In template .html

<h1><a href=”/”><img src=”{{ MEDIA_URL }}images/logo.png” alt=”Your Logo” title=”Your website”/></a></h1>

———-

directory structure

yourapp/static/images/

© 2011 Web Oom Suffusion theme by Sayontan Sinha
Switch to our mobile site
Top Footer