artinmohajeri / image-size-limit-django

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)