Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
joke2k committed Jun 25, 2018
1 parent 6afb6b4 commit 27df758
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 47 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -12,6 +12,8 @@ Added
+++++
- Support for Django 2.0
- Support for smart casting
- Support PostgreSQL unix domain socket paths
- Tip: Multiple env files

Changed
+++++++
Expand Down
48 changes: 1 addition & 47 deletions README.rst
Expand Up @@ -9,36 +9,6 @@ Django-environ

.. _settings.py:

<<<<<<< HEAD
Behold, the power of django-environ in your ``settings.py``:
=======
MEDIA_ROOT = os.path.join(SITE_ROOT, 'assets')
MEDIA_URL = '/media/'
STATIC_ROOT = os.path.join(SITE_ROOT, 'static')
STATIC_URL = '/static/'

SECRET_KEY = '...im incredibly still here...'

CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': [
'127.0.0.1:11211', '127.0.0.1:11212', '127.0.0.1:11213',
]
},
'redis': {
'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': '127.0.0.1:6379/1',
'OPTIONS': {
'CLIENT_CLASS': 'django_redis.client.DefaultClient',
'PASSWORD': 'redis-githubbed-password',
}
}
}

After:
>>>>>>> develop

.. code-block:: python
import environ
Expand All @@ -63,19 +33,6 @@ After:
'extra': env.db('SQLITE_URL', default='sqlite:////tmp/my-tmp-sqlite.db')
}
<<<<<<< HEAD
# Parse cache connection url strings like memcache://127.0.0.1:11211
=======
public_root = root.path('public/')

MEDIA_ROOT = public_root('media')
MEDIA_URL = '/media/'
STATIC_ROOT = public_root('static')
STATIC_URL = '/static/'

SECRET_KEY = env('SECRET_KEY') # Raises ImproperlyConfigured exception if SECRET_KEY not in os.environ

>>>>>>> develop
CACHES = {
# read os.environ['CACHE_URL'] and raises ImproperlyConfigured exception if not found
'default': env.cache(),
Expand Down Expand Up @@ -239,10 +196,8 @@ SQLite urls
SQLite connects to file based databases. The same URL format is used, omitting the hostname,
and using the "file" portion as the filename of the database.
This has the effect of four slashes being present for an absolute
<<<<<<< HEAD

file path: ``sqlite:////full/path/to/your/database/file.sqlite``.
=======
file path: sqlite:////full/path/to/your/database/file.sqlite.

Nested lists
------------
Expand Down Expand Up @@ -304,7 +259,6 @@ Tests
$ git clone git@github.com:joke2k/django-environ.git
$ cd django-environ/
$ python setup.py test
>>>>>>> develop

How to Contribute
-----------------
Expand Down

0 comments on commit 27df758

Please sign in to comment.