I'm working in two projects, the first one is been developed using django/mysql and the other uses django/mongodb.
The first is using django1.5 and it works but the second only works in django1.3, I believe mongodb does not work in django1.5.
When I try to run the django/mongodb project in django1.5 I get:
AttributeError: 'tuple' object has no attribute 'insert'
How can I solve it? can I install both django(1.3 and 1.5) in the same computer and use them for some different projects?
I'm a newbie with mongodb.
Thanks in advance.
Finally I installed both django1.5 to use mysql and 1.3 to use mongodb.
I got it using virtualenv
Here a bit tutorial(In spainsh)
http://plone-spanish-docs.readthedocs.org/en/latest/python/creacion_entornos_virtuales.html
Related
It should be like this:
But in my case it shows this instead:
I use newest version of vscode (1.71.2), I have tried every django extensions on marketplace, nothing work.
How can I fix this?
I also encountered the same. On july I did a django project using django version 4.1.1, I think the issue might be vscode augus update
Ive been setting an existing geodjango project in ubuntu 20.04, and the existing databases, fixture created, are all read backwards, (lat, long) (long,lat), I finally found the change and its the gdal verison, I was working with the 2.4 version, in ubuntu 20 I have the gdal version 3, and the change seems to be intended:
GDAL 3.0 Coordinate transformation (backwards compatibility (?))
as a workaround there is a SetAxisMappingStrategy(OAMS_TRADITIONAL_GIS_ORDER) method
my question is, how do I setup my project for existing and new models being read correctly?, since the backwards reading exist in the admin, pages, serializers, etc
thanks
It seems this problem has been fixed in Django 3.1 by this commit.
I was trying to start my django server, but constantly getting the above error
django version is 1.5 (due to my project's backward compatibility issue, we cannot upgrate it to a newer version)
python version is 2.7.7
I've searched online and find that usually, this is due to Django version, once switched to 1.5, it'll be fine, but for me, it's still there.
Any help please?
Never mind, I solved this problem by creating a python27_env virtual environment and pip installed all required modules, and then it worked.
I'm guessing it's due to something got messed up in my desktop setup for python27.
Thanks guys.
I'm quite new to Python (Got forced to use it since BBG don't support R), and i'm having difficulty installing blpapi. I'm currently using Spyder and Python 2.7 version.
Does anyone on this forum had already used python to send orders to Bloomberg and manipulate data provided by the terminal? If Positive, could you pls share how you've installed the API Libs and any other useful stuff. The idea is to feed a certain model with live data.
There's an .exe file in the Zip that you download from WAPI , but there's an error message appearing. I've already tried to speak with a BBG represent. but that does not helped.
Regards,
I have encountered this issue and tried all previous solutions to no avail. Have tried rolling back requests to older versions, have tried updating pyinstaller. Please guys, if you know a configuration that works, let me know.
I am compiling some python 2.7 code that uses Kivy
I am an idiot. I was piping the wrong python install. I use a separate version for other projects, and I sandbox my kivy one to prevent conflicts... too bad I forgot about that :)