mirror of
https://github.com/etesync/server
synced 2024-11-25 18:28:46 +00:00
Add an index page to make it more obvious it works.
People were getting confused by the index page returning a 404, so this commit adds an index page so it returns a 200 and looks like it works.
This commit is contained in:
parent
a87a4deec1
commit
3ccb40055e
@ -91,7 +91,9 @@ ROOT_URLCONF = 'etesync_server.urls'
|
||||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [],
|
||||
'DIRS': [
|
||||
os.path.join(BASE_DIR, 'templates')
|
||||
],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
|
@ -15,6 +15,7 @@ Including another URLconf
|
||||
"""
|
||||
from django.urls import include, path, re_path
|
||||
from django.contrib import admin
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
from rest_framework_nested import routers
|
||||
from rest_framework.authtoken import views as token_views
|
||||
@ -37,4 +38,5 @@ urlpatterns = [
|
||||
re_path(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||
re_path(r'^api-token-auth/', token_views.obtain_auth_token),
|
||||
path('admin/', admin.site.urls),
|
||||
path('', TemplateView.as_view(template_name='success.html')),
|
||||
]
|
||||
|
12
templates/success.html
Normal file
12
templates/success.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>It works!</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>It works!</h1>
|
||||
<p>
|
||||
Please refer to the <a href="https://github.com/etesync/server-skeleton/">README</a> to complete the final steps if you haven't done so already.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user