Django Error : That port is already in use
Initial Python / Django commands
Python / Django commands (unix)
Run these commands on the terminal. Create a virtual environment first with the below-given command. note:- the dot at the end means the current directory. virtualenv -p python3 . Now activate the environment. source bin/activate To deactivate – source bin/dactivate Use these commands to check what all stuff has been installed in your virtual environment.…
Django Error: That port is already in use.
When trying to start/run Django server on your MAC machine getting this error – Error: That port is already in use. Solution? find out which service or application is using the default port 8000? Spotlight on Network Utility to List Ports Press Command+Spacebar. Type the name of utilities that are buried, such as Network Utility. Click the…
Django makemigrations Error
TypeError: __init__() got an unexpected keyword argument ‘max_lenght’ After running python3 manage.py makemigrations command you see the above error? Solution – Read the error carefully, the error occurred because of a spelling mistake in ‘max_length’ I typed it as ‘max_lenght’ instead of ‘max_legth’.