diff --git a/core/models.py b/core/models.py index 7ecc93d..c38d122 100644 --- a/core/models.py +++ b/core/models.py @@ -13,8 +13,8 @@ class Patch(models.Model): class Chunk(models.Model): patch = models.ForeignKey(Patch) chunkNum = models.IntegerField() - originalFile = models.CharField(max_length = 50) - newFile = models.CharField(max_length = 50) + originalFile = models.CharField(max_length = 100) + newFile = models.CharField(max_length = 100) chunkText = models.TextField() chunkHtml = models.TextField() diff --git a/manage.py b/manage.py index 151be25..bcdd55e 100755 --- a/manage.py +++ b/manage.py @@ -1,4 +1,4 @@ -#!/usr/local/bin/python2.5 +#!/usr/bin/python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. diff --git a/settings.py b/settings.py index c4f78fe..bcf79bc 100644 --- a/settings.py +++ b/settings.py @@ -7,7 +7,7 @@ ('Anirudh', 'anirudh@anirudhsanjeev.org'), ) -DOMAIN = 'http://patchbin.com' +DOMAIN = domain MANAGERS = ADMINS @@ -66,15 +66,12 @@ ROOT_URLCONF = 'patchbin.urls' -if(DEBUG): - TEMPLATE_DIRS = ( - # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". - # Always use forward slashes, even on Windows. - # Don't forget to use absolute paths, not relative paths. - '/home/antileet/webapps/patchbin/patchbin/templates', - ) -else: - TEMPLATE_DIRS = () # TODO: put something in here +TEMPLATE_DIRS = ( + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. + templatepath +) INSTALLED_APPS = ( 'django.contrib.auth',