Python Forum
Django, Background Scripts, Raspberry Pi and GPIO
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Django, Background Scripts, Raspberry Pi and GPIO
#1
Hey,

I'm quite new to python and Django so i'm uncertain if Django will be a good fit to what i need.

I wish to develop a web interface to display sensor information, control outputs and run background tasks.

I have considered running a python cronjob that links to a SQL database then have Django link to the same database.

I could input settings into the database via Django that the background script would then read.

I could maybe use AJAX to perform page updates.

Mainly looking for opinions or better options before i get started as i'm not too keen on heading down the wrong path if a better one is available.

Thanks.
Reply
#2
That all sounds well and good, but if your webapp is going to be pretty simple, I'd advocate for Flask over Django due to the learning curve. That is, unless you've been meaning to learn Django anyway, which I hear pretty often :)
Reply
#3
I agree with micseydel's advice. IMO learning Django is for many reasons a good choice, one you most likely will not regret if you plan to do a lot of work on web-database interfaces in future ;)
Reply
#4
For such a simple task even bottle.py will fits.

Anyway, if I need some monitoring solution I'm going to look for something simple. May be around PyZMQ.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,247 Jun-30-2019, 12:21 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020