javascript translation catalog and horizon

2016-11-28 Thread John Calcote
Hi all - I'm working with an open source package - virtual storage manager - VSM (https://github.com/01org/virtual-storage-manager) - that's based on Django and Openstack Horizon framework. Horizon is based on Django, and VSM chose to use Horizon rather than straight Django for Horizon's

Re: How does django pass data through post?

2016-11-28 Thread Vimarsh Chaturvedi
Hey Jordan, Please share your views.py as well. On Tuesday, November 29, 2016 at 6:04:19 AM UTC+5:30, Jordan W wrote: > > Hi, > > I have been working on a small project for myself and some friends, and I > seem to have hit a hitch in getting it to work as expected. > > In my detail view, I

related_name for two models which have same name but belong to different app

2016-11-28 Thread Xueguang Yang
Hi: I am a little confused about this section of django official docs: Be careful with related_name when you are using related_name in an abstract base class (only), part of > the name should contain

How does django pass data through post?

2016-11-28 Thread Jordan W
Hi, I have been working on a small project for myself and some friends, and I seem to have hit a hitch in getting it to work as expected. In my detail view, I have a small simple form: {% csrf_token %} Prepare My main list view and detail view are class based views, with

Fixing "Address in use" errors when using StaticLiveServerTestCase subclasses whose setUpClass() fails

2016-11-28 Thread David Foster
I have observed that if I have a subclass of StaticLiveServerTestCase that raises an exception in its custom setUpClass() method then the tearDownClass() method will not be called. Consequently the LiveServerThread will not be cleaned up properly, causing all following

dynamic formset with Jquery doesn't save dynamically created form data

2016-11-28 Thread Hansong Li
down votefavorite So I have set up the following codes for sample from followed by inline formset of its foreign key, sample detail. I also added some dynamic

Re: Model's Foreign Key Id Attribute not being updated

2016-11-28 Thread Michael Viveros
Thanks for the detailed responses, they helped clarify things a lot. I will try the first option you mentioned about creating the Questions first (and saving them) and then creating the Choices using the Questions that were just created. My back-up plan will be to use a different pk field for

RE: user object not available in template

2016-11-28 Thread Matthew Pava
Render_to_response no longer accepts a context instance parameter (or a “dirs” parameter). https://docs.djangoproject.com/en/dev/releases/1.10/ I encourage you to read this document before performing an upgrade: https://docs.djangoproject.com/en/dev/howto/upgrade-version/ In particular, read

Re: Mysql GeoDjango Distance search

2016-11-28 Thread bart
Het ip adres vertelt ongeveer waar iemand woont.  Groet,Bart Wysłano z telefonu Samsung Oorspronkelijk bericht Van: Sergiy Khohlov Datum: 27-11-16 20:57 (GMT+01:00) Aan: django-users Onderwerp: Re: Mysql GeoDjango Distance

Re: Model's Foreign Key Id Attribute not being updated

2016-11-28 Thread C. Kirby
On Monday, November 28, 2016 at 3:12:37 PM UTC+2, Michael Viveros wrote: > > Thanks for the reply Kirby. > > I understand that the Question's pk is null when you pass in the Question > to the Choice constructor. But when you save the Choice, the Question was > saved earlier so the Question's

Re: Model's Foreign Key Id Attribute not being updated

2016-11-28 Thread Michael Viveros
Thanks for the reply Kirby. I understand that the Question's pk is null when you pass in the Question to the Choice constructor. But when you save the Choice, the Question was saved earlier so the Question's pk is not null. But the Choice's question_id attribute (representing the Question's

Re: Model's Foreign Key Id Attribute not being updated

2016-11-28 Thread C. Kirby
The reason it isn't working in your first example is because the pk gets assigned to the object when it is saved to the database. When you supply question=q to the choice, it is (correctly) getting a pk of null because q has not been saved. On Saturday, November 26, 2016 at 2:56:37 AM UTC+2,