-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop #864
base: master
Are you sure you want to change the base?
Develop #864
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job on your work! 🎉 While there are a few minor issues related to code style and best practices, such as the placement of the 'Home page' text within the <a>
tag, the DOCTYPE declaration, type hinting, and import statement formatting, these do not significantly impact the functionality or security of your code. Keep up the good work, and consider addressing these minor points to further enhance your code quality in the future! 😊
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
from django.urls import path | ||
from taxi.views import index |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a newline between the import statements to improve readability and adhere to PEP 8 guidelines.
from taxi.models import Driver, Manufacturer, Car | ||
|
||
|
||
def index(request) -> render: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type hint -> render
is incorrect. It should specify the return type of the function, such as -> HttpResponse
if you are returning an HTTP response. The render
function itself does not represent a type.
@@ -0,0 +1,23 @@ | |||
<!DOCTYPE "html"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DOCTYPE declaration should be <!DOCTYPE html>
without quotes. This ensures that the document is correctly interpreted as HTML5.
@@ -0,0 +1,6 @@ | |||
<ul> | |||
<li><a href="{% url 'taxi:index' %}"></a>Home page</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The text 'Home page' should be placed inside the <a>
tag to ensure it is clickable. It should be <a href="{% url 'taxi:index' %}">Home page</a>
.
No description provided.