Re: Auth backends don't work with HttpResponseRedirect and Django 1.4+?

2013-10-14 Thread Hanne Moa
On 14 October 2013 17:06, Tom Evans wrote: > On Mon, Oct 14, 2013 at 1:52 PM, Hanne Moa wrote: > > I can't get logging in with alternate auth backends to work with Django > 1.4 > > or newer. > > Are you sure sessions are working correctly? Are

Re: AttributeError: 'module' object has no attribute '_handlerList'

2013-10-14 Thread Darion Yaphet
ok I built Django 1.5.3 on fedora 18 and don't use virtualenv 2013/10/14 Leonardo Giordani > Please give me the information I asked you, otherwise I cannot figure out > what kind of problem you have. > > Are you using a virtualenv? In that case, can you post

Django Software Foundation minutes

2013-10-14 Thread Andy McKay
Just wanted to make people aware that each month the board of the Django Software Foundation meets. The minutes of each meeting are published here: https://www.djangoproject.com/foundation/records/ If there's anything you'd like discussed at the next board meeting, please contact us at:

Vancouver Python Day - Talk Proposal Deadline

2013-10-14 Thread Andy McKay
Hi Djangonauts! We've just set the deadline for Vancouver Python Day talk proposal submissions. All talk proposals must be submitted by *Thursday, October 17, 2013 at 23:59 Pacific Time*. See https://github.com/andymckay/vancouver-python-day for instructions on submitting a talk proposal. All

def altword_list(self, request, word_id):

2013-10-14 Thread Pepsodent Cola
Hi, I got some help by somebody on #django IRC. They gave me this code snippet to fix my problem. But I'm having problems incorporating that code into my Class file because Template file says "No list is available" when I try to access the list variable. What am I doing wrong? # Filter 8

Re: New to Django cannot figure URLpatterns

2013-10-14 Thread Tom Lockhart
On 2013-10-14, at 3:58 PM, Mark Strickland wrote: > I am new to using Django and I can get one urls to work, but I cannot get > another. I am running Django 1.5 > > This url works. > > url(r'^$', views.index, name='index'), > > But if I try to follow this one. > >

Re: Defining new project as a service at nignx

2013-10-14 Thread Javier Guerra Giraldez
On Mon, Oct 14, 2013 at 12:17 PM, Muhammed TÜFEKYAPAN wrote: > I use digitalocean as a server. I upload my django project files on my > server and start to setup. Made postgresql settings etc but I can't define > my new project as a new service on nginx. How can I define my

Re: Defining new project as a service at nignx

2013-10-14 Thread Muhammed TÜFEKYAPAN
First of all, thanks for answer. I read these two links but I can't find any information for my problem. I write boot file and make required changes in the sites-avaiable folder. Even this, nginx don't see my project. I still need help. On Monday, October 14, 2013 9:22:34 PM UTC+3, sacrac

Re: Defining new project as a service at nignx

2013-10-14 Thread carlos
Hi you need read this http://wiki.nginx.org/ServerBlockExample http://wiki.nginx.org/DjangoFastCGI Cheers On Mon, Oct 14, 2013 at 11:17 AM, Muhammed TÜFEKYAPAN wrote: > Hello everybody, > > > I use digitalocean as a server. I upload my django project files on my >

Defining new project as a service at nignx

2013-10-14 Thread Muhammed TÜFEKYAPAN
Hello everybody, I use digitalocean as a server. I upload my django project files on my server and start to setup. Made postgresql settings etc but I can't define my new project as a new service on nginx. How can I define my new projest as a service and make possible to start it as "service

Re: Image browsing in django

2013-10-14 Thread Harjot Mann
On Mon, Oct 14, 2013 at 9:46 PM, Harjot Mann wrote: > Done..but again getting the same error. I am doing it like this: > This is my model: > image=models.ImageField(upload_to='images') > > and then in my html form I am doing it like this: > > {% csrf_token %} >

Re: Image browsing in django

2013-10-14 Thread Harjot Mann
On Mon, Oct 14, 2013 at 8:34 PM, Tom Evans wrote: > Yes, this is what I said before. Forms that contain files must be > specified in the HTML differently than forms that do not contain > files, or when the form is submitted, the file will not be submitted > along with

Re: unable to access django development server on firefox/chrome

2013-10-14 Thread Tom Evans
On Sat, Oct 12, 2013 at 6:02 PM, gitrookie wrote: > hi > > I have just started to learn django. so I followed the instruction given in > the link below. I am using ubuntu 13.04 and using python 3.3.1 in a virtual > environment > >

Re: Auth backends don't work with HttpResponseRedirect and Django 1.4+?

2013-10-14 Thread Tom Evans
On Mon, Oct 14, 2013 at 1:52 PM, Hanne Moa wrote: > I can't get logging in with alternate auth backends to work with Django 1.4 > or newer. > > Basically: > > 1. authenticate() works. request.user.is_authenticated() is True > 2. Django's own login() seems to work, as

Re: Image browsing in django

2013-10-14 Thread Tom Evans
On Mon, Oct 14, 2013 at 2:25 PM, Harjot Mann wrote: > On Fri, Oct 11, 2013 at 3:44 PM, Tom Evans wrote: >> Forms containing files must have encoding type of >> "multipart/form-data" or the file will not be submitted with the rest >> of the

Re: on update foreign key django edit doesn't work

2013-10-14 Thread Harjot Mann
On Mon, Oct 14, 2013 at 5:56 PM, Mirza Delic wrote: > I did manualy on db "ON UPDATE CASCADE", and when i update foreign key on db > side it works, but when i try to change on django, it shows me error "list > index out of range". > How can i solve this? Can you please

Re: Auth backends don't work with HttpResponseRedirect and Django 1.4+?

2013-10-14 Thread Sergiy Khohlov
Please post a example code. one user with two password with different permission is not easy to understand idea for me :-) Many thanks, Serge +380 636150445 skype: skhohlov On Mon, Oct 14, 2013 at 4:14 PM, Hanne Moa wrote: > That's not my code, that's the first hit on

Re: Image browsing in django

2013-10-14 Thread Harjot Mann
On Fri, Oct 11, 2013 at 3:44 PM, Tom Evans wrote: > Forms containing files must have encoding type of > "multipart/form-data" or the file will not be submitted with the rest > of the form. Didn't get you here. My problem is this that when I am browsing for image ita

Re: Auth backends don't work with HttpResponseRedirect and Django 1.4+?

2013-10-14 Thread Hanne Moa
That's not my code, that's the first hit on google for my problem. I use django's own login() to login the user. On 14 October 2013 15:07, Sergiy Khohlov wrote: > Take a look at : > if form.is_valid(): > #django.contrib.auth.login > Login(request,

Re: Auth backends don't work with HttpResponseRedirect and Django 1.4+?

2013-10-14 Thread Hanne Moa
Why not assume that I have a reason not to use the ready-made stuff? The User-object has several passwords connected, wuhch represent passwords elsewhere, which can be different. Which password to check is set on the login-page, and after login the only page available is one where those passwords

Re: Auth backends don't work with HttpResponseRedirect and Django 1.4+?

2013-10-14 Thread Sergiy Khohlov
Take a look at : if form.is_valid(): #django.contrib.auth.login Login(request, form.get_user()) str = reverse('cm_base.views.index') return HttpResponseRedirect(str) else: # Their password / email combination must have been incorrect pass

Re: Auth backends don't work with HttpResponseRedirect and Django 1.4+?

2013-10-14 Thread Sergiy Khohlov
I have no idea why are you writing this code by yourself ? This is already done ! Take a look at https://github.com/django/django/blob/master/django/contrib/auth/views.py login function is already done and you can use it . Have no sense to write it by yourself. Many thanks, Serge +380

Auth backends don't work with HttpResponseRedirect and Django 1.4+?

2013-10-14 Thread Hanne Moa
I can't get logging in with alternate auth backends to work with Django 1.4 or newer. Basically: 1. authenticate() works. request.user.is_authenticated() is True 2. Django's own login() seems to work, as request.user is set, request.session is set etc. 3. After the HttpResponseRedirect,

on update foreign key django edit doesn't work

2013-10-14 Thread Mirza Delic
I did manualy on db "ON UPDATE CASCADE", and when i update foreign key on db side it works, but when i try to change on django, it shows me error "list index out of range". How can i solve this? -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: How do I correctly encode filenames for use in https-response "content-disposition" header?

2013-10-14 Thread DJ-Tom
Good idea - I will try if this helps - for now I'm replacing spaces with underscores which works as well. Am Freitag, 11. Oktober 2013 16:29:32 UTC+2 schrieb ke1g: > > Not sure, but perhaps you need quotes around the file name to avoid having > the user agent terminate the filename on space?

Re: Looking for a way to detect changes in database records with low storage footprint

2013-10-14 Thread DJ-Tom
Thanks, this might be a way to go - since the .extra() method may create a dependency on the SQL dialect used I will have to be careful though ;-) Am Donnerstag, 10. Oktober 2013 19:01:32 UTC+2 schrieb Tom Evans: > > This is not a full solution, but you can select out extra fields (and > then

Re: AttributeError: 'module' object has no attribute '_handlerList'

2013-10-14 Thread Leonardo Giordani
Please give me the information I asked you, otherwise I cannot figure out what kind of problem you have. Are you using a virtualenv? In that case, can you post the list of packages you installed? If not, can you give details about the OS you are working on? Leonardo Giordani Author of The

Re: AttributeError: 'module' object has no attribute '_handlerList'

2013-10-14 Thread Darion Yaphet
Python 2.7.3 and Django is 1.5.3 .. 2013/10/14 Leonardo Giordani > Hi, are you using a virtualenv? In that case, can you post the list of > packages you installed? If not, can you give details about the OS you are > working on, Django version, and so on? > >

Re: AttributeError: 'module' object has no attribute '_handlerList'

2013-10-14 Thread Leonardo Giordani
Hi, are you using a virtualenv? In that case, can you post the list of packages you installed? If not, can you give details about the OS you are working on, Django version, and so on? Regards, Leo Leonardo Giordani Author of The Digital Cat My profile on About.me

Re: View for creating, listing, and deleting

2013-10-14 Thread Leonardo Giordani
Hi, you are submitting two different problems, if I correctly understand your question. The first is about Create Read Update Delete objects, the second is about code reuse. 1. CRUD >From the user's point of view you should create a page with the list of objects, then provide a way to