Hi ,
I was using django 3 for development and wanted to migrate it to production. But when I started configuring my project with the production db (oracle) then the admin page stopped working (ambiguous column error). Upon searching I found that there was no support of oracle from django 3 and had to downgrade to django2.2
Now my project is built in django3 and I uninstalled django3 from my venv and installed django2.2 on my venv. But when I try to open my site (apache<->mod_wsgi) I get the following error on opening the page:
ImportError at /admin/
cannot import name 'RemovedInDjango30Warning' from 'django.utils.deprecation' (/scratch/python3env/lib/python3.7/site-packages/django/utils/deprecation.py)
and in the browser it shows
Django Version: 3.0.8
Python Version: 3.7.8
while from pip I have installed django2.2 and ./manage.py --version
shows 2.2
.
So I have 2 questions:
- How can I resolve the error:
RemovedInDjango30Warning
- Is it okay if browser shows different version of django? How can I completely remove the 3.0.8 django reference.