ahernp / django-feedreader Goto Github PK
View Code? Open in Web Editor NEWRSS Aggregator
License: BSD 3-Clause "New" or "Revised" License
RSS Aggregator
License: BSD 3-Clause "New" or "Revised" License
Hi, I try using this project but in project folder we have utils folder and utils.py both, and when i try using feedreader error raise that
lib/python2.7/site-packages/feedreader/views.py", line 18, in <module>
from .utils import build_context
ImportError: cannot import name build_context
i check and get that views.py try to use utils folder but we need utils.py
how can we fix this ?
Which changes have to be done to fully support the current Django version?
i can't run app, this is the traceback message:
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/feedreader/
Django Version: 1.4.3
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'feedreader')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Template error:
In template /home/ali/Workspace/virtualenv/djangofeedreader/project/feedreader/templates/feedreader/feeds.html, error at line 134
Reverse for ''feedreader.views.feeds'' with arguments '()' and keyword arguments '{}' not found.
124 : <div id="menu" style="width:20%;float:left">
125 : <p>
126 : <input id="show_read"
127 : class="load_request"
128 : type="checkbox"
129 : name="Show Stories Already Read">
130 : Show Read Stories
131 : </p>
132 : <h3>
133 : <a class="load_request"
134 : href=" {% url 'feedreader.views.feeds' %} "
135 : title="Show All feeds">
136 : All stories
137 : </a>
138 : <span
139 : id="unread_total"
140 : title="Mark as Read"
141 : class="load_request mark_read_request">
142 : </span>
143 : </h3>
144 : <div id="accordion">
Traceback:
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
20. return view_func(request, *args, **kwargs)
File "/home/ali/Workspace/virtualenv/djangofeedreader/project/feedreader/views.py" in feeds
122. return render_to_response('feedreader/feeds.html', context, RequestContext(request))
File "/usr/lib/python2.7/site-packages/django/shortcuts/__init__.py" in render_to_response
20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "/usr/lib/python2.7/site-packages/django/template/loader.py" in render_to_string
176. return t.render(context_instance)
File "/usr/lib/python2.7/site-packages/django/template/base.py" in render
140. return self._render(context)
File "/usr/lib/python2.7/site-packages/django/template/base.py" in _render
134. return self.nodelist.render(context)
File "/usr/lib/python2.7/site-packages/django/template/base.py" in render
823. bit = self.render_node(node, context)
File "/usr/lib/python2.7/site-packages/django/template/debug.py" in render_node
74. return node.render(context)
File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py" in render
123. return compiled_parent._render(context)
File "/usr/lib/python2.7/site-packages/django/template/base.py" in _render
134. return self.nodelist.render(context)
File "/usr/lib/python2.7/site-packages/django/template/base.py" in render
823. bit = self.render_node(node, context)
File "/usr/lib/python2.7/site-packages/django/template/debug.py" in render_node
74. return node.render(context)
File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py" in render
62. result = block.nodelist.render(context)
File "/usr/lib/python2.7/site-packages/django/template/base.py" in render
823. bit = self.render_node(node, context)
File "/usr/lib/python2.7/site-packages/django/template/debug.py" in render_node
74. return node.render(context)
File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py" in render
424. raise e
Exception Type: NoReverseMatch at /feedreader/
Exception Value: Reverse for ''feedreader.views.feeds'' with arguments '()' and keyword arguments '{}' not found.
Thank you very much for writing this app. You are very talented. I am sorry to bother you with this request, but I have been trying to use this app with other projects that are now using 2.1. Is it possible to update version that is in pypy to 2.1? I was able to install directly from this repo, but it appears that the pypy version is still using Django 2.0.
wish had it ready to translate to other languages....
Hello. Would it be possible for you to please upgrade this code to Django 2.0?
When i try to open the content at http://127.0.0.1:8000/feedreader/ then i get redirected to http://127.0.0.1:8000/accounts/login/?next=/feedreader/ which is not found. I am logged in as an admin.
I was wondering if anyone has modified the feed list functionality to reside in a select box. My goal is to allow for a better experience on a mobile browser. My thought is to use a select box populated from the list of feeds and being able to change the displayed feeds by selecting an item. I have the select box with the feeds populating it now but I need to trigger the page change. I don't want to break the "Mark as Read" functionality either but I do want to move the feed polling to a cron job so advice on that would be awesome too.
Hi, I created a new virtualenv where experimenting with django-feedreader. I added feedreader
to INSTALLED_APPS
and changed urls.py
adding url(r'^feedreader/', include('feedreader.urls', namespace='feedreader'))
as said in the docs.
The output of pip freeze
is:
Django==1.8
django-braces==1.4.0
django-feedreader==1.2.1
factory-boy==2.5.1
feedparser==5.1.3
mock==1.0.1
pytz==2015.4
six==1.9.0
The weird thing (a redirect attempt to the login page) happens trying to access http://127.0.0.1:8000/feedreader/
as anonymous user.
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/accounts/login/?next=/feedreader/
Using the URLconf defined in project.urls, Django tried these URL patterns, in this order:
^admin/
^feedreader/
The current URL, accounts/login/, didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
When I'm already authenticated everything is ok. I wonder why the error happens and why it's required to be an authenticated user to see that page, and finally what I'm doing wrong.
In the official docs, it says that I can use Django command poll_fields to update the feeds, that is not working. where should I use it?
Do you know what is the solution?
cannot import name build_context
Request Method: GET
Request URL: http://project.dev/admin/
Django Version: 1.8
Exception Type: ImportError
Exception Value:
cannot import name build_context
Exception Location: /home/vagrant/venv/local/lib/python2.7/site-packages/feedreader/views.py in , line 18
Python Executable: /home/vagrant/venv/bin/python
Python Version: 2.7.3
Python Path:
['/vagrant/merkezhaber',
'/home/vagrant/venv/bin',
'/home/vagrant/venv/lib/python2.7',
'/home/vagrant/venv/lib/python2.7/plat-linux2',
'/home/vagrant/venv/lib/python2.7/lib-tk',
'/home/vagrant/venv/lib/python2.7/lib-old',
'/home/vagrant/venv/lib/python2.7/lib-dynload',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/home/vagrant/venv/local/lib/python2.7/site-packages']
Server time: Tue, 21 Jul 2015 21:44:40 +0000
Hello
conf:
Django==1.9.2
django-feedreader==1.3.6
I did INSTALLED_APPS, ulrs, makemigration and migrate, collectstatic
But when open '/admin/feedreader' i got "403 Forbidden error"
Without admin, just on '/feedreader' i got only non-styled links
http://puu.sh/njEfM/f870cd1160.png
Where did i wrong?
I found the url setting
url(r'^feedreader/', include('feedreader.urls')),
should update to
url(r'^feedreader/', include('feedreader.urls'), namespace="feedreader"),
else, there is a error:
u'feedreader' is not a registered namespace.
I'm new in django, I'm not sure.
I have a shared hosting linux account ... I think to upload and run it from there .. how to do that ?
I add rss feed of this site:http://en.farsnews.com/rss.aspx and i get this error
TypeError at /admin/feedreader/feed/add/
argument must be 9-item sequence, not None
Request Method: POST
Request URL: http://127.0.0.1:8000/admin/feedreader/feed/add/
Django Version: 1.9.1
Exception Type: TypeError
Exception Value:
argument must be 9-item sequence, not None
Exception Location: /home/qwer/Projects/feedreader/local/lib/python2.7/site-packages/feedreader/utils.py in poll_feed, line 178
Python Executable: /home/qwer/Projects/feedreader/bin/python
Python Version: 2.7.13
Python Path:
In the docs the dependencies still look like:
Django 2.2.6
django-braces 1.13.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.