Created
June 6, 2020 09:08
-
-
Save godfather68/19b4f10a2394b8eb60bf994d55d39919 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
NoReverseMatch at /
Reverse for 'post_detail' with arguments '('1',)' not found. 1 pattern(s) tried: ['$']