GithubHelp home page GithubHelp logo

django_course's Introduction

First is the main tutorial repo which does UPDATE/ADD/DELETE

In django websites, url.py of main project folder contains urls of all the apps which are connected to the root website. Furthermore, for login/logout/signup there's a separate app that you need to include in urls (See first project's settings/url for demo).

In each app, there's again a url.py file which contains link to a functionality of the site (contained in views.py). "views.py" contains functionality (each functionality contains a website, i.e. in each function we typically return a HttpResponse or we can return a template html and pass a dictionary of parameters to the template html, which is interpreted in the template html). So each views functionality has a url, which is referenced by urls.py (inside the app, not the root project)

For example, suppose my project name is first and an app named "want" is made in it. To reference a functionality of the app "want" we've to go to localhost:want/functionality. Typically we also past GET/POST variables in it.

As for how to do CRUD with database, look into the project "first". In the "want" app inside it, in the views.py file you can see the functions for doing CRUD. Please raise an issue if you have a question or there's something you don't understand in my code.

django_course's People

Contributors

shivam13juna avatar

Watchers

James Cloos avatar  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.