Skip to content

artinmohajeri/image-size-limit-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Size Limit Django

This is a mid-level project using (Django, bootstrap5, HTML5, CSS3 and js).

I have used ajax to send a json data(size, dimentions) asynchronously to the backend and then reuse that in the template.

if you upload an image more that 200KB, the javascript will prevent you to upload the file and it wont be stored in that database.

redLine

Write these commands in your terminall to run this web application 👇👇👇

python -m venv .venv

.venv\Scripts\activate.bat

pip install -r requirements.txt

python manage.py runserver

Screenshot (183) Screenshot (181)