-
Notifications
You must be signed in to change notification settings - Fork 6
MONGO_CLIENT flexible setting #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
litwisha
wants to merge
13
commits into
hellysmile:master
Choose a base branch
from
litwisha:mongo_client_string
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8d03742
MONGO_CLIENT setting as string
litwisha 2f049c4
Add `import_string` compatibility for django versions [1.5; 1.6]. Mod…
litwisha d58daf1
Move from MONGO_CLIENT to MONGO_DB setting; Change MONGO_DB string is…
litwisha 09d9ecc
MONGO_DB string setting test coverage
litwisha e86a2fe
Add six to dependencies
litwisha d3242f7
Add additional config var MONGO_DB that can be a db instance or a dot…
litwisha 865e70c
Handle ambigious mongo settings: make user to provide only one of the…
litwisha 6f32761
Remove MONGO_DB settings and handle MONGO_CLIENT in different ways: a…
litwisha 96a5a45
Edit tests for MONGO_CLIENT setting and use django`s six
litwisha e03e75f
Update AUTHORS: newline at the end of file
litwisha adc0b74
Fix typo
litwisha 7882920
Add django 1.6-1.10 and python 2.6-3.5 environments in tox.ini and fi…
litwisha 36e673c
Add python2.6-3.5 to django1.6-1.10 travis matrix
litwisha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,49 @@ | ||
| language: python | ||
| services: mongodb | ||
| python: | ||
| - "3.5" | ||
| - "3.4" | ||
| - "3.3" | ||
| - "3.2" | ||
| - "2.7" | ||
| - "2.6" | ||
| - "2.5" | ||
| - "pypy" | ||
| env: | ||
| - DJANGO="Django>=1.4,<1.5" | ||
| - DJANGO="Django>=1.5" | ||
| - DJANGO="Django>=1.6,<1.7" | ||
| - DJANGO="Django>=1.7,<1.8" | ||
| - DJANGO="Django>=1.8,<1.9" | ||
| - DJANGO="Django>=1.9,<1.10" | ||
| - DJANGO="Django>=1.10,<1.11" | ||
| matrix: | ||
| exclude: | ||
| - python: "3.3" | ||
| env: DJANGO="Django>=1.4,<1.5" | ||
| - python: "3.2" | ||
| env: DJANGO="Django>=1.4,<1.5" | ||
| - python: "2.6" | ||
| env: DJANGO="Django>=1.5" | ||
| - python: "2.5" | ||
| env: DJANGO="Django>=1.5" | ||
| env: DJANGO="Django>=1.7,<1.8" | ||
| - python: "2.6" | ||
| env: DJANGO="Django>=1.8,<1.9" | ||
| - python: "2.6" | ||
| env: DJANGO="Django>=1.9,<1.10" | ||
| - python: "2.6" | ||
| env: DJANGO="Django>=1.10,<1.11" | ||
|
|
||
| - python: "3.2" | ||
| env: DJANGO="Django>=1.9,<1.10" | ||
| - python: "3.2" | ||
| env: DJANGO="Django>=1.10,<1.11" | ||
|
|
||
| - python: "3.3" | ||
| env: DJANGO="Django>=1.7,<1.8" | ||
| - python: "3.3" | ||
| env: DJANGO="Django>=1.9,<1.10" | ||
| - python: "3.3" | ||
| env: DJANGO="Django>=1.10,<1.11" | ||
|
|
||
| - python: "3.4" | ||
| env: DJANGO="Django>=1.6,<1.7" | ||
|
|
||
| - python: "3.5" | ||
| env: DJANGO="Django>=1.6,<1.7" | ||
| - python: "3.5" | ||
| env: DJANGO="Django>=1.7,<1.8" | ||
| install: | ||
| - pip install $DJANGO --use-mirrors | ||
| script: python setup.py nosetests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| django-mongo-session is written and maintained by ``hellysmile`` and following contributors: | ||
|
|
||
| Patches and Suggestions | ||
| ``````````````````````` | ||
|
|
||
| - Andrew Lytvyn (``litwisha``) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,5 +3,5 @@ | |
|
|
||
| settings.configure( | ||
| SESSION_ENGINE='mongo_sessions.session', | ||
| SESSION_COOKIE_AGE=10 | ||
| SESSION_COOKIE_AGE=10, | ||
| ) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try ImportError -> import six
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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