<reponame>code-goodbuy/Goodbuy<gh_stars>1-10
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.urls import include, path

from accounts import views as acccount_views
from goodbuyDatabase import endpoints as goodbuyDatabase_endpoints
from goodbuyDatabase import views as goodbuyDatabase_views
from home import views as home_views

urlpatterns = [
    path("admin/", admin.site.urls),
    path("", home_views.start_screen, name="home"),
    path(
        "login/",
        auth_views.LoginView.as_view(template_name="accounts/login.html"),
        name="login",
    ),
    path(
        "logout/",
        auth_views.LogoutView.as_view(template_name="accounts/logout.html"),
        name="logout",
    ),
    path("register/", acccount_views.register, name="register"),
    path("profile/", acccount_views.user_profile, name="user_profile"),
    path("accounts/", include(("accounts.urls", "accounts"), namespace="accounts")),
    path(
        "password-reset/",
        auth_views.PasswordResetView.as_view(
            template_name="accounts/password_reset.html"
        ),
        name="password_reset",
    ),
    path(
        "password-reset/done/",
        auth_views.PasswordResetDoneView.as_view(
            template_name="accounts/password_reset_done.html"
        ),
        name="password_reset_done",
    ),
    path(
        "password-reset-confirm/<uidb64>/<token>/",
        auth_views.PasswordResetConfirmView.as_view(
            template_name="accounts/password_reset_confirm.html"
        ),
        name="password_reset_confirm",
    ),
    path(
        "password-reset-complete/",
        auth_views.PasswordResetCompleteView.as_view(
            template_name="accounts/password_reset_complete.html"
        ),
        name="password_reset_complete",
    ),
    path("home/", include(("home.urls", "home"), namespace="home")),
    path(
        "code_scanner/",
        include(("codeScanner.urls", "codeScanner"), namespace="codeScanner"),
    ),
    path(
        "goodbuyDatabase/",
        include(
            ("goodbuyDatabase.urls", "goodbuyDatabase"), namespace="goodbuyDatabase"
        ),
    ),
    path("scraper/", include(("scraper.urls", "scraper"), namespace="scraper")),
    path("is_big_ten/<str:code>/", goodbuyDatabase_endpoints.is_big_ten),
    path("lookup/<str:code>/", goodbuyDatabase_endpoints.lookup, name="aws_lookup"),
    path("local_lookup/<str:code>/", goodbuyDatabase_endpoints.local_lookup, name="django_lookup"),
    path("feedback/<str:code>/", goodbuyDatabase_endpoints.feedback),
    path("feedback/result/<str:code>/", goodbuyDatabase_endpoints.result_feedback),
    path(
        "is_in_own_database/<str:code>/", goodbuyDatabase_endpoints.is_in_own_database
    ),
    path("loaderio-f149e04d132ede4fa7de07ef79d40a02/", goodbuyDatabase_views.loaderio),
]

if settings.DEBUG is True:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.urls import include, path

from accounts import views as acccount_views
from goodbuyDatabase import endpoints as goodbuyDatabase_endpoints
from goodbuyDatabase import views as goodbuyDatabase_views
from home import views as home_views

urlpatterns = [
    path("admin/", admin.site.urls),
    path("", home_views.start_screen, name="home"),
    path(
        "login/",
        auth_views.LoginView.as_view(template_name="accounts/login.html"),
        name="login",
    ),
    path(
        "logout/",
        auth_views.LogoutView.as_view(template_name="accounts/logout.html"),
        name="logout",
    ),
    path("register/", acccount_views.register, name="register"),
    path("profile/", acccount_views.user_profile, name="user_profile"),
    path("accounts/", include(("accounts.urls", "accounts"), namespace="accounts")),
    path(
        "password-reset/",
        auth_views.PasswordResetView.as_view(
            template_name="accounts/password_reset.html"
        ),
        name="password_reset",
    ),
    path(
        "password-reset/done/",
        auth_views.PasswordResetDoneView.as_view(
            template_name="accounts/password_reset_done.html"
        ),
        name="password_reset_done",
    ),
    path(
        "password-reset-confirm/<uidb64>/<token>/",
        auth_views.PasswordResetConfirmView.as_view(
            template_name="accounts/password_reset_confirm.html"
        ),
        name="password_reset_confirm",
    ),
    path(
        "password-reset-complete/",
        auth_views.PasswordResetCompleteView.as_view(
            template_name="accounts/password_reset_complete.html"
        ),
        name="password_reset_complete",
    ),
    path("home/", include(("home.urls", "home"), namespace="home")),
    path(
        "code_scanner/",
        include(("codeScanner.urls", "codeScanner"), namespace="codeScanner"),
    ),
    path(
        "goodbuyDatabase/",
        include(
            ("goodbuyDatabase.urls", "goodbuyDatabase"), namespace="goodbuyDatabase"
        ),
    ),
    path("scraper/", include(("scraper.urls", "scraper"), namespace="scraper")),
    path("is_big_ten/<str:code>/", goodbuyDatabase_endpoints.is_big_ten),
    path("lookup/<str:code>/", goodbuyDatabase_endpoints.lookup, name="aws_lookup"),
    path("local_lookup/<str:code>/", goodbuyDatabase_endpoints.local_lookup, name="django_lookup"),
    path("feedback/<str:code>/", goodbuyDatabase_endpoints.feedback),
    path("feedback/result/<str:code>/", goodbuyDatabase_endpoints.result_feedback),
    path(
        "is_in_own_database/<str:code>/", goodbuyDatabase_endpoints.is_in_own_database
    ),
    path("loaderio-f149e04d132ede4fa7de07ef79d40a02/", goodbuyDatabase_views.loaderio),
]

if settings.DEBUG is True:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)