Django signals to all connections?

2013-08-18 Thread Gerd Koetje
Is is possible to start an event at all connected users with signals? If this is possible can someone show me an example of it. Greetz Gerd -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving email

Re: How do I create a script to fill in django admin login form and submit?

2013-08-18 Thread Kelvin Wong
You were missing a key. The following works on my machine. K --- import requests login_url = "http://192.168.0.21/admin/login/"; client = requests.session() client.get(login_url) csrftoken = client.cookies['csrftoken'] login_data = {'username':'jim', 'password':'beam', 'this_is_the_login

Re: tests failing/throwing errors - not sure where to start

2013-08-18 Thread Kelvin Wong
My advice to you is to just ignore it all and focus on the tests in your application. For example, if your app that you wrote yourself is called "amazingapp" then you test only that app thus. --- $ python manage.py test amazingapp --- And it will say something similar to this... --- Creati

Re: How do I create a script to fill in django admin login form and submit?

2013-08-18 Thread 7equivalents
Ok, I've gotten further. I have confirmed the problem was related to the csrf token. This is my new code: client = requests.session() # Retrieve the CSRF token first client.get(URL) # sets the cookie csrftoken = client.cookies['csrftoken'] login_data = dict(Username='jim', Password='beam, csrf

Re: How do I create a script to fill in django admin login form and submit?

2013-08-18 Thread 7equivalents
Ok, I've gotten further. I have confirmed the problem was related to the csrf token. This is my new code: client = requests.session() # Retrieve the CSRF token first client.get(URL) # sets the cookie csrftoken = client.cookies['csrftoken'] login_data = dict(Username='jim', Password='beam, csrf

Re: How do I create a script to fill in django admin login form and submit?

2013-08-18 Thread 7equivalents
Well this is where I'm at. I have used the requests package to try and request the Django Admin login page and submit the username and password. However, when I do this I get a 403 error. I have tried to turn off the dependency for csrf tokens in the login view by using the csrf_exempt,but thi

pinyin.urlify not mapping characters

2013-08-18 Thread lesssugar
Hi, In my app I'm trying to generate friendly user-profile URL (first name + last name) using the following module: http://pydoc.net/Python/redsolutioncms.django-hex-storage/0.1.1/pinyin.urlify/ However, there is no full char mapping done when I run my test code (notice: I changed the function

Re: Greyed out models in Django Admin

2013-08-18 Thread huw_at1
Hi, I'm using the latest Apache server on production. The DEBUG setting is the standard setting that exists within the settings.py file. I'll check what write permissions the production database user has. Thanks On Thursday, 31 January 2013 22:56:05 UTC, huw_at1 wrote: > > Hi, > > Using Djang

Re: upgrading to 1.5.1

2013-08-18 Thread Larry Martell
On Sun, Aug 18, 2013 at 2:51 AM, Harjot Mann wrote: > Hello Everyone > Currently I am using django version 1.4.5 and I want to upgrade it to > 1.5.1, I have an app in django. I want to know that what problems will > I face while upgrading to that version. I have no idea about the > features of new

Re: upgrading to 1.5.1

2013-08-18 Thread Satinderpal Singh
On Sun, Aug 18, 2013 at 12:21 PM, Harjot Mann wrote: > Hello Everyone > Currently I am using django version 1.4.5 and I want to upgrade it to > 1.5.1, I have an app in django. I want to know that what problems will > I face while upgrading to that version. I have no idea about the > features of ne

Re: upgrading to 1.5.1

2013-08-18 Thread Deepak Sharma
On Sun, Aug 18, 2013 at 12:21 PM, Harjot Mann wrote: > Hello Everyone > Currently I am using django version 1.4.5 and I want to upgrade it to > 1.5.1, I have an app in django. I want to know that what problems will > I face while upgrading to that version. I have no idea about the > features of ne

Senior Python/Django Dev in London (£5000-6000 per month)

2013-08-18 Thread George Kazarian
Based in London, *The Recipe Kit* is a tech startup with a set mission of changing the way people currently eat and cook at home. We believe that all traditional shopping and cooking models are quite outdated and create a lot of unnecessary stress. We are currently experiencing a growing

Re: upgrading to 1.5.1

2013-08-18 Thread Lachlan Musicman
Also, you should be upgrading to 1.5.2 - there's a serious security update. cheers L. On 18 August 2013 17:08, Mike Dewhirst wrote: > On 18/08/2013 4:51pm, Harjot Mann wrote: >> >> Hello Everyone >> Currently I am using django version 1.4.5 and I want to upgrade it to >> 1.5.1, I have an app in

Re: message_set filter

2013-08-18 Thread Karl Arunachal
Suppose, A is the request.user. And 'msg' has all the mesasges sent by the user A and all the messages that A has received. Now how will I separate the messages for each user from 'msg', to make it like an Inbox for A. I think I have made it clear now. If not, please ask again. Thank you. On Sun,

Re: Foreign key to different model types

2013-08-18 Thread Omar Abou Mrad
On Sun, Aug 18, 2013 at 4:59 AM, Kristofer wrote: > Hello, > > I remember seeing this some time ago, but can't remember what it is called > or where it is in the documentation. > > contenttypes framework https://docs.djangoproject.com/en/1.5/ref/contrib/contenttypes/ > I am looking for the fe

Re: message_set filter

2013-08-18 Thread Avraham Serour
so what's the question? On Sat, Aug 17, 2013 at 7:52 AM, Karl Arunachal < kakararunachalserv...@gmail.com> wrote: > Hello, > I have a model for messaging between the users. > > models.py: > > class Message(models.Model): > description = models.TextField() > date_added = models.DateTimeFi

Re: upgrading to 1.5.1

2013-08-18 Thread Mike Dewhirst
On 18/08/2013 4:51pm, Harjot Mann wrote: Hello Everyone Currently I am using django version 1.4.5 and I want to upgrade it to 1.5.1, I have an app in django. I want to know that what problems will I face while upgrading to that version. I have no idea about the features of new version. Any major