V-FOR-VEND3TTA / return-and-exchange-system

A return and exchange system to streamline the return and exchange process for ecommerce businesses, providing a seamless experience for customers and reducing operational headaches for the business using Django, Bootstrap
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

Setting Up URLs #9

Closed V-FOR-VEND3TTA closed 4 months ago

V-FOR-VEND3TTA commented 4 months ago

Define URLs for the views in "returns_exchanges/urls.py".

# In returns_exchanges/urls.py
from django.urls import path
from . import views

urlpatterns = [
    path('signup/', views.signup, name='signup'),
    path('login/', views.user_login, name='login'),
    path('logout/', views.user_logout, name='logout'),
    path('', views.dashboard, name='dashboard'),
    path('return_exchange_request/<int:item_id>/', views.return_exchange_request, name='return_exchange_request'),
]

Include the app URLs in the main project urls.py.

# In ecommerce_project/urls.py
from django.contrib import admin
from django.urls import path, include

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', include('returns_exchanges.urls')),
]
V-FOR-VEND3TTA commented 4 months ago

Successfully set up URLs at the app and project level.