Commits

danjac  committed b7f0241

Make default app root

  • Participants
  • Parent commits 786754a

Comments (0)

Files changed (4)

 # use glob syntax.
 syntax: glob
 *.pyc
-.git
 .DS_Store
-local_settings.py
-test_settings.py
-kiln_creds.py
 tags
-sessions
 ptags
 *.swp
 *.swo
 *.orig
 .idea/*
 *.ropeproject
-last_migration.txt
-last_revision.txt

File project_name/settings/base.py

     'debug_toolbar.middleware.DebugToolbarMiddleware',
 )
 
+TEMPLATE_CONTEXT_PROCESSORS = (
+    "django.core.context_processors.debug",
+    "django.core.context_processors.i18n",
+    "django.core.context_processors.media",
+    "django.core.context_processors.static",
+    "django.core.context_processors.tz",
+    "django.core.context_processors.request",
+    "django.contrib.auth.context_processors.auth",
+    "django.contrib.messages.context_processors.messages",
+)
+
 INTERNAL_IPS = ('127.0.0.1',)
 
 ROOT_URLCONF = '{{ project_name }}.urls'
     'sorl.thumbnail',
 
     # my apps
+    '{{ project_name }}',
+
     #'{{ project_name }}.apps.foo',
 )
 

File project_name/settings/production.py

 
 INSTALLED_APPS += ('sentry,')
 
-DATABASES['default']['NAME'] = '{{ project_name }}_development'
+DATABASES['default']['NAME'] = '{{ project_name }}_production'
 
 SENTRY_LOG_DIR = os.path.join(PROJECT_DIR, 'logs')
 SENTRY_RUN_DIR= os.path.join(PROJECT_DIR, 'run')

File project_name/wsgi.py

 """
 import os
 
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings")
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings.production")
 
 # This application object is used by any WSGI server configured to use this
 # file. This includes Django's development server, if the WSGI_APPLICATION