Re: Can't set static file directory.

2013-01-08 Thread jianhui chen
Hi, I am not to interrupt your question, actually I have the same problems as you. It seems that Django comers suffer this problem so much. I use Manager Static File as a guide, but still has problem. 1, Put your static files somewhere that staticfiles will find them I set following

Re: Can't set static file directory.

2013-01-08 Thread Agnese Camellini
I've foud a tutorial , finally. Interesting, but it speaks about an older version of Django. Thank you all for the answers. 2013/1/8 Jonathan > Assuming that you have settings.STATIC_ROOT configured, you can use the > following snippet to handle UR

Re: Can't set static file directory.

2013-01-08 Thread Jonathan
Assuming that you have settings.STATIC_ROOT configured, you can use the following snippet to handle URL routing for static files with the dev server: # urls.py if settings.DEBUG: urlpatterns += patterns('', (r'^static/(?P.*)$', 'django.views.static.serve', { 'document_root'

Re: Can't set static file directory.

2013-01-08 Thread Agnese Camellini
I'm not using apache now, i'm just using the development server into django. Why is it so difficult to serve static files? joy 2013/1/8 Mike Dewhirst > On 8/01/2013 10:03pm, joy wrote: > >> I have the same problem, the tutorial speaks about a list of things to do: >> >> * Push your code up to

Re: Can't set static file directory.

2013-01-08 Thread Mike Dewhirst
On 8/01/2013 10:03pm, joy wrote: I have the same problem, the tutorial speaks about a list of things to do: * Push your code up to the deployment server. * On the server, run collectstatic to

Re: Can't set static file directory.

2013-01-08 Thread joy
I have the same problem, the tutorial speaks about a list of things to do: - Push your code up to the deployment server. - On the server, run collectstaticto copy all the static files into STATI

Re: Can't set static file directory.

2013-01-06 Thread Pedro J. Aramburu
That is in a development server? Why not use ./manage.py runserver? If not you can point apache to the wsgi file and use django itself to serve the static files modifying a little bit urls.py. But it's not recommended for production use. https://docs.djangoproject.com/en/1.4/howto/static-files/

Re: Can't set static file directory.

2013-01-06 Thread Pedro J. Aramburu
Because it's configured that way in apache, not in django, and it doesn't exist ergo the error message. El sábado, 5 de enero de 2013 15:38:32 UTC-3, Mārtiņš Jakubovičs escribió: > > Hello. > > I try a lot of things and can't understand, why not working STATIC_ROOT > and MEDIA_ROOT in settings.p

Re: Can't set static file directory.

2013-01-06 Thread Abraham Yusuf
On Sunday 06 January 2013 11:49:46 AM django-users@googlegroups.com wrote: When i set in STATIC_ROOT = '/home/domain/www/my_proj/htdocs/static' In apache error log i got: File does not exist: /home/domain/www/my_proj/my_proj/static I don't get, why django don't want to take new setting..

Can't set static file directory.

2013-01-05 Thread Mārtiņš Jakubovičs
Hello. I try a lot of things and can't understand, why not working STATIC_ROOT and MEDIA_ROOT in settings.py. I want, that all my media and static folders is in different place that python files, so I set media, static and templates to different place. Templates TEMPLATE_DIRS works well, bet M