django-authentication

Override default get_absolute_url on User objects?

Override default get_absolute_url on User objects? Question: I’m trying to make a generic table for listing django_tables objects. I’ve got everything working, except that the get_absolute_urls() on my User objects returns: /users/<username>/ While I could create this URL, it doesn’t match with the rest of the site layout, so I’m looking for another way to …

Total answers: 2

Having Django serve downloadable files

Having Django serve downloadable files Question: I want users on the site to be able to download files whose paths are obscured so they cannot be directly downloaded. For instance, I’d like the URL to be something like this: http://example.com/download/?f=somefile.txt And on the server, I know that all downloadable files reside in the folder /home/user/files/. …

Total answers: 15