Spaces:
Runtime error
Runtime error
Commit ·
0c665d3
1
Parent(s): c9e6491
Update scraper/urls.py
Browse files- scraper/urls.py +5 -2
scraper/urls.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
from django.urls import path
|
| 2 |
-
from .views import refreshHeb, refreshSephora, refreshWallmart, refreshUlta,
|
| 3 |
|
| 4 |
|
| 5 |
urlpatterns = [
|
|
@@ -7,6 +7,9 @@ urlpatterns = [
|
|
| 7 |
path('refreshSephora', refreshSephora, name='refreshSephora'),
|
| 8 |
path('refreshWallmart', refreshWallmart, name='refreshWallmart'),
|
| 9 |
path('refreshUlta', refreshUlta, name='refreshUlta'),
|
| 10 |
-
path('',
|
| 11 |
path('refreshTarget', refreshTarget, name='refreshTarget'),
|
|
|
|
|
|
|
|
|
|
| 12 |
]
|
|
|
|
| 1 |
from django.urls import path
|
| 2 |
+
from .views import refreshHeb, refreshSephora, refreshWallmart, refreshUlta,home, refreshTarget, ProductListView, refreshAll, download_all_product_csv
|
| 3 |
|
| 4 |
|
| 5 |
urlpatterns = [
|
|
|
|
| 7 |
path('refreshSephora', refreshSephora, name='refreshSephora'),
|
| 8 |
path('refreshWallmart', refreshWallmart, name='refreshWallmart'),
|
| 9 |
path('refreshUlta', refreshUlta, name='refreshUlta'),
|
| 10 |
+
path('', ProductListView.as_view(), name='home'),
|
| 11 |
path('refreshTarget', refreshTarget, name='refreshTarget'),
|
| 12 |
+
path('refresh', refreshAll, name='refresh'),
|
| 13 |
+
path('download', download_all_product_csv, name='download'),
|
| 14 |
+
]
|
| 15 |
]
|