Coder Social home page Coder Social logo

casa-track's Introduction

CASA-Track

A form tracking Django application for CASA of San Luis Obispo.

Django Overview

The MVT Framework

Django projects follow the Model View Template framework (MVT). It is very similar to the popular MVC framework, but has a couple key differences. The main difference is that Django itself handles interactions between the Models and Views, which is known to be the behavior of the Controller in the MVC framework. The 'Template' part of MVT refers to the HTML templates that you provide to Django that serve as the "UI" of the application, which can include Django Templating language (Jinja) that serve to transfer data from the View (in views.py) to the Template (HTML file).

A model is the single, definitive source of information about your data. It contains the essential fields and behaviors of the data you’re storing. Generally, each model maps to a single database table.

Views are Python functions that takes a Web request, along with any additional data, and returns a Web response. The returned web response can be created using logic passed into the function and can be the HTML contents of a page, a redirect, an error, or really anything. By convention, each URL has its own View function, mapped in by urls.py.

When a user makes a request for a page on your web app, Django controller takes over to look for the corresponding view via the url.py file, and then return the HTML response or a 404 not found error, if not found. In url.py, the most important thing is the "urlpatterns" tuple. It’s where you define the mapping between URLs and views.

Being a web framework, Django needs a convenient way to generate HTML dynamically. The most common approach relies on templates. A template contains the static parts of the desired HTML output as well as some special syntax describing how dynamic content will be inserted.

A way to streamline form data into a data object/class within django

A python templating engine used throught the project.

casa-track's People

Contributors

eric-newcomer avatar zimeg avatar bglossner avatar dependabot[bot] avatar anti-aguilar avatar hebertca18 avatar elenarfowler 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.