On Tue, Apr 17, 2012 at 12:50 PM, dummyman dummyman <tempo...@gmail.com> wrote: > > Hi > > attached is the settings.py and i ve placed my css files in static directory > of the app and in templates i ve given the path > > {{ STATIC_URL }} path > > On Tue, Apr 17, 2012 at 10:13 PM, Joel Goldstick <joel.goldst...@gmail.com> > wrote: >> >> On Tue, Apr 17, 2012 at 11:53 AM, dummyman dummyman <tempo...@gmail.com> >> wrote: >> > hi, >> > >> > i tried it before but didnt get d required results. >> > >> > On Tue, Apr 17, 2012 at 8:16 PM, Eugenio Minardi >> > <eugenio.mina...@gmail.com> >> > wrote: >> >> >> >> Hi, >> >> >> >> you can find a detailed guide >> >> here https://docs.djangoproject.com/en/dev/howto/static-files/ >> >> >> >> On Tue, Apr 17, 2012 at 4:18 PM, dummyman dummyman <tempo...@gmail.com> >> >> wrote: >> >>> # Absolute path to the directory static files should be collected to. # Don't put anything in this directory yourself; store your static files # in apps' "static/" subdirectories and in STATICFILES_DIRS. # Example: "/home/media/media.lawrence.com/static/" STATIC_ROOT = '' Do you want this to be blank? It should be a path to a directory (perhaps below your Project root)
# URL prefix for static files. # Example: "http://media.lawrence.com/static/" STATIC_URL = '/static/' # URL prefix for admin static files -- CSS, JavaScript and images. # Make sure to use a trailing slash. # Examples: "http://foo.com/static/admin/", "/static/admin/". ADMIN_MEDIA_PREFIX = '/static/admin/' # Additional locations of static files STATICFILES_DIRS = ( # Put strings here, like "/home/html/static" or "C:/www/django/static". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. "/home/temp/recommendation/templates/", You need to put directories where to find your files here. You can use as many as you like. Perhaps different for js or css or whatever ) -- Joel Goldstick -- 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.