discovery / django-bitly Goto Github PK
View Code? Open in Web Editor NEWA Django app that manages bit.ly links to local objects.
License: BSD 3-Clause "New" or "Revised" License
A Django app that manages bit.ly links to local objects.
License: BSD 3-Clause "New" or "Revised" License
Hey, I'm new to this but it appears that you have some missing dependencies:
System check identified no issues (0 silenced).
Unhandled exception in thread started by <function wrapper at 0x10a7a3c08>
Traceback (most recent call last):
File "/Users/ericovis/Projects/emagalhaes/env/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "/Users/ericovis/Projects/emagalhaes/env/lib/python2.7/site-packages/mezzanine/core/management/commands/runserver.py", line 163, in inner_run
super(Command, self).inner_run(*args, **kwargs)
File "/Users/ericovis/Projects/emagalhaes/env/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 124, in inner_run
self.check_migrations()
File "/Users/ericovis/Projects/emagalhaes/env/lib/python2.7/site-packages/django/core/management/base.py", line 437, in check_migrations
executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
File "/Users/ericovis/Projects/emagalhaes/env/lib/python2.7/site-packages/django/db/migrations/executor.py", line 20, in __init__
self.loader = MigrationLoader(self.connection)
File "/Users/ericovis/Projects/emagalhaes/env/lib/python2.7/site-packages/django/db/migrations/loader.py", line 52, in __init__
self.build_graph()
File "/Users/ericovis/Projects/emagalhaes/env/lib/python2.7/site-packages/django/db/migrations/loader.py", line 197, in build_graph
self.load_disk()
File "/Users/ericovis/Projects/emagalhaes/env/lib/python2.7/site-packages/django/db/migrations/loader.py", line 108, in load_disk
migration_module = import_module("%s.%s" % (module_name, migration_name))
File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/Users/ericovis/Projects/emagalhaes/env/lib/python2.7/site-packages/django_bitly/migrations/0002_auto__chg_field_stringholder_absolute_url.py", line 2, in <module>
from south.utils import datetime_utils as datetime
ImportError: No module named south.utils
A good read on the subject: http://www.boutell.com/newfaq/misc/urllength.html
Obviously, long URLs are dumb, but, sometimes we have to have them, and when we do, we often use URL-shorteners to make them friendlier. Ergo, django-bitly should probably handle longer URLs =)
The article above mentions a practical limit of 2048 or so. This seems a bit much, but 200 (current) seems unreasonably low. Maybe 512 or 1024?
the "verify_exists" parameter for models.URLField references in the models.py file breaks functionality with latest versions of Django (1.5 and 1.5.1).
django.db.models.fields.URLField.verify_exists parameter has been deprecated as of Django 1.3.1 and completely removed as of version 1.5 due to some security and performance issues.
https://dev.bitly.com/authentication.html
Is there any plan to enhance django-bitly to use the Oauth Generic tokens?
Thank you!
This error happens me randomly. I don't know the cause, it seems that its creating a link twice for same object.
This is the message:
MultipleObjectsReturned: get() returned more than one Bittle -- it returned 2! Lookup parameters were {'content_type__model': 'entry', 'content_type__app_label': 'zinnia', 'object_id': 14}
Any plans for a new release ?
I am particularly interessted by this commit:
c2a2e17
How can i track the current bitly link?
I get the following error when i use clicks
Failed secondary: {'errorCode': 500, 'errorMessage': 'ALREADY_A_BITLY_LINK', 'results': None, 'statusCode': ''}
I created a field called shorurl on modes.py
on the View i added
self.object.shorturl = Bittle.objects.bitlify(self.object.upload.url).shortUrl
on the html template i did {{ document.shorturl |clicks }}
but this gives me the error ALREADY_A_BITLY_LINK
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.