data type

2020-01-10 Thread Soumen Khatua
Hi Folks, I'm sending the json data from postman. But Inside my python code when I'm doing: Suppose my json data: *{ "name" : "soumen" }* *data = request.data* *print(type(data)) # * *How it is possible without using serializer, how data converted automatically?* Thank You Regards, Soumen -

Re: Custom model field data type

2018-05-07 Thread JAGADESH M
I created a custom PositiveBigIntegerField data type in models.py, which > is a sub class of the BigIntegerField. I registered the model where the > PositiveBigIntegerField is used in the admin site. When I try to add een > item using the admin site, the 'add' button raises an error, telli

Custom model field data type

2018-05-07 Thread 'Berry' via Django users
I created a custom PositiveBigIntegerField data type in models.py, which is a sub class of the BigIntegerField. I registered the model where the PositiveBigIntegerField is used in the admin site. When I try to add een item using the admin site, the 'add' button raises an error,

Re: Calling Oracle Stored Procedures with REF CURSOR I get "unhandled data type CursorDebugWrapper"

2014-10-05 Thread Enyert Viñas
Hi Néstor, Please provide us your code, so we can help you with this issue. Best regards 2014-10-05 11:38 GMT-04:30 Néstor Boscán : > Hi > > I'm trying to use DJango to call Oracle Stored Procedures with REF CURSOR. > When I execute it I get: "unhandled data type CursorD

Calling Oracle Stored Procedures with REF CURSOR I get "unhandled data type CursorDebugWrapper"

2014-10-05 Thread Néstor Boscán
Hi I'm trying to use DJango to call Oracle Stored Procedures with REF CURSOR. When I execute it I get: "unhandled data type CursorDebugWrapper". It looks like cx_Oracle doesn't like the DJango cursor wrapper. Regards, Néstor -- You received this message because you a

Re: Django Database Data Type

2014-05-05 Thread Brendan Edwards
Thanks a lot for the reply! It got me thinking and I changed the code around a bit and was able to get the result I was looking for. What I did in the end was: teecolor = GolfCourseTees.objects.filter(Course_Name='course').values() tee1 = teecolor[0] and in the HTML i used {{ tee1.hole1_distanc

Re: Django Database Data Type

2014-05-05 Thread Mike Dewhirst
On 5/05/2014 5:39 PM, Brendan Edwards wrote: Hi, I have just started learning Django (been flip flopping between meteor and django, cant decide which to use..) and I am fairly new to web development in general. Basically, I have a query where I am using the code "teecolor = GolfCourseTees.objec

Django Database Data Type

2014-05-05 Thread Brendan Edwards
Hi, I have just started learning Django (been flip flopping between meteor and django, cant decide which to use..) and I am fairly new to web development in general. Basically, I have a query where I am using the code "teecolor = GolfCourseTees.objects.values('Tee_Color').filter(Course_Name=co

Re: Geometry vs Geography Data Type for PostGIS PostgreSQL database

2012-10-21 Thread Maarten Japink
I would use geography. You never know from where the user is coming, so you don't know the limitations of the projection. If you need extra functionality you can always transform to the most appropriate projection. 2012/10/21 JJ Zolper > Hello, > > So I've been researching the pros and cons fo

Geometry vs Geography Data Type for PostGIS PostgreSQL database

2012-10-20 Thread JJ Zolper
Hello, So I've been researching the pros and cons for my application with regards to geometry or geography data types for my database. I was reading here: http://postgis.refractions.net/documentation/manual-1.5/ch04.html#PostGIS_GeographyVSGeometry I saw that: "The new GEOGRAPHY type allows

Re: How postgres data type "real" is represented in Django?

2012-06-15 Thread IgorS
05:18:40 UTC-4, akaariai wrote: > > On 12 kesä, 18:50, IgorS wrote: > > Hi ALL! > > > > It seems that there is no class in Django models that represents 4-byte > > data type "real" in postgres. I looked into > > django\db\backends\postgresql_psycopg2\

Re: How postgres data type "real" is represented in Django?

2012-06-14 Thread akaariai
On 12 kesä, 18:50, IgorS wrote: > Hi ALL! > > It seems that there is no class in Django models that represents 4-byte > data type "real" in postgres. I looked into > django\db\backends\postgresql_psycopg2\creation.py but could not find it > there. The only choice s

How postgres data type "real" is represented in Django?

2012-06-12 Thread IgorS
Hi ALL! It seems that there is no class in Django models that represents 4-byte data type "real" in postgres. I looked into django\db\backends\postgresql_psycopg2\creation.py but could not find it there. The only choice seems to be FloatField, which represents "double precisi

Checking inputs based on a specified data type

2011-06-28 Thread Django user
Hi, I have a field in my database which contains data type as a text. Note: these data types will be used when filling up information. How to based my input in my specified data type as an Admin control? For example, i have a category of payment and i choose on another field is "numeri

Re: Is there any way to create char data type in django.

2010-04-21 Thread Huang Stanley
> > I try to find all fields but only IPAddressField is char data type, > > but it's a fix-length char data type for 15 characters. > > > > Is there any field that I can use for this purpose. > > > > PS. I use django 1.2 beta 1 on Ubuntu. > &g

Re: Is there any way to create char data type in django.

2010-04-21 Thread derek
On Apr 20, 1:31 pm, Huang Stanley wrote: > Hi all: > > I try to find all fields but only IPAddressField is char data type, > but it's a fix-length char data type for 15 characters. > > Is there any field that I can use for this purpose. > > PS. I use django 1.2 bet

Is there any way to create char data type in django.

2010-04-20 Thread Huang Stanley
Hi all: I try to find all fields but only IPAddressField is char data type, but it's a fix-length char data type for 15 characters. Is there any field that I can use for this purpose. PS. I use django 1.2 beta 1 on Ubuntu. Thanks for your kindly assistance. regards, Stanley Huang --

Re: Money or Currency data type

2005-09-18 Thread rapto
Please, never a float. Use Decimal Type. http://www.python.org/peps/pep-0327.html

Re: Money or Currency data type

2005-09-17 Thread Milton Waddams
if it had a currency associated with it then you could do all sorts of cool currency conversions/more finance oriented apps. Of course you could always just use a float and have a seperate currency field. > That's fine -- that's what we've always done. I'm not sure what the > point of a DollarFi

Re: Money or Currency data type

2005-09-16 Thread Adrian Holovaty
On 9/16/05, Matthew Marshall <[EMAIL PROTECTED]> wrote: > > What are you all using to store currency data? > > > > Any tips on how best to write my own meta.DollarField class? > > I went with the first solution that came to mind: > meta.FloatField(decimal_places=2) > [...] > Is there any reason n

Re: Money or Currency data type

2005-09-16 Thread Matthew Marshall
On Saturday 17 September 2005 01:00 am, Eric Walstad wrote: > Hi, > > I didn't find any reference to money or currency data types in the > django source, nor in the list archives. My app needs to store US > Dollars. > > What are you all using to store currency data? > > Any tips on how best to wr

Money or Currency data type

2005-09-16 Thread Eric Walstad
Hi, I didn't find any reference to money or currency data types in the django source, nor in the list archives. My app needs to store US Dollars. What are you all using to store currency data? Any tips on how best to write my own meta.DollarField class? Thanks in advance, Eric.