diff --git a/README.rst b/README.rst index cf14b65..c7798a1 100644 --- a/README.rst +++ b/README.rst @@ -18,7 +18,7 @@ Install django-configurations:: pip install django-configurations Then subclass the included ``configurations.Settings`` class in your -project's ``settings.py`` or any other module you're using to store the +project's **settings.py** or any other module you're using to store the settings constants, e.g.:: from configurations import Settings @@ -37,8 +37,8 @@ import path as usual, e.g. in bash:: export DJANGO_SETTINGS_MODULE=mysite.settings To enable Django to use your configuration you now have to modify your -``manage.py`` or ``wsgi.py`` script to use django-configurations's versions -of the appropriate starter functions, e.g. a typical ``manage.py`` using +**manage.py** or **wsgi.py** script to use django-configurations's versions +of the appropriate starter functions, e.g. a typical **manage.py** using django-configurations would look like this:: #!/usr/bin/env python @@ -57,7 +57,7 @@ Notice in line 9 we don't use the common tool ``django.core.management.execute_from_command_line`` but instead ``configurations.management.execute_from_command_line``. -The same applies to your ``wsgi.py`` file, e.g.:: +The same applies to your **wsgi.py** file, e.g.:: import os @@ -71,5 +71,5 @@ The same applies to your ``wsgi.py`` file, e.g.:: Here we don't use the default ``django.core.wsgi.get_wsgi_application`` function but instead ``configurations.wsgi.get_wsgi_application``. -That's it! You can now use your project with ``manage.py`` and your favorite +That's it! You can now use your project with **manage.py** and your favorite WSGI enabled server. diff --git a/docs/index.rst b/docs/index.rst index 57f407b..d38c073 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -10,7 +10,7 @@ and adapters_ that are useful for non-trivial configuration scenarios. It allows you to use the native abilities of Python inheritance without the side effects of module level namespaces that often lead to the unfortunate -use of the ``import *`` anti-pattern. +use of the ``from foo import *`` anti-pattern. .. _mixins: http://en.wikipedia.org/wiki/Mixin .. _facades: http://en.wikipedia.org/wiki/Facade_pattern @@ -55,7 +55,7 @@ used in, e.g. in production, staging and development. Server specific settings ^^^^^^^^^^^^^^^^^^^^^^^^ -For example, imagine you have a base setting class in your ``settings.py`` +For example, imagine you have a base setting class in your **settings.py** file:: from configurations import Settings