mirror of
				https://github.com/chibicitiberiu/ytsm.git
				synced 2024-02-24 05:43:31 +00:00 
			
		
		
		
	Implemented YouTube layer, as well as synchronization on schedule. TODO: fix issue where ready() is called twice. The synchronization should only run on one thread/process.
This commit is contained in:
		@@ -22,6 +22,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 | 
			
		||||
# SECURITY WARNING: keep the secret key used in production secret!
 | 
			
		||||
SECRET_KEY = '^zv8@i2h!ko2lo=%ivq(9e#x=%q*i^^)6#4@(juzdx%&0c+9a0'
 | 
			
		||||
 | 
			
		||||
YOUTUBE_API_KEY = "AIzaSyBabzE4Bup77WexdLMa9rN9z-wJidEfNX8"
 | 
			
		||||
 | 
			
		||||
# SECURITY WARNING: don't run with debug turned on in production!
 | 
			
		||||
DEBUG = True
 | 
			
		||||
 | 
			
		||||
@@ -31,7 +33,7 @@ ALLOWED_HOSTS = []
 | 
			
		||||
# Application definition
 | 
			
		||||
 | 
			
		||||
INSTALLED_APPS = [
 | 
			
		||||
    'YtManagerApp',
 | 
			
		||||
    'YtManagerApp.apps.YtManagerAppConfig',
 | 
			
		||||
    'django.contrib.admin',
 | 
			
		||||
    'django.contrib.auth',
 | 
			
		||||
    'django.contrib.contenttypes',
 | 
			
		||||
 
 | 
			
		||||
@@ -24,5 +24,7 @@ urlpatterns = [
 | 
			
		||||
    path('ajax/get_folders', views.ajax_get_folders, name='ajax_get_folders'),
 | 
			
		||||
    path('ajax/edit_folder', views.ajax_edit_folder, name='ajax_edit_folder'),
 | 
			
		||||
    path('ajax/delete_folder/<int:fid>/', views.ajax_delete_folder, name='ajax_delete_folder'),
 | 
			
		||||
    path('ajax/edit_subscription', views.ajax_edit_subscription, name='ajax_edit_subscription'),
 | 
			
		||||
    path('ajax/delete_subscription/<int:sid>/', views.ajax_delete_subscription, name='ajax_delete_subscription'),
 | 
			
		||||
    path(r'', views.index, name='home')
 | 
			
		||||
]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user