I was thinking something like this:
url = models.CharField(max_length=2047)
Is there a solution that would be more efficient for the ORM / SQL?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You can use a URLField but it’s just a subclass of CharField and thus defaults to 200 characters.
However IE8 & 9‘s limit for URL length is 2083 chars, Firefox, Opera, and Safari can handle at least 80,000 chars. I doubt you’ll ever see a URL that long without a bunch of get data (like
&whatever=1&whatelse=2...)