Changeset - b398fe72388c
[Not reviewed]
0 2 0
Branko Majic (branko) - 10 years ago 2015-09-11 02:28:13
branko@majic.rs
MDT-1: Default to using development settings for project.
2 files changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
docs/usage.rst
Show inline comments
 
@@ -114,3 +114,6 @@ of the following commands (depending on which environment you want to run)::
 

	
 
If using ``virtualenv``, you may want to set the ``DJANGO_SETTINGS_MODULE``
 
environment variable in it to make your life easier.
 

	
 
If no environment settings have been specified, default settings used will be
 
the development ones.
project/manage.py
Show inline comments
 
@@ -3,7 +3,7 @@ import os
 
import sys
 

	
 
if __name__ == "__main__":
 
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings")
 
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings.development")
 

	
 
    from django.core.management import execute_from_command_line
 

	
0 comments (0 inline, 0 general)