Ask Your Question

How to configure STATIC_URL setting?

asked 2011-02-28 03:02:36 -0500

Adi Roiban gravatar image

I tried to follow the installation steps from here, but when I try to start the webserver I got the following error:

Are there any hints about how to configure static files?

$ python runserver `hostname -i`:8000
.py", line 3, in <module>
    settings = StaticfilesSettings("STATICFILES")
  File "/var/www/", line 160, in __init__
    value = callback(value)
  File "/var/www/", line 46, in configure_url
    raise ImproperlyConfigured("You're using the staticfiles app "
django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the required STATIC_URL setting.
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2011-02-28 11:06:41 -0500

krossner gravatar image

updated 2011-02-28 11:07:37 -0500


STATIC_URL = '/path_to_your_statics'



in your

edit flag offensive delete link more


OK. But what and where are my 'statics' ... I have no prior Django knowledge, just the information available in the documentation
Adi Roiban gravatar image Adi Roiban  ( 2011-03-01 12:06:53 -0500 )edit
Evgeny has obviously the right answer.
krossner gravatar image krossner  ( 2011-03-03 04:27:34 -0500 )edit
All the statics are in the askbot/skins/default/media and some go to askbot/upfiles
Evgeny gravatar image Evgeny  ( 2011-03-03 11:06:43 -0500 )edit

answered 2011-03-01 12:26:48 -0500

Evgeny gravatar image

The staticfiles application is not used in askbot, it was left in the sample by mistake, removed now. Sorry about the confusion.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-02-28 03:02:36 -0500

Seen: 9,741 times

Last updated: Mar 01 '11