-
Notifications
You must be signed in to change notification settings - Fork 854
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 #764
base: master
Are you sure you want to change the base?
Develop #764
Conversation
MaksymProtsak
commented
Aug 21, 2024
taxi/views.py
Outdated
def test_session_view(request: HttpRequest) -> HttpResponse: | ||
return HttpResponse( | ||
"<h1>Test Session</h1>" | ||
f"<h4>Session data: {request.session['test']}</h4>" | ||
) |
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.
Please remove this view
taxi/migrations/0001_initial.py
Outdated
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.
Please do not modify the migration files.
.gitignore
Outdated
/accounts/migrations/__init__.py | ||
/accounts/__init__.py | ||
/accounts/admin.py | ||
/accounts/apps.py | ||
/accounts/models.py | ||
/accounts/tests.py | ||
/accounts/views.py | ||
/accounts/urls.py | ||
/templates/registration/login.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.
Why do you need this here?
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.
Looks Good!
But please do not modify migration files. If you make changes to the models, it is better to create a new migration
Actualy I did not edit migration file. In first time I changed Meta for model, created migrations. After that I found solution without edigint Meta, and deleted Meta from model. Again the migration has been created. |
I remembered how I did that. I used Ctrl+Shift+R to mage changes from accounts to registrations. |
If solution is good, please make approve) |
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.
GJ!