urls.py 1.0 KB

12345678910111213141516171819
  1. from django.contrib import admin
  2. from django.urls import path
  3. from . import views
  4. from django.conf import settings
  5. from django.conf.urls.static import static
  6. urlpatterns = [
  7. # path('', views.login_view, name='login'),
  8. # path('login/', views.logout_view, name='logout'),
  9. path('upload/', views.title_creator_view, name='title_creator_home'),
  10. path('upload-async/', views.title_creator_async_view, name='title_creator_async'), # New
  11. path('check-status/<str:task_id>/', views.check_status, name='check_status'), # Status checker
  12. path('master/', views.master_config_view, name='title_creator_master'),
  13. path('api/save-config/', views.save_config_api, name='save_config_api'),
  14. path('title-creator/history/', views.title_creator_history_page, name='title_creator_history'),
  15. path('title-creator/api/tasks/', views.get_title_creator_tasks_json, name='title_creator_tasks_json'),
  16. path('get-token-scrapper/', views.TokenFetcherAPI.as_view(), name='get_token_scrapper'),
  17. ]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)