Giter VIP home page Giter VIP logo

django-twitter-stream's People

Contributors

koreypeters avatar michaelbrooks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-twitter-stream's Issues

import fields in Models

What is the
"import fields" in the Models line 11. I'm using Django 1.8
Unable to run the app.

Migration in Django 2.0.1

I'm using Django 2.0.1, so without South. Because of that, when I run python manage.py migrate, I got errors.
Is the solution to downgrade to Djando 1.6 and install South?

URL pattern generated incorectly

Genarated URLS.py

urls for Map

# url(r'^Home/map/$', views.MapListView.as_view(), name='Home_map_list'),
# url(r'^Home/map/create/$', views.MapCreateView.as_view(), name='Home_map_create'),
# url(r'^Home/map/detail/(?P<pk>\S+)/$', views.MapDetailView.as_view(), name='Home_map_detail'),
# url(r'^Home/map/update/(?P<pk>\S+)/$', views.MapUpdateView.as_view(), name='Home_map_update'),

Correct URL pattern
url(r'^$', views.MapListView.as_view(), name='Home_map_list'),
url(r'^create/$', views.MapCreateView.as_view(), name='Home_map_create'),
url(r'^detail/(?P\S+)/$', views.MapDetailView.as_view(), name='Home_map_detail'),
url(r'^update/(?P\S+)/$', views.MapUpdateView.as_view(), name='Home_map_update'),

type object 'BaseCommand' has no attribute 'option_list'

I'm in Django 2.0.1.
After removing migrations and making new migration everything is ok and the admin page work.
When running python manage.py stream I get the error
File "/mysite/twitter_stream/management/commands/stream.py", line 46, in Command
option_list = BaseCommand.option_list + (
AttributeError: type object 'BaseCommand' has no attribute 'option_list'
Looking around I understand that BaseCommand.option_list was deprecated in Django 1.8 and removed in Django 1.10. I also understand it was fixed, but I don't realize how to change it here.
Any idea?

twitter-monitor\stream.py Syntax Error

i use django 2.2
i've followed through the instructions while making some changes to adjust the newest version. the admin page works.
however when i run python manage.py stream i get error

File "C:\Dev\Env\lib\site-packages\twitter_monitor\stream.py", line 117
    self.stream.filter(track=tracking_terms, async=True, languages=self.languages)
                                                 ^
SyntaxError: invalid syntax

the proble seems to be from the library and im not sure how to fix this since this is the first time i've tried django. do you have any idea what i could do to fix this?

MyAPIKeys

$ python manage.py stream MyAPIKeys --poll-interval 30
# The name of the default keys to use for streaming. If not set, we'll just grab one.
    'DEFAULT_KEYS_NAME': None,

I just found the MyAPIKeys AND DEFAULT_KEYS_NAME is so unclear because it is actually username in the ApiKey model.
I expected it to be either app name or username + appname, as what is shown in the Admin panel...:)

DJANGO ADMIN PAGE

Hello,
I am new to python, django and tweepy.
How do you get to Django admin page as specified here:

Provide Twitter API Keys

Once you have added twitter_stream to your list of installed apps,
the Django Admin page should include a section for the ApiKey model.
You can use this to input your Twitter API keys.

I can't seem to find the admin page using 'python manage.py runserver' and loading '127.0.0.1/admin/' gives 404

Nothing is stored in the database

Hi,
I run :
python manage.py stream
but nothing is stored in my database. The terminal hangs for a while then finally shows this stacktrace

Exception in thread Thread-50:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in *bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, _self.__kwargs)
File "/home/larry/Documents/Projects/houdini/env/local/lib/python2.7/site-packages/tweepy/streaming.py", line 157, in _run
conn.connect()
File "/usr/lib/python2.7/httplib.py", line 1176, in connect
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
File "/usr/lib/python2.7/ssl.py", line 487, in wrap_socket
ciphers=ciphers)
File "/usr/lib/python2.7/ssl.py", line 243, in __init

self.do_handshake()
File "/usr/lib/python2.7/ssl.py", line 405, in do_handshake
self._sslobj.do_handshake()
error: [Errno 104] Connection reset by peer

twitter-monitor

No module name "twitter-monitor"
What is twitter-monitor in your app?
Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.