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[
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
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
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:
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
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
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
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
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
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
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
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...;)
>
>
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
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
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
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
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
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
18 matches
Mail list logo