Giter Site home page Giter Site logo

Comments (9)

alllexxx1 avatar alllexxx1 commented on August 13, 2024

Беру в работу

from hexlet-friends.

alllexxx1 avatar alllexxx1 commented on August 13, 2024

@fey, вы видите это таким образом или нужно что-то поменять?
image
image

from hexlet-friends.

fey avatar fey commented on August 13, 2024

ага, только где some token сразу инпут можно выводить с токеном.

from hexlet-friends.

alllexxx1 avatar alllexxx1 commented on August 13, 2024

Вот так?
image

from hexlet-friends.

fey avatar fey commented on August 13, 2024

@alllexxx1 да, верно. Туда должен подставляться будет токен пользователя. Если нет, то поле пустое.

from hexlet-friends.

alllexxx1 avatar alllexxx1 commented on August 13, 2024

@fey , правильно я понимаю, что на данном этапе должна быть добавлена болванка формы, которая пока ничего не делает?
Общий список изменений, которые я внес:

  • добавил "настройки" в navbar;
  • создал шаблон с настройками "contributor_settings.html", вьюшку "contributor_settings.py";
  • в mixin.py добавил 2 миксина. Первый хэндлит неавторизованных пользователей, второй - доступ к чужим настройкам. Написал к ним документацию;
  • сделал локализацю.

Is it all right?

from hexlet-friends.

fey avatar fey commented on August 13, 2024

@alllexxx1 можете добавить пользователю атрибут github_token чтобы форма могла уже сейчас добавлять токен юзеру.

Насчет того, что сделано - присылайте ПРчик и ссылку на демо =)

from hexlet-friends.

alllexxx1 avatar alllexxx1 commented on August 13, 2024

@fey, поле github_token должно быть добавлено модели Contributor, верно?

from hexlet-friends.

fey avatar fey commented on August 13, 2024

@fey если другой таблицы пользователя у нас нет, то да.
Схема такая

  1. пользователь логинится в hexlet-friends
  2. идет в наастройки, ставит токен
  3. используя этот токен потом тянутся данные с гитхаба у этого пользователя

from hexlet-friends.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.