Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Display module variables and edit through webpage
I am using Flask to implement a web application. My main application has different "modules" I can activate or deactivate by changing the boolean value for that specific module in a dedicated python file that lies in the server directory.

Now I want to show the user on the front-end the different fields with their flags in dropdown menus like that: Module1 : dropdown menu(True, False) And then the user can choose to change the status by setting it to False for example and clicking "save". This click would then set this flag to False in my config file.

Is that possible? And how would I go about implementing it? Right now I don't really care about user access rights. In this scenario I just have one user that wants to change the configuration of the app through the web browser.

Thank you
What are your modules? In the simplest case you can just do something like this:
if myvar1:
   import module1
if myvar2:
   import module2 

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Scape webpage that has text - javascript? lonelygirl 2 132 Aug-08-2019, 12:42 AM
Last Post: lonelygirl
  Access my webpage and download files from Python Pedroski55 7 385 May-26-2019, 12:08 PM
Last Post: snippsat
  Read Save RadioButtons from Database in Python Flask Webpage Gary8877 0 281 Apr-11-2019, 12:33 AM
Last Post: Gary8877
  [split] How to find a specific word in a webpage and How to count it. marpop 2 345 Mar-12-2019, 08:25 AM
Last Post: snippsat
  Get data from a webpage Pedroski55 3 514 Mar-02-2019, 03:13 AM
Last Post: Pedroski55
  webpage input module rudolphyaber 2 281 Feb-26-2019, 12:13 AM
Last Post: Larz60+
  Scraping a webpage with BS4 SBF12345 3 419 Jan-30-2019, 12:47 AM
Last Post: Larz60+
  display multiple sensors on webpage python flask jinja pascale 6 526 Jan-29-2019, 10:10 AM
Last Post: pascale
  Display blog posts in two columns saladgg 3 440 Dec-28-2018, 05:17 AM
Last Post: saladgg
  [Flask] Create new project for add user,edit,delete,view users in python with mysql connector chandranmanikandan 0 460 Oct-30-2018, 10:19 AM
Last Post: chandranmanikandan

Forum Jump:

Users browsing this thread: 1 Guest(s)