Coding for UWAV - Django Apps

In Django it seems like each functionality of a site, each page that does something different, is handled as an app. It is to be treated separately but part of the whole. 

The map and search function is an app. The submitting page is an app.The user-page is an app. The joining page is an app. The setting page is an app. The event page is an app.

Once installed the app contains several pre-made python files for specific purposes:

__init__.py is the initializer (leave it alone)
admin.py is the place where you have your admin controls
apps.py is where you have your settings for this specific app
models.py is the database and how you will store the data (i.e. classes, dictionaries, tables)
tests.py is for tests to see if things are working
views.py is for functions for user requests and responses

https://www.youtube.com/watch?v=lcD0CDurxas&list=PL6gx4Cwl9DGBlmzzFcLgDhKTTfNLfX1IK

Comments

Popular posts from this blog

Pyhton 3.4 - Continue

Conversations Ongoing: Valuing Modernization in Early European History

Conversations Ongoing: A Bunch of Amateurs