Skip to content

Commit

Permalink
chore: redirect root path to admin (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna authored Sep 26, 2023
1 parent fc3efec commit 198d0a1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 25 deletions.
4 changes: 2 additions & 2 deletions basedosdados_api/core/urls.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# -*- coding: utf-8 -*-
from django.urls import path
from django.views.generic import RedirectView

from basedosdados_api.core.views import (
DatasetCreateView,
DatasetDeleteView,
DatasetRedirectView,
DatasetUpdateView,
HomeView,
)

urlpatterns = [
path("", HomeView.as_view(), name="home"),
path("", RedirectView.as_view(url="admin", permanent=True)),
path("dataset/", DatasetCreateView.as_view(), name="dataset"),
path("dataset_redirect/", DatasetRedirectView.as_view(), name="dataset_redirect"),
path("dataset/<uuid:pk>/", DatasetUpdateView.as_view(), name="dataset-detail"),
Expand Down
1 change: 0 additions & 1 deletion basedosdados_api/core/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
from .dataset_redirect import DatasetRedirectView # noqa: F401
from .dataset_views import DatasetCreateView # noqa: F401
from .dataset_views import DatasetDeleteView, DatasetUpdateView # noqa: F401
from .home_view import HomeView # noqa
22 changes: 0 additions & 22 deletions basedosdados_api/core/views/home_view.py

This file was deleted.

0 comments on commit 198d0a1

Please sign in to comment.