X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fxerxes.git;a=blobdiff_plain;f=settings.py;h=5ed30bfd1e406cd3d2cb0ea62fb3f02263c3669e;hp=30463db4fd2e346f5332d644a6519d32a7647c51;hb=HEAD;hpb=58fea93b179a34faacdd636c6532016f1c395d36 diff --git a/settings.py b/settings.py index 30463db..5ed30bf 100644 --- a/settings.py +++ b/settings.py @@ -36,8 +36,6 @@ LANGUAGES = ( ('en', 'English'), ) -SITE_ID = 1 - # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = True @@ -101,6 +99,7 @@ TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.debug", "django.core.context_processors.i18n", "django.core.context_processors.media", + "django.core.context_processors.request", ) LOGIN_URL = "/accounts/login/" @@ -115,6 +114,11 @@ AUTHENTICATION_BACKENDS = ( AUTH_PROFILE_MODULE = 'base.UserProfile' +# Max length for comments, in characters. +DEFAULT_MAX_COMMENT_LENGTH = 3000 + +INTERNAL_IPS = ('127.0.0.1') + # Import local settings, that are specific to this installation. These # can override any settings specified here. try: