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
en:glossary:d:django [2020/07/24 20:37]
horst
en:glossary:d:django [2020/07/24 20:53] (current)
horst [learning notes]
Line 23: Line 23:
   * 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)   * 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?   * 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.1595615861.txt.gz ยท Last modified: 2020/07/24 20:37 by horst