wsgi errors lead to 500 launching django on heroku

2015-01-01 Thread Malik Rumi
I have a wsgi problem I am hoping you can help me with. I am running Django1.7 with gunicorn 19.1.1 and wsgiref 0.1.2. I am trying to get this to run on Heroku. The last error was that it could not find the template home.html and that there was a wsgi error. I added TEMPLATE_DIR to my setting

Re: Trying out django your first app.

2015-01-01 Thread Collin Anderson
Hi, That error means django rendered a page, but the connection to the browser was broken. That could happen because you clicked a link/button more than once, or pressed "stop", or somehow canceled the request on the browser end. Collin On Thursday, January 1, 2015 3:55:11 AM UTC-5, Siddharth

Re: accessing input tag values(which are created dynamically) from html in backend(python) using post method

2015-01-01 Thread Collin Anderson
Hi, It looks like every row will call the same "function9()" when saving? Should that be called "function{{result.0}}"? Ideally, the javascript function itself could figure out which row/form is calling it and be able to submit the correct . Collin On Wednesday, December 31, 2014 5:55:59 AM U

Re: django + OAuth2: Sessions

2015-01-01 Thread Collin Anderson
Hi, You could try asking on the python-social-auth email list if you haven't. https://groups.google.com/forum/?fromgroups#!forum/python-social-auth Collin On Tuesday, December 30, 2014 7:53:16 AM UTC-5, t.bakogiannis wrote: > > Hi everyone, > > I am using python-social-auth to implement login v

Re: modelformset question - interspersing extra forms among existing forms

2015-01-01 Thread Collin Anderson
Hi, Your case is complicated enough that I'd actually recommend not using formsets here and processing a list of plain ModelForms yourself in the view. I bet formsets will ending out getting in your way. Here's a some messy code: class EntryForm(forms.ModelForm): race_number = Entry._meta.

Re: Optimizing admin change view with inlines

2015-01-01 Thread Collin Anderson
Hi Petros, I think it's because "value_from_object" only passes the primary key of the object and then raw_id_field re-queries it. https://github.com/django/django/blob/40ccef16/django/contrib/admin/widgets.py#L195 https://github.com/django/django/blob/40ccef16/django/forms/models.py#L151 https:

Re: Trying out django your first app.

2015-01-01 Thread Vijay Khemlani
For me the development server tends to throw that error at random, but does render the page correctly On Thu, Jan 1, 2015 at 2:22 PM, Joel Goldstick wrote: > > > On Thu, Jan 1, 2015 at 3:55 AM, Siddharth Shah > wrote: > >> Actually I was going through the first app example, >> https://docs.djan

Re: create unmanaged model to oracle view/synonym

2015-01-01 Thread Edgar Gabaldi
Fabio, Django ORM support Oracle Database[1]. If you want connect an existing oracle database, i recomend you see the inspectdb management command. [1] https://docs.djangoproject.com/en/1.7/ref/databases/#oracle-notes [2] https://docs.djangoproject.com/en/1.7/howto/legacy-databases/ On Thu, Ja

Re: FormSets with arbitary number of forms

2015-01-01 Thread Edgar Gabaldi
The formset allow you create many instances of an object. What you need is the inline formset. When you create a Album, you can create one or more songs. On Wed, Dec 31, 2014 at 4:59 PM, Some Developer wrote: > I've been reading the documentation on FormSets and must admit that I am a > bit conf

Re: Trying out django your first app.

2015-01-01 Thread Joel Goldstick
On Thu, Jan 1, 2015 at 3:55 AM, Siddharth Shah wrote: > Actually I was going through the first app example, > https://docs.djangoproject.com/en/1.7/intro/tutorial03/ > On this particular part I am facing problem while executing > http://localhost:8000/polls/ > > Please find the attachment to see

Re: create unmanaged model to oracle view/synonym

2015-01-01 Thread Shai
Hi Fábio, On Wednesday, December 31, 2014 6:05:05 PM UTC+2, Fabio Caritas Barrionuevo da Luz wrote: > > Hello, is possible with Django 1.7 create a unmanaged Django model for > Oracle database View? > > > Yes. In your model's Meta, set managed to False and db_table to the view name: class MyUn

Trying out django your first app.

2015-01-01 Thread Siddharth Shah
Actually I was going through the first app example, https://docs.djangoproject.com/en/1.7/intro/tutorial03/ On this particular part I am facing problem while executing http://localhost:8000/polls/ Please find the attachment to see the exact error. -- You received this message because you are