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

Re: Help implement CSS into Django!!!!

2013-01-06 Thread Abraham Yusuf
On Sunday 06 January 2013 11:49:46 AM django-users@googlegroups.com wrote: Czaro Jan 05 06:12PM -0800 I've been trying to get my CSS to work with my python powered site forever but I have no luck. I read the djangobook and a massive load of other resources but they all say a different thing

RE: auth.login function not working as expected

2011-12-18 Thread Abraham Yusuf
Hi all, I found a solution to the problem so i taught i'd let you know. It was really an oversight, my login view is like so: @return_json def login(request) In the decorator i was ripping off the raw post data and passing it to the view as arguments while the view itself only takes the request

auth.login function not working as expected

2011-12-18 Thread Abraham Yusuf
Hi all, I'm trying to login a user using django's authentication backend with the following: user=auth.authenticate(userid,pass) if user: if user.is_active: auth.login(request,user) I am getting TypeError login() takes exactly 1 argument (2 given). I've checked the docs and i can't find