added null constraint to Post::title model
This commit is contained in:
@@ -112,7 +112,7 @@ class RelUserMandant(models.Model):
|
||||
return (str(self.user) + " -> " + str(self.mandant))
|
||||
|
||||
class Post(models.Model):
|
||||
title = models.CharField(max_length=255)
|
||||
title = models.CharField(max_length=255, null=False, blank=False)
|
||||
slug = models.SlugField(unique=True, max_length=255)
|
||||
content = models.TextField()
|
||||
published = models.BooleanField(default=True)
|
||||
|
||||
@@ -73,8 +73,8 @@ MEDIA_URL = '/media/'
|
||||
# Don't put anything in this directory yourself; store your static files
|
||||
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
|
||||
# Example: "/home/media/media.lawrence.com/static/"
|
||||
#STATIC_ROOT = '/opt/TipPy/TipPy/static/'
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'static/')
|
||||
STATIC_ROOT = '/home/martin/dev/tippy/TipPy/static/'
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
|
||||
|
||||
# URL prefix for static files.
|
||||
# Example: "http://media.lawrence.com/static/"
|
||||
@@ -85,7 +85,7 @@ STATICFILES_DIRS = (
|
||||
# Put strings here, like "/home/html/static" or "C:/www/django/static".
|
||||
# Always use forward slashes, even on Windows.
|
||||
# Don't forget to use absolute paths, not relative paths.
|
||||
#'/opt/TipPy/TipPy/tipp/static/',
|
||||
'/home/martin/dev/tippy/TipPy/tippy/static',
|
||||
)
|
||||
|
||||
# List of finder classes that know how to find static files in
|
||||
|
||||
Reference in New Issue
Block a user