20 • learning • building • sharing

Joined April 2024
1,156 Photos and videos
Mohit retweeted
today's (15-06-2026) logs: > today I learned Django media files (any files uploaded by the user). > yesterday it was giving error when i was trying to open these files (by clicking on them) in my browser so today i firstly deleted the folder which was automatically created by django to put these file. and made custom folder/dir named media at the root dir. and configured the media files in settings.py as : # media file config MEDIA_URL='/media/' MEDIA_ROOT=BASE_DIR/'media' > added a urlpatterns in urls.py module as: urlpatterns = [ . . ] static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) > when user uploads any image it goes to the images folder created by djago inside our media folder. >now if i click to the media files i can see them on my browser exploring more...
1
1
81
Last viva and presentation of BTech. Today.
2
43
Mohit retweeted
Twitter is cool. But it’s 100x better when your timeline is full with people who code and build things. I need to connect with more founders and tech people. If you’re into Tech, AI, Agents, Startups, Design, web dev, SaaS, or programming, say hi.
1
1
2
83
Mohit retweeted
What are these white layers under our phone's screen 😳? And what they do?
1
1
108
Mohit retweeted
today's (14-06-2026) logs: -Django apps (basically a python package which is specifically meant for Django project, or we can say a submodule of a Django project). command for creating Django app: $ python manage.py startapp employee (employee is the app name you can write your own). we create app for building specific features. learned about app level directory. created superuser using $ python manage.py createsuperuser this gives credentials to login into admin panel created model for employee app and registered our model in admin.py module then migration comes in picture: $ python manage.py makemigration this reads models.py looks for any changes or modifications or newly created classes and creates migration file (here, in my project 0001_initial.py) with sql commands. $ python manage.py migrate executes the sql commands that are in our migration file (in my case its 0001_initial.py) exploring more.
3
1
6
361
pov: you want to code with fable 5 but you are not an American
1
56
Fun fun fun
today's (14-06-2026) logs: -Django apps (basically a python package which is specifically meant for Django project, or we can say a submodule of a Django project). command for creating Django app: $ python manage.py startapp employee (employee is the app name you can write your own). we create app for building specific features. learned about app level directory. created superuser using $ python manage.py createsuperuser this gives credentials to login into admin panel created model for employee app and registered our model in admin.py module then migration comes in picture: $ python manage.py makemigration this reads models.py looks for any changes or modifications or newly created classes and creates migration file (here, in my project 0001_initial.py) with sql commands. $ python manage.py migrate executes the sql commands that are in our migration file (in my case its 0001_initial.py) exploring more.
3
77
Mohit retweeted
Why can't his boss be getting old?
1
1
3
109
Mohit retweeted
things learnt so far: -why and how to use django -creating virtual environment for the project (implemented) -creating basic project using django-admin startproject mysite (implemented) -running development server using python manage.py runserver (Implemented) -knowing about all files/modules like --init--.py , asgi.py , setting.py, urls.py, manage.py etc. -knowing about all attributes insite settings.py -how django works (MVT PATTERN) , workflow and uses of url, views, model, template -implemented custom template -calc.html -implemented custom view and home function and render a template calc.html -implemented and adding static file calc.css in our project. exploring more.
1
8
224
Fir vahi imran hashmi wala mausam or salman khan wali jindagi! 🍃🌧️
3
87
Gm gm!
2
37
Mohit retweeted
Life was so much worse when: Pipeline for water Postman for post office Clouds for sky Jira for cooking Python for snake Continue...
1
2
60
What comes on yr mind after seeing my following count?
2
33