Re: In the Admin how do I display the target data instead of the m2m intermediary data

2013-10-01 Thread Mike Dewhirst
On 2/10/2013 10:20am, Russell Keith-Magee wrote: On Wed, Oct 2, 2013 at 6:19 AM, Mike Dewhirst > wrote: Consider a bunch of substances and a bunch of papers written by various researchers. Some of the papers apply to more than one

Re: In the Admin how do I display the target data instead of the m2m intermediary data

2013-10-01 Thread Russell Keith-Magee
On Wed, Oct 2, 2013 at 6:19 AM, Mike Dewhirst wrote: > Consider a bunch of substances and a bunch of papers written by various > researchers. Some of the papers apply to more than one substance and a > substance can have multiple papers. Here are the models ... > > class

Re: Best practice for server-generated downloads?

2013-10-01 Thread Russell Keith-Magee
On Tue, Oct 1, 2013 at 9:49 PM, DJ-Tom wrote: > Hi, > > I need to create database report downloads in Excel format (via > xlsxwriter) and I'm wondering if there is any standard or best practice as > to where those downloads should be located. > > Especially helpful would be

In the Admin how do I display the target data instead of the m2m intermediary data

2013-10-01 Thread Mike Dewhirst
Consider a bunch of substances and a bunch of papers written by various researchers. Some of the papers apply to more than one substance and a substance can have multiple papers. Here are the models ... class Paper_Substance(models.Model): paper = models.ForeignKey('Paper', null=True,

Re: Using unique_together with foreign key fields which may be None

2013-10-01 Thread Thomas Lockhart
On 10/1/13 6:36 AM, Derek wrote: We encountered the same problem for a complex model ... we ended up defining "acceptable" default values that are used instead of None/NULL, but essentially mean the same thing to the user. (We are using MySQL which adopts the same approach as Postgresql - I

Re: how to start learning Django in Windows Platform

2013-10-01 Thread Lee
You know Python already? If not, personally I'd recommend looking at that a little first before jumping feet first into Django. The python docs are pretty good and I liked Learn Python the Hard Way. Thanks On Tuesday, 1 October 2013 16:42:59 UTC+1, Ahsan Ahmad wrote: > > Hi, > This is Ahsan.

Re: Django-cart. How to run method add_to_cart?

2013-10-01 Thread Ricardo Kamada
you already helped me a lot =) Leonardo looks just http://dpaste.com/1402408/ On line 20 I pass a value of fixed amount in the template. How would get the amount in input dynamically? Abs [] s Ricardo 2013/10/1 Leonardo Giordani > Ricardo, > > I think the example

Re: how to start learning Django in Windows Platform

2013-10-01 Thread Nigel Legg
The tutorial on the website. Cheers, Nigel 07914 740972 On 1 October 2013 16:42, Ahsan Ahmad wrote: > Hi, > This is Ahsan. and i am brand fresh programmer in Django. Please guide the > easiest way to start learning Django. > > Thank You > > -- > You received this message

Re: Loading all js and css at login

2013-10-01 Thread Larry Martell
On Tue, Oct 1, 2013 at 9:23 AM, Bill Freeman wrote: > While the browser may cache this stuff, images too, from the browser's > point of view, if you are on a different page, you don't have access to > stuff the login page loads. > Ah, thanks. I did not know that. I put back

how to start learning Django in Windows Platform

2013-10-01 Thread Ahsan Ahmad
Hi, This is Ahsan. and i am brand fresh programmer in Django. Please guide the easiest way to start learning Django. Thank You -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

Re: Loading all js and css at login

2013-10-01 Thread Bill Freeman
While the browser may cache this stuff, images too, from the browser's point of view, if you are on a different page, you don't have access to stuff the login page loads. What does help is to always use exactly the same URL for the static media, in which case when a page calls it out, the browser

Current session lost when redirecting via facebook oauth2

2013-10-01 Thread Don Graham
Hi I'm running into a problem with django loosing the current session, when I redirect an AnnonymousUser to an facebook's oauth. I set a session variable before sending a user to facebook to login via oauth. When they get redirected back to my site, the session key changes and the data is

Loading all js and css at login

2013-10-01 Thread Larry Martell
I would like to load all the javascript and css files that my app needs when the user logs in. So I added lines like this to my login.html: But when I go the pages that need these (that used to include them in their templates), they don't seem to be available. I don't get any errors, but it's

Re: Have browsers broken post-redirect-get? best practice now?

2013-10-01 Thread antialiasis
You should still be able to use the back button; it just shouldn't try to post the data again if you do so. Are you getting a prompt about resending post data, or are you just talking about being able to use the back button at all? If the latter, that's exactly what should happen. Breaking the

Best practice for server-generated downloads?

2013-10-01 Thread DJ-Tom
Hi, I need to create database report downloads in Excel format (via xlsxwriter) and I'm wondering if there is any standard or best practice as to where those downloads should be located. Especially helpful would be if there was a portable way of managing the file system location and web

Re: Dealing with redundant JS inclusions at template levels

2013-10-01 Thread David Cox
The second StackOverflow answer is probably your best bet. Assuming your looking for a solution that avoids editing any included app templates, you'd want to use the solution that HTML5 Boilerplate uses, which is a Javascript conditional inclusion: window.jQuery || document.write('