Skip to content

Commit

Permalink
Add redirect from / to /dashboard/.
Browse files Browse the repository at this point in the history
  • Loading branch information
toolness committed Jun 14, 2021
1 parent ee4ba16 commit fb0e441
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ You will now be prompted to enter details about a new superuser. Once you've don
docker-compose up
```

You can now visit the example app's dashboard at http://localhost:8000/dashboard/.
You can now visit the example app's dashboard at http://localhost:8000/.

### Editing the documentation

Expand Down
3 changes: 3 additions & 0 deletions test_project/config/urls.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
from django.contrib import admin
from django.urls import include, path
from django.views.generic.base import RedirectView

import django_sql_dashboard


urlpatterns = [
path("dashboard/", include(django_sql_dashboard.urls)),
path("admin/", admin.site.urls),
path("", RedirectView.as_view(url="/dashboard/")),
]

0 comments on commit fb0e441

Please sign in to comment.