Comments (9)
I just tried on a fresh install and I see no problem on these urls:
- http://localhost:8000/cities_light/city/?q=res&limit=20&format=json
- http://localhost:8000/cities_light/city/?q=res&limit=20 could you check this one ?
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.
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.
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.
mmm... RTFD sorry....
from django-autocomplete-light.
Well I feel a lot better now 🍻
You might also want to check out the video.
Enjoy django-autocomplete-light
from django-autocomplete-light.
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.
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.
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.
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)
- Missing sourcemap for `nucleus.css` HOT 3
- Enable duplicate selection HOT 3
- Collectstatic error with whitenoise on 3.9.5 (same as #1281) HOT 11
- Django Widget protocol not implemented properly in WidgetMixin HOT 2
- WidgetMixin __init__ breaks when attrs is None HOT 1
- DAL compatibility with other widgets
- Dal 3.10 not working with django 4.2 HOT 1
- Filtering results based on the value of other fields in the form - issue when i reselect the first field then second field does none change to none
- DAL generates multiple selectboxes for declarative field HOT 1
- DAL 3.10.4rc breaks autocomplete views HOT 5
- autocomplete.ModelSelect2 () not working in bootstrap5 modal HOT 1
- Django Autocomplete light Forward fields outside Admin
- Forward id for a models.ForeignKey("self") HOT 2
- Tutorial gives core not found error
- Wrong selection when clicking on bottom area of item
- Non-rc release forthcoming? HOT 3
- Cloning an autocomplete form dynamically HOT 8
- The selected filter does not filter the model in the admin panel
- Automoving to first selected item
- DAL is re-ordering items with the ModelSelect2Multiple widget HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-autocomplete-light.