Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
September 6, 2019 03:30 pm GMT

My Experience With Django

It's been quite sometime after leaving Laravel. I didn't want to do website development for a short interval of time and in that particular timeframe, I started working with Python.

Motivation

I had a software project and I know C#/WPF, so before starting to code the software, It came to my mind that you're learning Python, wouldn't it be cool if you can complete your software in python too? So I did. Python+PyQt5 and it was easy and helped me learn a couple of more things.

All sorts of questions were answered by the same answer, "Python". You want to work with images, data, machine learning, website development, you can do all of this and more with Python programming language.

Experience

At this point, I'd left laravel and php completely. I was reading the Django official documentation and the words that were captivating to me were, "Rapid Application Development" in the Django documentation. I made my first project of todo app, had to write little code for doing most of the things. Another boost came when I learned about Django's auto admin panel and that boost went away when I realized it's really hard to customize the look and feel of the Django admin. Some people even advised me to prefer making my own admin panel if you need all sorts of customizations. I didn't even realize that not everyone asks for customizations. Most common things like header, site_title and the way you interact with your model in the admin panel, can be modified with fewer lines of code.

Working with forms

man, I'd been creating forms in the templates for so long. Got introduced to ModelForm and oooh boi!. I mean like you literally have a form ready for your model just by like 5 lines of code? And wait, not only that, it does validation too and that too, automatically.

MTV architectural pattern

Easy to learn, nothing hard. It's not completely different from MVC either.

Django messages (alerts)

Got introduced to Django messages framework. Is there anything more easy to work with? yeah, I had trouble memorizing the debug_levels but it's not difficult and certainly doesn't take much time to learn.

Hosting

If you follow the docs correctly, it's a breeze. For Example, I forgot to include the static root in the settings.py, read the docs again and corrected my mistake. Ran the app and that's it.

Conclusion

So far, I've loved Django. Everything is simple, easy to follow but sometimes you'd have to dig deep down to understand how Django do certain things and by then you'd have gained enough experience so you won't stress about it.


Original Link: https://dev.to/mujeebishaque/my-experience-with-django-54c6

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To