Re: beginner . problem simple form.

2016-08-30 Thread Jordi Fernandez
e, 21 agost de 2016 15:41:07 UTC+2, ludovic coues va escriure: > > Do you have any message in the console where you run "python manage.py > runserver" ? > > 2016-08-21 12:16 GMT+02:00 Jordi Fernandez >: > > hi, > > > > I have my firts application

Re: beginner . problem simple form.

2016-08-30 Thread Jordi Fernandez
the second is a comment El dimarts, 30 agost de 2016 18:56:39 UTC+2, Jordi Fernandez va escriure: > > > yes , we are test > El dilluns, 22 agost de 2016 22:38:39 UTC+2, ludovic coues va escriure: >> >> The second form tag is in an html comment. Everything insid

Re: beginner . problem simple form.

2016-08-30 Thread Jordi Fernandez
have two form tags in your html? > > > > On Sun, Aug 21, 2016 at 10:40 AM, ludovic coues > wrote: > >> > >> Do you have any message in the console where you run "python manage.py > >> runserver" ? > >> > >> 2016-08-21 12:16 GMT+02:00

Re: simple form, beginner

2016-08-30 Thread Jordi Fernandez
sorry a error es undefined and other is error loading page (jquery) El dimarts, 30 agost de 2016 17:44:00 UTC+2, Jordi Fernandez va escriure: > > > {% > csrf_token %} > > > > {% csrf_token > %} > > > the two instrucctions not working, my view not received

simple form, beginner

2016-08-30 Thread Jordi Fernandez
{% csrf_token %} {% csrf_token %} the two instrucctions not working, my view not received nothing post i want a form with the same view. remember I am Beginner! thank you def crearasistenciaclasse(request): user = 6 form = CrearasistenciaclasseForm(my_arg=user) if reques

beginner . problem simple form.

2016-08-21 Thread Jordi Fernandez
hi, I have my firts application django it's fine. . But! I have a problem with a simple form. I think this is a problem the my experience of all entorn ( html, form action, ..) the problem is when a submit my form is a eror -> ERROR LOADING PAGE if I test my script I not received a method po

Re: Persistent DB connections and WSGI

2015-12-22 Thread Jordi
overhead of re-establishing connections, but then if for some reason threads get killed abrubtly by WSGI and restarted, I may run out of max_connections if they didn't get closed properly? Or is this not a concern? Thanks Jordi -- You received this message because you are subscribed to the G

Re: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-07 Thread jordi . gutierrez . hermoso
On Wednesday, October 7, 2015 at 10:16:30 AM UTC-4, Carl Meyer wrote: > > You should be aware, though, that specifically in the case of the > django.contrib app tests, we make no promise that they will pass under > your project's configuration, > That's fine. I just want to make sure *we *didn'

Re: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-07 Thread jordi . gutierrez . hermoso
Okay, I'll try grabbing the old test runner from git, thanks. On Wednesday, October 7, 2015 at 8:38:40 AM UTC-4, Tim Graham wrote: > > Copying the old test runner from an old version of Django seems like a > fine solution. I thought someone might have published it on PyPI, but I > couldn't find

Re: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-07 Thread jordi . gutierrez . hermoso
No, the new test runner does not run any 3rd party apps not in my project, and it does not run django.contrib either. On Wednesday, October 7, 2015 at 2:06:08 AM UTC-4, Gergely Polonkai wrote: > > I'm not sure I understand what you want to achieve. I use 1.8 and it runs > all tests for all apps

Re: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-06 Thread jordi . gutierrez . hermoso
I want the old behaviour of running all tests in INSTALLED_APPS by default Actually, I don't care too much if this is accomplished by grabbing the old django.test.simple.DjangoTestSuiteRunner from git history or by any other means. On Tuesday, October 6, 2015 at 4:24:00 PM UTC-4, Gergely Polon

Re: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-06 Thread jordi . gutierrez . hermoso
Hey, sorry to respond to such an old thread, but now that 1.8 completely removed the old test runner, I am wondering if there's any way to get it back. I don't want to explain why I want it back. Please don't tell me I don't want it. So, starting from the axiom that I want it back, how should

Models.clean() how to raise ValidationError WITH error_code and show field_based errors in the Form-Template?

2015-08-02 Thread jordi collell
An easy way is to test that the rendered form has the error message raised suring rhe validation. -- 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+u

Re: Restricting CreateView

2015-08-02 Thread jordi collell
I think you don't need extra packages for the task. You can overwrite the dispatch to validate permissions on get and post create view. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

BaseListView's get_context_data is missing kwargs?

2015-08-02 Thread jordi collell
Not sure if i'm understanding what are you saying. But kwargs on get.. Are stored on a object property. Self.kwargs (prior the dispatch) method. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

BaseListView's get_context_data is missing kwargs?

2015-08-02 Thread jordi collell
Not sure if i'm understanding what are you saying. But kwargs on get.. Are stored on a object property. Self.kwargs (prior the dispatch) method. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

DB Design question

2015-07-31 Thread jordi collell
Hi all! I have to store spreadsheet info on a db. Some kind of quotes where the user can store distinct prices for every zone. After modeling the data, i have a Cell like row. (related to a zone, and with a quantity field).. something like: zone1 1 100 zone1 2 99 zone1 3 98 Every zone

GeometryCollectionField with MultiPolygon

2011-02-18 Thread jordi
I have a class with a GeometryCollectionField, when I try to save a MultiPolygon object in the GeometryCollectionField I always get a NULL value in the GeometryCollectionField. Other types of objects saved in the GeometryCollectionField work fine. Somebody knows whats happening? from django.contr

index for fields with unique=True and db_index True

2010-11-05 Thread jordi
When I create the following model I get an index for field2 with syndb or sqlindexes. Why doesn't it create an index for field3? from django.db import models class Entitat(models.Model): field1 = models.CharField(max_length=4, unique=True) field2 = models.CharField(max_length=4, db_index=T

Re: making slug field unique

2006-01-17 Thread Jordi Funollet
ings to the data when integrating with other applications. This restriction should be on database, shouldn't it? -- ###### ### Jordi Funollet ### http://www.terraquis.net