Skip to content

Instantly share code, notes, and snippets.

@godfather68
Created June 6, 2020 09:08
Show Gist options
  • Save godfather68/19b4f10a2394b8eb60bf994d55d39919 to your computer and use it in GitHub Desktop.
Save godfather68/19b4f10a2394b8eb60bf994d55d39919 to your computer and use it in GitHub Desktop.
from django.db import models
class Post(models.Model):
title = models.CharField(max_length=200)
content = models.TextField(max_length=200, unique=True)
def __str__(self):
return self.title
@Hussain-py
Copy link

NoReverseMatch at /
Reverse for 'post_detail' with arguments '('1',)' not found. 1 pattern(s) tried: ['$']

@godfather68
Copy link
Author

Can I have a look at your full models.py file so I can help you out ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment