User Tools

Site Tools


slowcontrol:web_interface

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
slowcontrol:web_interface [2021/07/21 14:36] himuserslowcontrol:web_interface [2022/08/11 11:52] (current) himuser
Line 10: Line 10:
     * ''urls.py'' containing the list of URL patterns for the app     * ''urls.py'' containing the list of URL patterns for the app
     * ''views.py'' containing the functions to be executed on GET on POST requests     * ''views.py'' containing the functions to be executed on GET on POST requests
-  * +  * update ''src/prima_site/settings.py''', adding the name of the new directory where needed 
 +  * add an ''include'' in ''src/main/urls.py'' 
 +  * update the appropriate template file in ''src/main/templates/'' to set the proper URL on the proper link. The URL has to be one of those defined in ''urls.py''
  
 +== Using Static files ==
 +Static files are e.g. html, js or css files which are included in the html code. To include them 
 +correctly use a tag like 
 +      {% static '<filename>' %}
 +where ''<filename>'' contains no path.
 +
 +== Using Models ==
 +Models are container classes which can be used to store data in the DB.
 +  * define the model classes in ''models.py'' in the app directory
 +  * add the model class names in ''src/main/admin.py''
 +
 +
 +== Introductory Slides ==
 +[[https://seafile.rlp.net/smart-link/1bf7e8d0-c0cb-432f-a959-66425881e584/?dl=1]]
  
slowcontrol/web_interface.1626878204.txt.gz · Last modified: 2022/01/14 18:44 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki