aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyaggr3g470r/__init__.py27
-rw-r--r--requirements.txt1
2 files changed, 1 insertions, 27 deletions
diff --git a/pyaggr3g470r/__init__.py b/pyaggr3g470r/__init__.py
index 4aa21687..b24f3c7d 100644
--- a/pyaggr3g470r/__init__.py
+++ b/pyaggr3g470r/__init__.py
@@ -3,12 +3,9 @@
import os
-from flask import Flask, session, g
+from flask import Flask
from flask.ext.mongoengine import MongoEngine
-from flask.ext.admin import Admin
-from flask.ext.admin.contrib.mongoengine import ModelView
-
import conf
from models import *
@@ -33,26 +30,4 @@ db.init_app(app)
from views import mail
mail.init_app(app)
-# Administration panel
-admin = Admin(app, name='pyAggr3g470r')
-# Add administrative views here
-class UserView(ModelView):
- form_subdocuments = {
- 'feeds': {
- 'form_columns': ('title', 'link')
- }
- }
-class FeedView(ModelView):
- column_filters = ['title', 'link']
-
- column_searchable_list = ('title', 'link')
-class ArticleView(ModelView):
- column_filters = ['title', 'link']
-
- column_searchable_list = ('title', 'link')
-#admin.add_view(UserView(User))
-admin.add_view(FeedView(Feed))
-admin.add_view(ArticleView(Article))
-
-
from pyaggr3g470r import views \ No newline at end of file
diff --git a/requirements.txt b/requirements.txt
index 752b8f4e..e19d044d 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -4,7 +4,6 @@ BeautifulSoup
mongoengine
Flask
flask-mongoengine
-Flask-Admin
Flask-Login
Flask-WTF
Flask-Mail
bgstack15