File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Backend/EcommerceInventory/EcommerceInventory Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 17
17
from django .contrib import admin
18
18
from django .urls import include , path , re_path
19
19
20
+ from EcommerceInventory import settings
20
21
from EcommerceInventory .views import index
21
22
from UserServices .Controller .DynamicFormController import DynamicFormController
22
23
from UserServices .Controller .SuperAdminDynamicFormController import SuperAdminDynamicFormController
23
24
from UserServices .Controller .SidebarController import ModuleView
25
+ from django .conf .urls .static import static
24
26
25
27
urlpatterns = [
26
28
path ('admin/' , admin .site .urls ),
32
34
re_path (r'^(?:.*)/?$' , index ),
33
35
34
36
]
37
+
38
+ if settings .DEBUG :
39
+ urlpatterns += static (settings .STATIC_URL , document_root = settings .STATIC_ROOT )
You can’t perform that action at this time.
0 commit comments