I just began to learn Django recently. I am trying to deploy a django project on Google App Engine. But I stuck when following tutorial on google: https://cloud.google.com/python/django/appengine
when I type:
python manage.py makemigration
I got: following error:
mysqlclient 1.3.13 or newer is required; you have 0.9.3.
After short research, apparently, I can't install mysqlclient 1.3.13 on Django 2.2 yet?? Is this a mistake? Am I missing something? Can I use mysqlclient 1.3.13 on django 2.2 ?
Thank you for your time.
Django support for Postgresql is much better than for mysql. I recommend you switching to postgres.
EDIT:
I think that switching to postgres will solve this problem out of the box.
Related
So Dood has a nice Django update graph...
https://arunrocks.com/django-release-schedule-and-python-3/
And I would like to upgrade from Django 1.11.17 to 2.2. I'm seeing recommendations from the Django project to incrementally upgrade. But how is a pip install --upgrade django going to change the current Django project from python 2.7 to python 3.6? Preciate it!
This may be a very silly question, but I am currently hosting a Django project on Openshift, and I have run into a funny problem. Both locally and remotely I am using pip version 7.1.2, and I've just updated Django to version 1.9.1. However, latest version of Django I can install on Openshift is 1.9b1. Is there anything else I need to update in order for Openshift to have the latest list (package)?
EDIT: Is that because I'm using python 3.3 on openshift and 3.4 locally?
This was my issue: The Django 1.8 series is the last to support Python 3.2 and 3.3.
I was using python 3.3 on Openshift.
My project's backend support is Django 1.7 and my database support is mongodb.
To satisfy above requirement i need to install django-nonrel.
When I try to install django-nonrel with below command:
pip install git+https://github.com/django-nonrel/django#nonrel-1.5
It is replacing my django 1.7 to django 1.5.
Please help.
New to django and Mongo db.
You could try install django nonrel 1.6 by running
pip install git+https://github.com/django-nonrel/django#nonrel-1.6
It works for me with base configuration provided from here
And if you succeed with 1.7 - tell me how :)
I'm using django and I'm facing a little problem. I would like to use the 'migrate' command with manage.py But when I try I get this error message:
Unknown command: 'migrate'
Type 'manage.py help' for usage.
I have south installed (I installed it with pip), but I still can't use this command. I don't know what to do.
Thank you for your help!
You have to include south in INSTALLED_APPS in your settings.py.
This is likely caused by following the 1.7 (DEV version) tutorial when we all get the last stable version (1.6) installed by pip.
It would not appear migrate is even a part of 1.7 in general!
Maybe the following command solve your problem: python manage.py syncdb
So either follow 1.6 tutorial or follow the instructions to install the 1.7 dev version of Django.
OS: windows 7 (x64)
Python: 3.2
Django: 1.3.1
So I am trying to install Django and am getting the following error:
file "setup.py", line 70
if u'SVN' in version:
syntaxError: invalid syntax
So I know this is a compatibility issue with python3.2 and would not be a problem if I re-install python 2.6 instead. My question is there a way around this now? Or is Django still only compatible with python2.6 only?
Django 1.3.1 is compatible with Python versions from 2.4 to 2.7.
There are people working on an experimental port to Python 3 now. But for the time being your best bet is to install Python 2.7.
Update: There is official work being done to port Django to Python 3. See this blog post for more information.