Django

Rename Apps in Django Admin

Posted: 5 years ago in  Python Django


Since Django 1.7, there is feature to define app's name different from the name used when run startapp View more


Convert DateTime in Django from UTC to local timezone

Posted: 5 years ago in  Python Django


In Django's default settings, there are TIME_ZONE and USE_TZ options that define which timezone used in admin.However in views, time fetched from database is usually UTC timezone. To convert it to local time, pytz package will get it done. View more


Work-around to fix Django 1.6 urls.defaults compatibility with thrid-party app

Posted: 5 years ago in  Python Django


Since Django 1.6, running third-party django application, you will get error "ImportError: No module named defaults" View more