Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3753538
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:24:27+00:00 2026-05-19T09:24:27+00:00

One feature I would like to add to my django app is the ability

  • 0

One feature I would like to add to my django app is the ability for users to create some content (without signing up / creating an account), and then generating a content-specific link that the users can share with others. Clicking on the link would take the user back to the content they created.

Basically, I’d like the behavior to be similar to sites like pastebin – where users get a pastebin link they can share with other people (example: http://pastebin.com/XjEJvSJp)

I’m not sure what the best way is to generate these types of links – does anyone have any ideas?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T09:24:27+00:00Added an answer on May 19, 2026 at 9:24 am

    You can create these links in any way you want, as long as each link is unique. For example, take the MD5 of the content and use the first 8 characters of the hex digest.

    A simple model for that could be:

    class Permalink(models.Model):
        key = models.CharField(primary_key = True, max_length = 8)
        refersTo = models.ForeignKey(MyContentModel, unique = True)
    

    You could also make refersTo a property that automatically assigns a unique key (as described above).

    And you need a matching URL:

    url("^permalink/(?P<key>[a-f0-9]{8})$",
        "view.that.redirects.to.permalink.refersTo"),
    

    You get the idea…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently creating a application and would like to add a AJAX feature,
I am using Djangos default authentication system (django.contrib.auth) and I would like to add
I am currently using Django Users model. Very simple. However, I'd like to add
My employer is currently trying out Fogbugz and one feature that would be nice
I am switching to Emacs from TextMate. One feature of TextMate that I would
One feature of my Backbone app involves associating models of type A with models
i have been developing a URL shortener and would now like to add the
I would like to add a click handler to an image that changes the
Hi every one i em planning to develop an app like delicious . in
I'm working on a feature to add the ability for each of our customers

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.