Giter Club home page Giter Club logo

Comments (15)

tanjunwu avatar tanjunwu commented on June 17, 2024

@ktzy0305 This To-Do-Item, is it in the form of "Project" or "Post"? (based on previous django)

from eti-to-do-app.

ktzy0305 avatar ktzy0305 commented on June 17, 2024

For this project, the To-Do Item is different from the form of a "Project" or "Post" that was done in CA1.
Based on what is needed for Sprint 1 for this feature, the To-Do Item model should just have one text field for content so that the user can see it as a list item on this page.

If you have any more questions, please feel free to ask.

from eti-to-do-app.

tanjunwu avatar tanjunwu commented on June 17, 2024

@ktzy0305 after I done the unit test case, do I need to upload inside to this git? or I just keep it for my self-reference?

from eti-to-do-app.

tanjunwu avatar tanjunwu commented on June 17, 2024

@ktzy0305 I'm actually thinking if it would be a good idea to merge Admin post page with To-Do Item page. Since admin page requires user to login, and theres edy show,add,delete function for post, would it be better? Then we do a bit of twist here and there to meet the requirement....

from eti-to-do-app.

ktzy0305 avatar ktzy0305 commented on June 17, 2024

@tanjunwu

Referring to your 1st question
I think it would be better to upload your unit test case too and reference the commit number so that Mr Low would know that your contributions tally with your work done.

Referring to your 2nd question
For the Admin post page, are you referring to the Django Admin Dashboard?
Because if you are referring to the Django Admin Dashboard where you can show, add, delete a To-Do Item, only superuser accounts can access that page. So, I don't think that is a good idea.

from eti-to-do-app.

tanjunwu avatar tanjunwu commented on June 17, 2024

@ktzy0305
Not really, just enable staff status to them, and set the permission to edit/make changes to "To-do item"/post.
you can try using the previous django project and create one staff user.

from eti-to-do-app.

ktzy0305 avatar ktzy0305 commented on June 17, 2024

@tanjunwu

If you know how to do it then go ahead.

from eti-to-do-app.

tanjunwu avatar tanjunwu commented on June 17, 2024

I created a To-Do page with minimum required changes in setting.py and url.py in the ToDoApp folder.
Changes made:
To_do_page folder/app created
Added 'To_do_page' in setting.py Installed App,
Added 'from To_do_page.views import todoGreeting' and path('To_do_page/', todoGreeting) in url.py
commited made: 9bf4293

from eti-to-do-app.

tanjunwu avatar tanjunwu commented on June 17, 2024

Created and post unit test case into To_do_page folder
commited made: b1e262a

from eti-to-do-app.

tanjunwu avatar tanjunwu commented on June 17, 2024

@ktzy0305 I had successfully completed the To-Do page template, whereby it will display all the To-Do item regardless of the owner. But based on my unit test, it still requires a little change once the login page is done to display the login user name as a greeting
@githubbing97 Maybe QA can start writing the test for it already
commit number: 40619ed

from eti-to-do-app.

ktzy0305 avatar ktzy0305 commented on June 17, 2024

@tanjunwu Noted with thanks. Will create an issue for QA @githubbing97 to start testing on test 40619ed

from eti-to-do-app.

tanjunwu avatar tanjunwu commented on June 17, 2024

@ktzy0305 I had successfully merged the login page done by marcus with the To_do_page.
Home.html template for login can be deleted as it is not used.
created logout_views function to clear user credential in views.py and also in urls.py for To_do_page
In setting.py also edited the Login_redirect_url to "todopage"
Lastly, no changes made to login.html.
commit reference: 5ca7700

from eti-to-do-app.

tanjunwu avatar tanjunwu commented on June 17, 2024

@ktzy0305 @githubbing97 , I had offcially done for this issues. I checked there is no issues to it anymore. However, if you happen to find any errors, feel free to tell me. Thanks!

from eti-to-do-app.

ktzy0305 avatar ktzy0305 commented on June 17, 2024

Alright noted with thanks!

from eti-to-do-app.

tanjunwu avatar tanjunwu commented on June 17, 2024

@ktzy0305 I had done the pytest for my unit test cases under the file "test_todopage.py" and image result "test_todopage_result.PNG" under img folder in To_do_page folder
commit reference: 578019a

from eti-to-do-app.

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.