Rafał Pitoń 11 лет назад
Родитель
Сommit
6c1cd818f1
6 измененных файлов с 29 добавлено и 7 удалено
  1. 1 1
      .gitignore
  2. 1 1
      misago/__init__.py
  3. 24 2
      misago/conf/defaults.py
  4. 1 1
      misago/core/exceptionhandler.py
  5. 1 1
      misago/core/exceptions.py
  6. 1 1
      testproject/urls.py

+ 1 - 1
.gitignore

@@ -53,4 +53,4 @@ docs/_build/
 dev/
 dev-manage.py
 futuredep/
-future-manage.py
+future-manage.py

+ 1 - 1
misago/__init__.py

@@ -1 +1 @@
-__version__ = "0.6.0"
+__version__ = "0.6.0"

+ 24 - 2
misago/conf/defaults.py

@@ -1,7 +1,29 @@
 """
 Misago default settings
 
-You are strongly advised to import this file at the top of your project's settings.py
+This fille sets everything Misago needs to run.
+
+If you want to add custom app, middleware or path, please update setting vallue
+defined in this file instead of copying setting from here to your settings.py.
+
+Yes:
+
+#yourproject/settings.py
+INSTALLED_APPS += (
+    'myawesomeapp',
+)
+
+No:
+
+#yourproject/settings.py
+INSTALLED_APPS = (
+    'django.contrib.admin',
+    'django.contrib.auth',
+    'misago.core',
+    'misago.conf',
+    ...
+    'myawesomeapp',
+)
 """
 
 # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
@@ -53,4 +75,4 @@ USE_I18N = True
 
 USE_L10N = True
 
-USE_TZ = True
+USE_TZ = True

+ 1 - 1
misago/core/exceptionhandler.py

@@ -9,4 +9,4 @@ MISAGO_EXCEPTIONS = (
 
 
 def is_misago_exception(exception):
-    return exception.__class__ in MISAGO_EXCEPTIONS
+    return exception.__class__ in MISAGO_EXCEPTIONS

+ 1 - 1
misago/core/exceptions.py

@@ -16,4 +16,4 @@ class Http404(DjHttp404):
 
 
 class OutdatedUrl(Exception):
-    """The url that was used to reach view contained outdated slug"""
+    """The url that was used to reach view contained outdated slug"""

+ 1 - 1
testproject/urls.py

@@ -9,4 +9,4 @@ urlpatterns = patterns('',
     # url(r'^blog/', include('blog.urls')),
 
     url(r'^admin/', include(admin.site.urls)),
-)
+)