Skip to content

Commit

Permalink
urls
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalGawor committed Apr 7, 2024
1 parent 85328cb commit 7727c26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dogconfig/dogproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

# https://knasmueller.net/fix-djangos-debug-toolbar-not-showing-inside-docker
import socket
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
hostname, _, ips = socket.gethostbyname_ex("localhost")
INTERNAL_IPS += [".".join(ip.split(".")[:-1] + ["1"]) for ip in ips]

# Application definition
Expand Down
16 changes: 2 additions & 14 deletions dogconfig/dogproject/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
from drf_spectacular.views import SpectacularAPIView, SpectacularJSONAPIView
from rest_framework.permissions import AllowAny

<<<<<<< HEAD
from dogapi.views_api import fetch, identify, is_pid, sniff

from dogui.views_ui import home
=======
from dogapi.views_api import fetch, identify, sniff, expand_datatype
>>>>>>> main
from dogapi.views_api import fetch, identify, sniff, is_pid, expand_datatype


urlpatterns = [
<<<<<<< HEAD
re_path(r'api/openapi.yml', SpectacularAPIView.as_view(), name='openapi_schema_yml'),
re_path(r'api/openapi.json', SpectacularJSONAPIView.as_view(), name='openapi_schema_json'),

Expand All @@ -24,13 +20,5 @@
path('api/ispid/', is_pid, name='is pid'),
path('', home, name='main'),
path('__debug__/', include('debug_toolbar.urls')),
=======
re_path(r'^swagger(?P<format>\.json|\.yaml)$', schema_view.without_ui(cache_timeout=0), name='schema-json'),
re_path(r'^swagger/$', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
re_path(r'^redoc/$', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
path('fetch/', fetch, name='fetch'),
path('identify/', identify, name='identify'),
path('sniff/', sniff, name='sniff'),
path('expanddatatype/', expand_datatype, name='expand data type'),
>>>>>>> main
]

0 comments on commit 7727c26

Please sign in to comment.