The static files app doesn't serve static files (except in development).

What it's primary purpose is to take a list of "finders", and locate all of the 
static files from a variety of places, and collect them into one directory. 
This allows reusable apps to package static files within their apps, and then 
have those files available automatically. The alternative is basically include 
as part of the installation instructions "symlink this folder", or "copy these 
files", or "make sure you download these" etc. 


On Thursday, December 8, 2011 at 7:24 PM, Timothy Makobu wrote:

> Hi Tanya,
> 
> Also have a look at this 
> https://docs.djangoproject.com/en/dev/howto/static-files/#serving-static-files-in-production
>  
> 
> I personally leave Django out of static file serving entirely, and have the 
> webserver serve the static media, but I'll experiment and see what advantage 
> there is to using the staticfilesapp.
> 
> 
> On Sun, Dec 4, 2011 at 11:01 AM, Timothy Makobu <makobu.mwambir...@gmail.com 
> (mailto:makobu.mwambir...@gmail.com)> wrote:
> > In Django 1.3:
> > 
> > STATIC_ROOT = os.path.join(os.path.dirname(__file__), 
> > 'static').replace('\\','/')
> > 
> > where the folder "static" is in the root of your project folder. 
> > 
> > 
> > On Sun, Nov 27, 2011 at 2:23 PM, TANYA <tani...@gmail.com 
> > (mailto:tani...@gmail.com)> wrote:
> > > I read it but after following all steps in it the error still remains.
> > > 
> > > '/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg',
> > > '/usr/lib/python2.6',
> > > '/usr/lib/python2.6/plat-linux2',
> > > '/usr/lib/python2.6/lib-tk',
> > > '/usr/lib/python2.6/lib-old',
> > > '/usr/lib/python2.6/lib-dynload',
> > > '/usr/local/lib/python2.6/dist-packages',
> > > '/usr/lib/python2.6/dist-packages',
> > > '/usr/lib/python2.6/dist-packages/PIL',
> > > '/usr/lib/pymodules/python2.6',
> > > '/usr/lib/pymodules/python2.6/gtk-2.0',
> > > '/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode'I did symlink to 
> > > /usr/bin/local but still get path error. Please help.
> > > 
> > > 
> > > 
> > > On Fri, Nov 25, 2011 at 4:44 AM, Timothy Makobu 
> > > <makobu.mwambir...@gmail.com (mailto:makobu.mwambir...@gmail.com)> wrote:
> > > > And this too http://www.djangobook.com/en/2.0/
> > > > 
> > > > 
> > > > On Fri, Nov 25, 2011 at 7:41 AM, Timothy Makobu 
> > > > <makobu.mwambir...@gmail.com (mailto:makobu.mwambir...@gmail.com)> 
> > > > wrote:
> > > > > Hi,
> > > > > 
> > > > > Please read this whole thing 
> > > > > https://docs.djangoproject.com/en/dev/howto/static-files/ 
> > > > > 
> > > > > 
> > > > > On Fri, Nov 25, 2011 at 6:28 AM, TANYA <tani...@gmail.com 
> > > > > (mailto:tani...@gmail.com)> wrote:
> > > > > > # Absolute filesystem path to the directory that will hold 
> > > > > > user-uploaded files.
> > > > > > # Example: "/home/media/media.lawrence.com/media/ 
> > > > > > (http://media.lawrence.com/media/)"
> > > > > > MEDIA_ROOT = ''
> > > > > > 
> > > > > > I want to upload css files and images so must I put them in 
> > > > > > /home/media or /home/my/media/path/ ? Should the filesystem path in 
> > > > > > settings.py be changed or should MEDIA_ROOT be left empty?
> > > > > > 
> > > > > > -- 
> > > > > > TANYA
> > > > > > -- 
> > > > > > 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 
> > > > > > (mailto:django-users@googlegroups.com).
> > > > > > To unsubscribe from this group, send email to 
> > > > > > django-users+unsubscr...@googlegroups.com 
> > > > > > (mailto:django-users%2bunsubscr...@googlegroups.com).
> > > > > > For more options, visit this group at 
> > > > > > http://groups.google.com/group/django-users?hl=en.
> > > > > 
> > > > 
> > > > -- 
> > > > 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 
> > > > (mailto:django-users@googlegroups.com).
> > > > To unsubscribe from this group, send email to 
> > > > django-users+unsubscr...@googlegroups.com 
> > > > (mailto:django-users%2bunsubscr...@googlegroups.com).
> > > > For more options, visit this group at 
> > > > http://groups.google.com/group/django-users?hl=en.
> > > 
> > > 
> > > 
> > > -- 
> > > TANYA
> > > -- 
> > > 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 
> > > (mailto:django-users@googlegroups.com).
> > > To unsubscribe from this group, send email to 
> > > django-users+unsubscr...@googlegroups.com 
> > > (mailto:django-users%2bunsubscr...@googlegroups.com).
> > > For more options, visit this group at 
> > > http://groups.google.com/group/django-users?hl=en.
> > 
> 
> -- 
> 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 
> (mailto:django-users@googlegroups.com).
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com 
> (mailto:django-users+unsubscr...@googlegroups.com).
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
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.

Reply via email to