Browse Source

small cleanups of template settings.py

Rafał Pitoń 8 years ago
parent
commit
37a2299b08
1 changed files with 5 additions and 4 deletions
  1. 5 4
      misago/project_template/project_name/settings.py

+ 5 - 4
misago/project_template/project_name/settings.py

@@ -12,16 +12,17 @@ https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/
 
 import os
 
+
+# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
+BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+
+
 # Define placeholder gettext function
 # This function will mark strings in settings visible to makemessages
 # without need for Django's i18n features be initialized first.
 _ = lambda x: x
 
 
-# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
-BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-
-
 # Quick-start development settings - unsuitable for production
 # See https://docs.djangoproject.com/en/{{ docs_version }}/howto/deployment/checklist/