diff --git a/bookstore/settings.py b/bookstore/settings.py index 3386fce..3765546 100644 --- a/bookstore/settings.py +++ b/bookstore/settings.py @@ -27,7 +27,7 @@ DEBUG = True ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'matheusdevfullstack.pythonanywhere.com'] -# ALLOWED_HOSTS = ['*'] +# Adicionado dominio do meu app no pythonanywhere no ALLOWED_HOSTS # Application definition diff --git a/bookstore/templates/hello_world.html b/bookstore/templates/hello_world.html index 68af450..e1a65c1 100644 --- a/bookstore/templates/hello_world.html +++ b/bookstore/templates/hello_world.html @@ -1,4 +1,5 @@ +{% comment %} Adicionada está Página {% endcomment %} diff --git a/bookstore/urls.py b/bookstore/urls.py index a48a26a..06ba0cb 100644 --- a/bookstore/urls.py +++ b/bookstore/urls.py @@ -27,6 +27,7 @@ re_path("bookstore/(?P(v1|v2))/", include("order.urls")), re_path("bookstore/(?P(v1|v2))/", include("product.urls")), path("api-token-auth/", obtain_auth_token, name="api_token_auth"), - path("update_server/", views.update, name="update"), + path("update_server/", views.update, name="update"), path("hello/", views.hello_world, name="hello_world"), + # Adicionado novas URLS ] diff --git a/bookstore/views.py b/bookstore/views.py index a141928..e04d3d1 100644 --- a/bookstore/views.py +++ b/bookstore/views.py @@ -24,4 +24,6 @@ def update(request): def hello_world(request): template = loader.get_template('hello_world.html') - return HttpResponse(template.render()) \ No newline at end of file + return HttpResponse(template.render()) + +# Configurada essa view para integração continua com o pythonanywhere \ No newline at end of file