On 08/10/2011 04:53 AM, Peter Kovgan wrote: > Thank you guys. > > I use development server of django(manage.py runserver). > > I created an app. from the official site of the django, this one of the > first tutorial. > > I did it on windows installation. > > Then I came home, installed the same app on ubuntu. > > Now my conf is: >> django 1.3 >> on python 2.7.1 >> ubuntu 11.04 >> looking through firefox 4 > > and it stopped show "stattic content" > > HERE IS COLLECTSTATIC:: > > . . . > "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", > line 41, in __init__ > self.storage = get_storage_class(settings.STATICFILES_STORAGE)() > File > "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/storage.py", > line 23, in __init__ > raise ImproperlyConfigured("You're using the staticfiles app " > django.core.exceptions.ImproperlyConfigured: You're using the > staticfiles app without having set the STATIC_ROOT setting. > > I tried to resolve it myself, but nothing has worked. > > I used answers to another threads, but probably my installation is > somehow different. > > What exactly I specify in MEDIA_ROOT = ''" ? >
Very probably an error in settings.py STATIC_ROOT has to be an absolut path name using '/' and not '\' characters pointing to a directory, that is empty (collectstatic will store files there) STATICFILES_DIRS should point to the directory, where you put your static files. As Praveen pointed out.: A dump of settings.py might help -- 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.