work tz
This commit is contained in:
		@ -8,7 +8,6 @@ from django.utils.translation import ugettext as _, ugettext_lazy
 | 
			
		||||
 | 
			
		||||
from aircox.models import *
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Inlines
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
@ -28,7 +28,7 @@ from .base_settings import *
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# define TIME_ZONE before the call to timezone.activate
 | 
			
		||||
# TIME_ZONE = os.environ.get('TZ') or 'UTC'
 | 
			
		||||
TIME_ZONE = os.environ.get('TZ') or 'UTC'
 | 
			
		||||
timezone.activate(pytz.timezone(TIME_ZONE))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										16
									
								
								notes.md
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								notes.md
									
									
									
									
									
								
							@ -39,17 +39,13 @@ cms:
 | 
			
		||||
    - player support diffusions with multiple archive files
 | 
			
		||||
    - comments -> remove/edit by the author
 | 
			
		||||
 | 
			
		||||
# Timezone shit:
 | 
			
		||||
Check:
 | 
			
		||||
- manager/commands:
 | 
			
		||||
    - diffusions
 | 
			
		||||
    - streamer
 | 
			
		||||
- admin: date printed for diffusion is utc even using localtime => tz.get_current_timezone() stays as UTC
 | 
			
		||||
 | 
			
		||||
# error when generating diffusions (when all page of a page have been removed):
 | 
			
		||||
seems like the numchild attribute is not updated correctly when calling page.delete()
 | 
			
		||||
 | 
			
		||||
    ```
 | 
			
		||||
    File "/srv/apps/aircox/venv/lib/python3.5/site-packages/treebeard/mp_tree.py", line 977, in add_child
 | 
			
		||||
        return MP_AddChildHandler(self, **kwargs).process()
 | 
			
		||||
    File "/srv/apps/aircox/venv/lib/python3.5/site-packages/treebeard/mp_tree.py", line 360, in process
 | 
			
		||||
        newobj.path = self.node.get_last_child()._inc_path()
 | 
			
		||||
    AttributeError: 'NoneType' object has no attribute '_inc_path'
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
# Instance's TODO
 | 
			
		||||
- menu_top .sections:
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user