The Python Game Book

code games. learn Python.

User Tools

Site Tools


en:glossary:d:django

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:glossary:d:django [2020/07/23 17:13]
horst
en:glossary:d:django [2020/07/24 20:53]
horst [learning notes]
Line 17: Line 17:
   * https://www.academia.edu/31099254/Django_tutorial?email_work_card=view-paper   * https://www.academia.edu/31099254/Django_tutorial?email_work_card=view-paper
      
 +  
 +  
 +==== learning notes ====
 +=== official tutoral at djangoproject.org ===
 +  * toplevel foldername can be any name, django does not care. each [[Django-App]] has it's own named folder. A Django project can have several apps and apps can be copied to different projects (just copy the whole folder)
 +  * datetime: best in (toplevel) settings.py, set ''USE_TZ'' to False, to get the local time from python datetime. works on linux. See documentation, problems on windows?
 +  * in models.py (of polls), use ''datetime.datetime.now() instead of timezone.now() 
 +
 +
  
  
en/glossary/d/django.txt ยท Last modified: 2020/07/24 20:53 by horst