Drop foreign key, add another - keep data

2012-11-30 Thread Peter Edström
Hello, I'd like to drop a ForeignKey-field and add another using south (mysql database), but it won't work. Googling it takes me not far, but it seems to be a problem with dropping foreign key constraints with InnoDB. What is the recommended way ot dropping a ForeignKey-field, and adding anothe

Re: Retrieve current user id in urls.py

2012-11-28 Thread Peter Edström
Thank you. It's quite logical when you know it. :-) > This isn't something you do in the urlconf. You do that in your view, > where the current user is available already as `request.user`. > -- > DR. > -- You received this message because you are subscribed to the Google Groups "Django users

Retrieve current user id in urls.py

2012-11-27 Thread Peter Edström
Hello, I've set up a user profile according to thisand now I'm trying to access the id of the currently logged in user in my urls.py, like this: # urls.py > from django.contrib.auth.decorators impo

Re: Request for inspiration on business system

2012-11-21 Thread Peter Edström
*Lachlan Musicman:* You recommend using virtualenv. Why and in what scenarios? If I understand it correctly, virtualenv sets up a virtual python environment galvanically isolated from the rest of the system and I see how this let you go crazy and experiment without risking anything. Is this the

Request for inspiration on business system

2012-11-20 Thread Peter Edström
Hello, A short background: I'm about to develop a web-based portal for my friend's company that deals with cleaning services of all kind, and I want to try out Django for this. In brief, the portal should consist of a database with data on employees, customers, contracts, work orders... and upon