Skip to content

MONGO_CLIENT flexible setting#5

Open
litwisha wants to merge 13 commits into
hellysmile:masterfrom
litwisha:mongo_client_string
Open

MONGO_CLIENT flexible setting#5
litwisha wants to merge 13 commits into
hellysmile:masterfrom
litwisha:mongo_client_string

Conversation

@litwisha

Copy link
Copy Markdown
Contributor

Add functionality to process MONGO_CLIENT setting as dotted path string to connection with database name.

@litwisha litwisha changed the title MONGO_CLIENT as string MONGO_DB as string Dec 23, 2016
@litwisha litwisha changed the title MONGO_DB as string MONGO_DB setting Dec 23, 2016
Comment thread mongo_sessions/settings.py Outdated
@@ -1,9 +1,17 @@
import six

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

django.six

@litwisha litwisha changed the title MONGO_DB setting MONGO_CLIENT flexible setting Dec 27, 2016
Comment thread AUTHORS Outdated
Patches and Suggestions
```````````````````````

- Andrew Lytvyn (``litwisha``) No newline at end of file

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new line!

import six
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils import six

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try ImportError -> import six

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked out all django versions starting from 1.6:
they all have django.utils.six module

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, then set to setup.py >=1.6,<2, there will be no six at django 2

@hellysmile

hellysmile commented Dec 28, 2016

Copy link
Copy Markdown
Owner

FIx tox.ini/.travis.yml to use django 1.6-1.10, there right now 1.4-1.6
add python 2.6-3.6 there as well, to supported Django versions matrix

@hellysmile

Copy link
Copy Markdown
Owner

Almost one year after, @litwisha are You still interested to make it live? as well I was told that @FedirAlifirenko found bugs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants