Giter Site home page Giter Site logo

dj_mako's Introduction

DJANGO MAKO Pylint Workflow

This is demo project to demonstrate working of MAKO templates in Django.

Setup

To setup the project locally, clone the repo by typing. ๐Ÿ‘‡

# create and activate a virtual environment with python >= 3.8.0

git clone [email protected]:emZubair/dj_mako.git

# Install the requirements
pip install -r requirements.txt
# run the migrations :point_down:
python manage.py migrate

Running

Run the project by typing the following command

python manage.py runserver

Sample Display Data

{
  "row_0": {
    "columns": {
      "column_1": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Good"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Normal"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Bad"
          }
        }
      },
      "column_2": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Average"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Above Average"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Best"
          }
        }
      },
      "column_3": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Low"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Lower"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Lowest"
          }
        }
      },
      "column_4": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Good"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Better"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Best"
          }
        }
      }
    },
    "row_header": {
      "font_color": "",
      "sub_title": "Productive Day?",
      "sub_title_style": "",
      "title": "Week start",
      "title_style": ""
    }
  },
  "row_1": {
    "columns": {
      "column_1": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Bad"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Worse"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Worst"
          }
        }
      },
      "column_2": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Cool"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Cooler"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Coolest"
          }
        }
      },
      "column_3": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Sunday"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Monday"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Tuesday"
          }
        }
      },
      "column_4": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Pakistan"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Philippine"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Peru"
          }
        }
      }
    },
    "row_header": {
      "font_color": "",
      "sub_title": "Good to take off?",
      "sub_title_style": "",
      "title": "Rest Day",
      "title_style": ""
    }
  },
  "row_2": {
    "columns": {
      "column_1": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Australia"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "England"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "West Indies"
          }
        }
      },
      "column_2": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "1990"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "1992"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "1994"
          }
        }
      },
      "column_3": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "2000"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "2010"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "2020"
          }
        }
      },
      "column_4": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Think"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Thought"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Thank you"
          }
        }
      }
    },
    "row_header": {
      "font_color": "",
      "sub_title": "Work load is enough?",
      "sub_title_style": "",
      "title": "Mayday",
      "title_style": ""
    }
  },
  "row_3": {
    "columns": {
      "column_1": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "William"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Paul"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Berk"
          }
        }
      },
      "column_2": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Light"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Tough"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Easy"
          }
        }
      },
      "column_3": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Winter"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Summer"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Spring"
          }
        }
      },
      "column_4": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Good"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Normal"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Bad"
          }
        }
      }
    },
    "row_header": {
      "font_color": "",
      "sub_title": "Feel relaxed",
      "sub_title_style": "",
      "title": "To the end",
      "title_style": ""
    }
  },
  "row_4": {
    "columns": {
      "column_1": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Good"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Normal"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Bad"
          }
        }
      },
      "column_2": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Good"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Normal"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Bad"
          }
        }
      },
      "column_3": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Good"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Normal"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Bad"
          }
        }
      },
      "column_4": {
        "choices": {
          "choice_1": {
            "color": "BFEFDF",
            "correct": true,
            "feedback": "We can roll with that",
            "font_color": "292C2E",
            "text": "Good"
          },
          "choice_2": {
            "color": "FFD7B3",
            "correct": true,
            "feedback": "You should think Again",
            "font_color": "292C2E",
            "text": "Normal"
          },
          "choice_3": {
            "color": "F5C7C8",
            "correct": true,
            "feedback": "Not a good practice though",
            "font_color": "292C2E",
            "text": "Bad"
          }
        }
      }
    },
    "row_header": {
      "font_color": "",
      "sub_title": "Good or bad choice?",
      "sub_title_style": "",
      "title": "Vacation",
      "title_style": ""
    }
  }
}

dj_mako's People

Contributors

emzubair avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.