13👍
You don’t do that with Pycharm, Pycharm just detects the installed version. You change the version with pip:
pip uninstall django # just for explicity
pip install django==1.6.8
Make sure you use virtual environments if you run multiple applications on the same machine.
13👍
Go to Settings
->Project Interpreter
.
Double-click the Django
package. Activate the check box Specify version
and select the version you want.
Press the button Install Package
.
Django will use pip
in the background to install the package.
- Id is not present in validate() and ListSerializer's update() Django Rest Framework
- What is query.clone(), queryset.clone() for in django?
3👍
In default settings of project.
File -> Default Settings -> Default Project -> Project Interpretatoe
2👍
Also you can add to your project requirements.txt file to make sure whether the current interpreter contains required package, if not – PyCharm ask you to install them.
- Pass a custom queryset to serializer in Django Rest Framework
- Return Custom 404 Error when resource not found in Django Rest Framework
- Website stress test in Python – Django
- Ajax, CSRF and DELETE
- Django DEBUG=False still runs in debug mode
2👍
Go to file>>settings>>Project Interpreter and click the plus sign at the right edge of the popup window and look for django and install it. You need internet access though. It will install the new version.
2👍
The best way is to use virtualenv: create a new virtual environment, install the python you want and keep the path to this version’s python.exe file.
Open PyCharm and go to settings:
- Django: IntegrityError: column user_id is not unique
- How to update a queryset that has been annotated?
- Django pagination…slicing pages to show fraction of total pages?
0👍
You can open your project in pycharm and then change your django version by this method:
menu->file->setting->project:(your project_name)
In package list click on the package you want(here the package we want is Django).
You can delete a package with minus(-) sign and install a package with plus(+) sign…
For example if your previous Django version is 3.0 you can delete it and install even an older version.