add billard command to process location object data via cron job
This commit is contained in:
		
							
								
								
									
										0
									
								
								billard/management/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								billard/management/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								billard/management/commands/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								billard/management/commands/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										9
									
								
								billard/management/commands/process_location_data.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								billard/management/commands/process_location_data.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
from django.core.management.base import BaseCommand, CommandError
 | 
			
		||||
from billard.tasks import process_location_data
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Command(BaseCommand):
 | 
			
		||||
    help = 'Process location data objects'
 | 
			
		||||
 | 
			
		||||
    def handle(self, *args, **options):
 | 
			
		||||
        process_location_data
 | 
			
		||||
		Reference in New Issue
	
	Block a user