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
-
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
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,
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
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
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
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
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
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
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
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\
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
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
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
> > 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
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
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
--
Please, never a float. Use Decimal Type.
http://www.python.org/peps/pep-0327.html
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
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
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
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.
22 matches
Mail list logo