Hello, good tutorial but an error, some inaccuracies and even additional questions should be raised:
In views.py
return JsonResponse({'post':'false'})
It's 'false', not 'fasle'.
The js scripts in base.html should always be put at the end. It is a SEO good practice and in general.
Why do you import JQuery if you don't use it?
Is it really necessary to import so many scripts?
What about accepting more filetypes? jpg is not the only one. And if I want to accept more?
What is the Dropzone object and what does it do? You should explain things, not only put the way to do them.
Why does main.js is imported before dropzone.js? And what is defer?
How about remove an uploaded picture? In drag and dropping multiple files he may have a mistake.
I think the most important point is 8. In real world applications, adding an "x" to remove wrongly uploaded images is really important. And, if your tutorial is really for beginners, you should definitively teach the way to do it.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello, good tutorial but an error, some inaccuracies and even additional questions should be raised:
It's 'false', not 'fasle'.
The js scripts in base.html should always be put at the end. It is a SEO good practice and in general.
Why do you import JQuery if you don't use it?
Is it really necessary to import so many scripts?
What about accepting more filetypes? jpg is not the only one. And if I want to accept more?
What is the Dropzone object and what does it do? You should explain things, not only put the way to do them.
Why does main.js is imported before dropzone.js? And what is defer?
How about remove an uploaded picture? In drag and dropping multiple files he may have a mistake.
I think the most important point is 8. In real world applications, adding an "x" to remove wrongly uploaded images is really important. And, if your tutorial is really for beginners, you should definitively teach the way to do it.