Comments (3)
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.
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.
@sublevo forgoing the registration setup for a manual admin addition method for now. Closed.
from stumpy.
Related Issues (20)
- self stump HOT 2
- hardcoded urls HOT 1
- Mass importing URLs HOT 5
- rewrite base62 as class sets HOT 1
- hash url and admin interface HOT 1
- @login_required HOT 2
- urls.py regex HOT 5
- dupe submit HOT 2
- branches - public vs dev
- key generation HOT 1
- weird stripping in request data (http://google.com -> http:/google.com) HOT 1
- no protocol specific links break redirect() HOT 2
- bookmarklet size
- login next url query string issue HOT 1
- some short url lookups broken HOT 1
- admin clickable link
- URL submit from main page
- Show User Stumps on Main Page HOT 1
- clipboard feature now working within iframe bookmarklet HOT 1
- Switch to using query string submission rather than url parsing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stumpy.