Is Django a good web framework? I need web and mobile (iOS/Android) accessibility, user accounts, as well as the ability to do something physical like turn on an LED. In exchange for Sup Forums's wisdom, I will post cuties from tumblr
Is Django a good web framework? I need web and mobile (iOS/Android)...
Django is good if you are trying to solve a generic problem where Django's batteries attached philosophy helps you.
If you are doing specialised or unique I would go with Flask.
What would you define as specialized or unique? The main things I need are basically user account management and the ability to do something physical like turn on an LED. It seems that both Django and Flask have user account management and I suppose that because it's in Python, a simple TCP/IP socket/server would handle the turning on LED part.
Something that will require you to modify significantly whatever you get from django-admin.
I'm doing something similar. I was thinking about it too. I'll probably go with flask + react for flexibility, what do you guys think?
Could you name an example
Is react as fast as native iOS/Android?
I have no idea I'm new to this too.
I think Django will be overkill from what it sounds like. Django's pretty powerful, but it takes a while to learn all of its features properly.
You should use Flask and learn HTML + CSS properly. You'll get a nice responsive, lightweight interface and learn fundamentals at the same time.
Unfortunately I've worked in teams where they used Django and never bothered to read the manual. A total unscalable mess followed and they blame it on Django. lol
Django is very opinionated.
Use Flask, it's really simple.
Serve up a SPA in react, vue, angular (vue is my favorite, easy to use, not retarded as react and not as opinionated as angular) that calls a flask REST api
You two seem knowledgeable.
Let's say I want to create some sort of user account system. You can register/login on both Web/Mobile Application, but most of the functionality will reside on the Mobile Application. What do I need to know regarding security in terms of storing passwords and whatnot on mobile application? Is there a "best practices" guideline anywhere?
Handling passwords is something you never want to do yourself. There are Flask libraries written by experts specifically for managing accounts.
Ah OK. I know how to code and stuff but I've never touched any sort of web development/web framework. Is there a quick start guide for best practices and whatnot for web development?
So I'm okay with web frameworks, but I 100% can't into web design.
What should I do?
There are many. I can't recommend any specific one. If I were in your position I would:
- learn the bare HTML essentials (and CSS if you want it to look pretty) and write a simple hello world page
- do a simple Flask example that serves up the page you just made and can print messages to console when you browse to certain urls. Understand how doing a POST/GET is how you send information back to the Flask server
- look up a popular Flask accounts framework like Flask-Login or Flask-User and do the quickstart tutorial. Figure out how to require a user to login before they can view the hello world page
At that point your app is done and you just have to toss in some code to blink your LED or whatever. You might throw in CSS to make things look pretty
Thanks for this info, I'm not him but this is great.
Djangi dev here.
Why would you use it for something so trivial, I have no idea.
Kotlin/xamarin with a simple backend for API like Sinatra would suffice.
rails because python is garbo