Only allow users to add NPC or Player characters.
[matthijs/projects/xerxes.git] / settings.py
index 30463db4fd2e346f5332d644a6519d32a7647c51..5ed30bfd1e406cd3d2cb0ea62fb3f02263c3669e 100644 (file)
@@ -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: