Skip to content

Commit

Permalink
mongo example update
Browse files Browse the repository at this point in the history
  • Loading branch information
wooyek committed Dec 25, 2015
1 parent 897f446 commit fe6ef97
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,5 @@ example/sqla/website/settings/production.py
example/gae/website/settings/local.py
example/sqla/website/settings/local.py
example/sqla/website/db.sqlite
example/mongodb/website/settings/local.py
example/mongodb/website/settings/production.py
1 change: 1 addition & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ $script = <<SCRIPT
sudo apt-get install -y htop git unzip
sudo apt-get install -y build-essential libffi-dev libssl-dev
sudo apt-get install -y python python-dev python-pip python-virtualenv
sudo apt-get install -y mongodb
sudo pip install virtualenvwrapper
# Change Time Zone
Expand Down
2 changes: 1 addition & 1 deletion example/mongodb/auth/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def by_profile(cls, profile):

@classmethod
def from_profile(cls, user, profile):
if not user or user.is_anonymous():
if not user or user.is_anonymous:
email = profile.data.get("email")
if not email:
msg = "Cannot create new user, authentication provider did not not provide email"
Expand Down
2 changes: 1 addition & 1 deletion example/mongodb/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
import website.settings
app.config.from_object(website.settings)

config = "website.settings_prd" if PRODUCTION else "website.settings_dev"
config = "website.settings.production" if PRODUCTION else "website.settings.local"
import importlib
try:
cfg = importlib.import_module(config)
Expand Down
Empty file.
File renamed without changes.

0 comments on commit fe6ef97

Please sign in to comment.