Re: Problem with a view - MultiValueDictKeyError

2015-12-17 Thread Galia Ladiray
We don't have your UserCreationForm, but usually those things have password1 and password2 fields, and no "password" On Thursday, December 17, 2015 at 10:16:33 PM UTC+1, Dariusz Mysior wrote: > > I have this view and I have a bug why? > > def index(request): > # jezeli formularz coś wysłał >

Re: Accessing view from javascript

2015-12-17 Thread Galia Ladiray
I don't exactly understand what you are trying to do (what are you switching on? must you do this in JavaScript?) But in order to load server content you can use either JQuery Get method https://api.jquery.com/jquery.get/ Where you will create an empty div in your HTML, and put the server respo

Re: Bug in Django? It throws server error when context processor raises Http404

2015-06-09 Thread Galia Ladiray
Maybe it does not find your custom 404.html (and gives you a 500 of not finding it)? Try to use this template elsewhere with debug=True, just to see On Tuesday, June 9, 2015 at 1:22:44 PM UTC+2, Alexey Grigoriev wrote: > > Django doesn't catch django.http.Http404 exception in my context proc

Re: Having problem in assigning urls to different views

2015-05-29 Thread Galia Ladiray
You need the second URL to be /hello/template/ and then it the article.urls you add url(r'^template/$, views.hello_template,name='hello_template') On Friday, May 29, 2015 at 12:05:47 PM UTC+2, akshat wrote: > > I have a project - 'django_test'.django_test root folder contains one app > - 'artic

Re: change the style of the forms been render in the httml?

2015-05-21 Thread Galia Ladiray
What you want to do is to add a class attribute to your django widget using attrs so that they will be rendered with this class, then to add the style you want to this class in your CSS section, This doc shows how to do it: https://docs.djangoproject.com/en/1.8/ref/forms/widgets/ You can of cour

Re: Cannot resolve keyword -> on reverse ForeignKey after upgrade to 1.8

2015-05-19 Thread Galia Ladiray
Schneider wrote: > > My guess is a select_related('follow') call somewhere is causing the > issue. The behavior for select_related() changed in 1.8. > > Can you post the entire trace back? > > -James > On May 18, 2015 4:49 PM, "Galia Ladiray" > > wro

Re: Multiple databases

2015-05-19 Thread Galia Ladiray
It depends what you need, We use redis for non sql, and postgres for sql, You can use an id field to have a link between them. Django 1.8 has a support for postgres specific fields like HStore, maybe this is good enough for you? Galia On Tuesday, May 19, 2015 at 2:40:17 AM UTC+2, Roger Dunn wrot

Re: How to change type of field in model, when database is already populated ?

2015-05-18 Thread Galia Ladiray
>From django 1.7 it is done by the migration Change your Models class run makemigrations, it will recognise the change and create a migration file run migrate command, which will alter the database On Saturday, May 16, 2015 at 3:26:32 PM UTC+2, mangu rajpurohit wrote: > > Hi, > > I am new to Dja

Cannot resolve keyword -> on reverse ForeignKey after upgrade to 1.8

2015-05-18 Thread Galia Ladiray
be highly appreciated Thanks Galia Ladiray-Weiss -- 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, send an email to django-users+unsubscr...@googlegroups.com. To post t