Giter Site home page Giter Site logo

Comments (9)

jpic avatar jpic commented on May 20, 2024

I just tried on a fresh install and I see no problem on these urls:

I'm sorry but I have no python 2.6 install anywhere ...

What did you do exactly to get this stacktrace ?

from django-autocomplete-light.

domguard avatar domguard commented on May 20, 2024

Switched to a python 2.7 just in case, still got this error
The two URLS you provided are working, but when i'm using the test_remote_project, and trying to use the autocomplete in the admin, the URLS are not the same, they're like :

http://localhost:8000/autocomplete/CityRestAutocomplete/?q=res

from django-autocomplete-light.

jpic avatar jpic commented on May 20, 2024

Can you please explain step by step how you get the error please ?

Are you sure that you got both projects running ? test_project on
localhost:8000 and test_remote_project on localhost:8001 ?

On Wed, Nov 7, 2012 at 11:43 AM, Dominique Guardiola <
[email protected]> wrote:

Switched to a python 2.7 just in case, still got this error
The two URLS you provided are working, but when i'm using the
test_remote_project, and trying to use the autocomplete in the admin, the
URLS are not the same, they're like :

http://localhost:8000/autocomplete/CityRestAutocomplete/?q=res


Reply to this email directly or view it on GitHubhttps://github.com//issues/59#issuecomment-10144114.

http://blog.yourlabs.org
Customer is king - Le client est roi - El cliente es rey.

from django-autocomplete-light.

domguard avatar domguard commented on May 20, 2024

mmm... RTFD sorry....

from django-autocomplete-light.

jpic avatar jpic commented on May 20, 2024

Well I feel a lot better now 🍻

You might also want to check out the video.

Enjoy django-autocomplete-light

from django-autocomplete-light.

jpic avatar jpic commented on May 20, 2024

Actually, it shouldn't crash like this if the remote server is down. It should just propose local results instead of trying to decode JSON. Would you like to contribute this ?

from django-autocomplete-light.

domguard avatar domguard commented on May 20, 2024

I was just evaluating your package for my project needs
I watched the video, in fact, I wanted external data access, but I did not want to create a new object when an external object is selected, just wanted to fill some internal field of the edited object
Can I easily override this behaviour ?

from django-autocomplete-light.

jpic avatar jpic commented on May 20, 2024

Of course, the autocomplete you looked at is AutocompleteRestModel, which of course implies usage of models.

There are many ways to achieve what you want. Choosing the right way depends on your specifications.

For the autocomplete choices, you should override choices_for_request(). You have the choice to inherit from AutocompleteChoiceList, AutocompleteList, AutocompleteBase (bare enough) or AutocompleteInterface (really bare).

For the autocomplete input, you could use autocomplete_light.TextWidget or initialize a javascript Autocomplete instance on your own for complete freedom.

The rest is standard Django: add an extra field (with or without the widget), do your stuff in clean_your_extra_field_name().

Did you read all the docs already ?

If you need extra help, feel free to fork this repo, and create your use case in an app of test_project like test_project/support_domguard/ for example and I'll help you.

Hope this helps.

from django-autocomplete-light.

jpic avatar jpic commented on May 20, 2024

You should really read this: http://django-autocomplete-light.readthedocs.org/en/latest/forms.html

I think it will help you understand the whole django-autocomplete-light app, and make your decisions.

from django-autocomplete-light.

Related Issues (20)

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.