Git Product home page Git Product logo

Comments (3)

mutaku avatar mutaku commented on July 25, 2024

I decided to go with a user auth system since we can make a simple form that will fit in the opened mini-window on submitting and uses cookies. Since we use the built-in methods, we just have to add "@login_required" decorator to whatever views we want to put it at (probably just submit because we need index open and we want redirects to work for all, so just submit and maybe a custom 'show me mine' view).

The only thing that needs worked on now is registration setup for those wanting to submit links.

Also, then have to pull in the authenticated_user type variable on inserts and put that guy in the cookie column of the database.

from stumpy.

mutaku avatar mutaku commented on July 25, 2024

Users now need to be authenticated to send in a url.
It also uses that user's name (via request.user) to send into the model as the cookie string.
e.g.
http://docs.djangoproject.com/en/dev/topics/auth/#... 2a 254a1003b9975abf0bff4908ab833ca098d04362 April 6, 2011, 4 p.m. 1 xiao_haozi

from stumpy.

mutaku avatar mutaku commented on July 25, 2024

@sublevo forgoing the registration setup for a manual admin addition method for now. Closed.

from stumpy.

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.