Override default fields in ModelForm

2016-03-21 Thread Ham Kibz
Here is the link to the question http://stackoverflow.com/questions/36124194/how-do-i-override-a-modelform-fields-attribute?noredirect=1#comment59888797_36124194 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group a

Django models choices

2016-03-21 Thread Amine Yaiche
Hi everyone, Given a field in a model that uses choices: CHOICES = ( (0, "choice_0"), (1, "choice_1") ) foo = models.IntegerField(choices=CHOICES) If i put a value other than 0 or 1, django will accept it. Is that possible that we instruct Django to accept only values that are mention

Re: Django models choices

2016-03-21 Thread Amandeep Singh
The choices don't enforce any default validation. But if you are populating the data from a http call then use ModelForm they show the invalid_choice error message on entering value other than defined choices On Mon, Mar 21, 2016 at 1:59 PM, Amine Yaiche wrote: > Hi everyone, > > Given a field i

Hey guys can anyone let me know where I can get some of good Django base web apps

2016-03-21 Thread Tibin Geo k k
I am looking for some good Django web applications, if we have any site to download some Django projects let me know -- 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 emai

Script para automatizar herramientas de desarrollo (automate-dev-tools)

2016-03-21 Thread David Pineda
Comparto script de bash qoue les permitirá automatizar las herramientas de desarrollo de django, https://gist.github.com/dpineiden/4c4a20a9cf0eabbe1754 Se ejecuta: source ~/automate_Django_dev.sh -f="PROJECT_FOLDER" -p='project' -s -g -rp -d Corre: -shell -server -gulp -git -sphinx-autodocumen

Who known best solution for resolve problem with building chart in Django power by Python3?

2016-03-21 Thread setivolkylany
I have method model, that will return pie chart on each instance model. But I so far not found normal django-apps for solving problem with creating chart on my data. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Re: Who known best solution for resolve problem with building chart in Django power by Python3?

2016-03-21 Thread Larry Martell
On Mon, Mar 21, 2016 at 4:57 PM, wrote: > I have method model, that will return pie chart on each instance model. But > I so far not found normal django-apps for solving problem with creating > chart on my data. I use plotly https://plot.ly/ -- You received this message because you are subscr

Re: Hey guys can anyone let me know where I can get some of good Django base web apps

2016-03-21 Thread Luis Zárate
https://www.djangopackages.com/ El lunes, 21 de marzo de 2016, Tibin Geo k k escribió: > I am looking for some good Django web applications, if we have any site to download some Django projects let me know > > -- > You received this message because you are subscribed to the Google Groups "Djang

DJANGO TUTORIAL

2016-03-21 Thread Anthony W Smith
When I follow django tutorial on the django site for the polls app I keep getting the error after runnig the python manage.py runserver command it says no modsule named my site. Please help Anthony -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Django models choices

2016-03-21 Thread Mike Dewhirst
On 21/03/2016 7:29 PM, Amine Yaiche wrote: Hi everyone, Given a field in a model that uses choices: | CHOICES =( Â Â (0,"choice_0"), Â Â (1,"choice_1") ) foo =models.IntegerField(choices=CHOICES) | If i put a value other than 0 or 1, django will accept it. Is that possible that we instruct

Re: server connection reset when click on localhost: Python error: wsgiref-> simple_server.py "noneType" object has no attribute split

2016-03-21 Thread amarshall
Figured it out.. In case anyone else was wondering or comes across this. I went into the wsgiref/simple_server.py file and commented out that line of code: /usr/lib/python2.7/wsgiref/simple_server.py", line 33, in close self.status.split(' ',1)[0], self.bytes_sent After commenting that out a

Architecture of multiple Sites

2016-03-21 Thread jorrit787
I'm wondering if I understand the Sites framework correctly... I'm building a forum-like project which will initially be accessible from mydomain.com . The project contains several apps like posts, members, ads, etc. Eventually I would like to create myseconddomain.com, which would have unique p

Pass these specific model objects to one template

2016-03-21 Thread Pemby
Person Model class Person( models.Model ): first_name = models.CharField( max_length=50 ) last_name = models.CharField( max_length=50 ) def __str__(self): return "{0} {1}".format( self.first_name, self.last_name ) View Function def getPersonData(request): currP

Re: Pass these specific model objects to one template

2016-03-21 Thread Pemby
All of the above seems to be working the way I expect it to. I can get the data I am after and pass it to a template. Now I would like take all objects, of the below model, and pass all these objects it to my '/signup.html/'* IN ADDTION* to what is being passed above so I can start* form *pr