Giter VIP home page Giter VIP logo

django-bitly's People

Contributors

bwdolphin avatar etchalon avatar fantomas42 avatar fcurella avatar joshourisman avatar ljyanesm avatar melvyn-sopacua avatar mkoistinen avatar originell avatar othreecodes avatar phedoreanu avatar richleland avatar tommysanterre 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

Watchers

 avatar  avatar  avatar  avatar  avatar

django-bitly's Issues

Missing dependencies

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

Raise the length of a URL in the models

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?

verify_exists parameters in models.py break functionality with Django 1.5 and upward

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.

MultipleObjectsReturned

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}

New release

Any plans for a new release ?

I am particularly interessted by this commit:
c2a2e17

track a current bitly link

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

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.