Skip to content
This repository was archived by the owner on Jul 22, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
A Flask Tumblelog
=================

The source code for the [Write a Tumblelog Application with Flask and MongoEngine](http://docs.mongodb.org/manual/tutorial/write-a-tumblelog-application-with-flask-mongoengine/)
The source code for the [Write a Tumblelog Application with Flask and MongoEngine](https://docs.mongodb.com/ecosystem/tutorial/write-a-tumblelog-application-with-flask-mongoengine/)
tutorial.

Installation
Expand All @@ -12,7 +12,7 @@ Installation
3. Install the required dependencies: `pip install -r requirements.txt`

Run the tumblelog:

python manage.py runserver

Goto: [http://localhost:5000](http://localhost:5000)
Goto: [http://localhost:5000](http://localhost:5000)
2 changes: 1 addition & 1 deletion tumblelog/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from flask import Flask
from flask.ext.mongoengine import MongoEngine
from flask_mongoengine import MongoEngine

app = Flask(__name__)
app.config["MONGODB_SETTINGS"] = {"DB": "localhost:27017"}
Expand Down
2 changes: 1 addition & 1 deletion tumblelog/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from flask import Blueprint, request, redirect, render_template, url_for
from flask.views import MethodView

from flask.ext.mongoengine.wtf import model_form
from flask_mongoengine.wtf import model_form

from tumblelog.auth import requires_auth
from tumblelog.models import Post, BlogPost, Video, Image, Quote, Comment
Expand Down
2 changes: 1 addition & 1 deletion tumblelog/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os, sys
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

from flask.ext.script import Manager, Server
from flask_script import Manager, Server
from tumblelog import app

manager = Manager(app)
Expand Down
26 changes: 5 additions & 21 deletions tumblelog/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
appnope==0.1.0
decorator==4.0.2
Flask==0.10.1
flask-mongoengine==0.7.1
Flask-Script==2.0.5
Flask-WTF==0.12
gnureadline==6.3.3
ipython-genutils==0.1.0
itsdangerous==0.24
Jinja2==2.8
MarkupSafe==0.23
mongoengine==0.10.0
path.py==8.1
pexpect==3.3
pickleshare==0.5
pymongo==3.0.3
simplegeneric==0.8.1
traitlets==4.0.0
Werkzeug==0.10.4
wheel==0.24.0
WTForms==2.0.2
flask
flask-script
WTForms
flask_mongoengine
Flask-WTF
2 changes: 1 addition & 1 deletion tumblelog/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from flask import Blueprint, request, redirect, render_template, url_for
from flask.views import MethodView

from flask.ext.mongoengine.wtf import model_form
from flask_mongoengine.wtf import model_form
from tumblelog.models import Post, Comment

posts = Blueprint('posts', __name__, template_folder='templates')
Expand Down