I'm building a real estate website. So I've run the command "pip3 install pillow". it has been successfully downloaded it. Tho when I try to add a listing to the page it gives me the error "No module named 'PIL", and refers to the code below:
def createListing(request):
form = listingForm()
if request.method == 'POST':
--> the error refers to this line: form = listingForm(request.POST, request.FILES)
if form.is_valid():
form.save()
return redirect('/listings')
context = {'form': form}
return render(request, 'accounts/create_listing.html', {'form': form})