- Greetings
- Base
- users_generator
- phone_book
- session_app
- accounts
- middlewares
- drf_crud
make homework-i-run
- start projectmake init-dev
- install requirementsmake pre-commit-run-all
- run pre-commit tool for all filespython manage.py generate_info NUMBER
- generate required amount of users (by default 10)python manage.py generate_info -i or --ignore NUMBER
- generate required amount of users (by default 10) and set is_auto_generated field in model to Falsepython manage.py delete_info
- delete auto generate users infopython manage.py delete_info --all
- delete ALL users infomake d-homework-i-run
- start project in dockermake d-homework-i-purge
- make all actions needed for purge homework related data.make d-run-i-local-run
- run postgres locallypython manage.py delete_session_info -ds or --delete_sessions
- delete all sessions info from DB
Link "Home"
/
- home page
Link "Greetings"
/greetings/
- home page with greetings for random name/greetings/(some name)
- greetings for some name
Link "Users"
/users/
- view random users with name, email and password, by default 10 users/users/?amount=(some integer)
- view random user info by the specified value
Link "Phone Book"
/phone-book/
- view phone book with name, phone number and date of birthday
- Link
Add user
- inside linkPhone Book
/phone-book/add-user/
- Link
Search user
- inside linkPhone Book
/phone-book/search-user/
- you can enter phone number or user ID and see info about him
- Button
Delete user
- delete user(login required) - Button
Update user
- updater user info(login required, can't confirm updates without log in)
Link "Session Info"
/session/
- view user session info
- View session key
- View number of visits
- View last time of user visit
Link Log In
/login/
- view log in form
Link Log In
/logout/
- logout from account
Link Register
/accounts/signup/
- registration form
Link Edit profile
/accounts/edit/<pk>
- views if you authorize. here you can edit your profile
Link Middleware
- main page of middleware and session info(name it like this to easy understanding)
- Link
All info about actions
- inside linkMiddleware
- info about all users sessions, activity and last visit
- Link
Info about current session actions
- inside linkMiddleware
- info about current session, activity and last visit
- Link
Info about current user actions
- inside linkMiddleware
- info about current user session, activity and last visit
API Links Edit profile
api/v1/contacts/
- list all contacts as API (require auth)api/v1/create/
- API endpoint to create contact (require auth)api/v1/show/contact_pk
- API endpoint to show one contact (require auth)api/v1/update/contact_pk
- API endpoint to update one contact (require auth)api/v1/delete/contact_pk
- API endpoint to delete one contact (require auth)