Django Client Put method Data Access from Request View

2013-06-07 Thread Edwin Lunando
Hi everyone, I'm building a REST API and i need to use the Client.put() method. For example response = self.client.put(reverse('api:update_user'), {access_token: '123123123123'}) When I run the test, I do not know where the data is placed. request.GET and request.POST is empty. request.META[

Re: properly passing form post data to get_context_data() in detailview

2013-06-07 Thread Greg Maruszeczka
I believe I've found my own solution and it seems more straightforward than I originally thought. I'm posting it here in the chance it saves someone else some time. When django told me there was no attribute 'object' it set me to look at where this attribute was supposed to be assigned and I fou

Re: LiveServerTestCase database has no tables...

2013-06-07 Thread Steve Hiemstra
Ignore the first sentence. That works because it creates a test MySQL database. Only when using the :memory: database does it fail. On Friday, June 7, 2013 3:17:29 PM UTC-4, Steve Hiemstra wrote: > > I've got a LiveServerTestCase and I'm not sure what's going on. I have to > include my normal

LiveServerTestCase database has no tables...

2013-06-07 Thread Steve Hiemstra
I've got a LiveServerTestCase and I'm not sure what's going on. I have to include my normal database settings for it to work. It still writes to the memory test database, but all the other tests use the normal one which breaks things. In LiveServerTestCase.setUpClass I put the following:

dictionary update sequence

2013-06-07 Thread Rene Zelaya
Hi, I am getting the following error when the server tries to load one of my templates and I am not sure what the problem is: dictionary update sequence element #0 has length 1; 2 is required The error occurs at the following line in my template: However, I thought I was already passing it b

What are the best examples of the use of Dynamic Models? (real situation)

2013-06-07 Thread enemytet
I learn dynamic models in Django but I don't understand when to use them. What are the best examples of the use of dynamic models? (real situation) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

Re: How send data to UpdateView from javascript. (Django 1.5)

2013-06-07 Thread Nikolas Stevenson-Molnar
I assume that MatterUpdateView is a subclass of the generic UpdateView class. If so, that class expects an object pk (id) or slug to be included as part of the URL pattern, and yours doesn't include either. Your URL pattern should look something more like: r"^manage/(?P\d+)/update/" _Nik On 6/6/2

how to make project template?

2013-06-07 Thread kl4us
Anyone know how to push changes upstream back to the template after having started the project? i'm in this snenario: 1) I start a project from pinax: $ virtualenv mysite $ source mysite/bin/activate (mysite)$ pip install Django==1.4.5 (mysite)$ django-admin.py startproject --template=https://g

Re: session_key varies

2013-06-07 Thread Wim Feijen
Hi Tom, Thanks for making this clear! Now I explicitly save the session and everything works as supposed. Thanks again! Wim On 3 June 2013 15:19, Tom Evans wrote: > On Mon, Jun 3, 2013 at 11:48 AM, Wim Feijen wrote: > > Hi, > > > > Is it normal that a session_key varies when a user is not

Re: database -> model -> charting

2013-06-07 Thread Jani Tiainen
On Fri, 7 Jun 2013 01:20:27 -0700 (PDT) tony gair wrote: > > > I would like to hear peoples opinions on third party django charting apps, > with various considerations. My primary consideration would ease of use by > a django noob. Thanks > You can quite easily use pretty much any JS chartin

Re: Is there any good tutorial on how to daemonize celery?

2013-06-07 Thread manuga...@gmail.com
Mike, with those settings removed I'm still getting the same errors. And I'm now trying to do everything from scratch in a new server without virtualenv. Could somebody please help with the last issue I need to fix? I raised a stack overflow question here - http://stackoverflow.com/questions/16970

Re: Some problems with Paginator

2013-06-07 Thread Marcin Szamotulski
We all make mistakes, don't worry :) Best regards, Marcin On 00:02 Fri 07 Jun , Federico Erbea wrote: > I'm really stupid, why i never think to the easiest way, never...I wrong > "{% for film in attore.film_set.all %}" because i had write "{% for film in > film_attore %}"...Sorry...;) > >

Re: database -> model -> charting

2013-06-07 Thread tony gair
Been trying out a couple over the last few hours. I have to say, the one you mention seems streets ahead of anything else, and its documented really well, which is the clincher for me. Many thanks for that super helpful info! On Friday, 7 June 2013 11:33:07 UTC+1, Christian Schulz wrote: > > Whe

Re: database -> model -> charting

2013-06-07 Thread Christian Schulz
When you have some experience with JS/Highcharts django-chartit might be interesting. Easy is relativ but I got it and I'm really not a django/JS pro. It's nice work, but dev progress seems fallen asleep. http://chartit.shutupandship.com/ I would like to hear peoples opinions on third part

Re: Understanding an existing big web application written in Django

2013-06-07 Thread Tom Evans
On Thu, Jun 6, 2013 at 8:00 PM, Javier Guerra Giraldez wrote: > On Thu, Jun 6, 2013 at 6:46 PM, Sam Walters wrote: >> find . -name '*.py' -exec grep -E -H -n 'import LocationAirfieldLookup' '{}' >> \; -print > > > far faster and better use of grep's capabilities: > > grep -n 'import LocationAirfi

database -> model -> charting

2013-06-07 Thread tony gair
I would like to hear peoples opinions on third party django charting apps, with various considerations. My primary consideration would ease of use by a django noob. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Re: getting information from a many to many model from user

2013-06-07 Thread tony gair
That would work nicely if I had done my own user management app but I lazily used Userena. I think I need to override a function of their profile form so it only displays fields if the superuser or a designated boolean in same said profile is set to true:) Do you know how I would over ride a cla

Re: Some problems with Paginator

2013-06-07 Thread Federico Erbea
I'm really stupid, why i never think to the easiest way, never...I wrong "{% for film in attore.film_set.all %}" because i had write "{% for film in film_attore %}"...Sorry...;) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr