-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DjangoGooglePointFieldWidget is not defined #26
Comments
It seems the static files not loaded in your project. Did you call You must copy the third-party packages static files into the |
Hey @erdem thanks for answering back! Sorry I missed this part of the tutorial. I ran the command The strange thing is that when I create the field with *The template has the tag |
That image is a placeholder image for blank geo point fields. There is no input option for The static files issue must be fixed after the Thanks |
Hi @erdem, I tried many things and none worked... I also created a new app (Django 1.11) to test and the problem persists (django_1-11_maps-widget.zip). Maybe you can help me, my settings.py related to static-files are as follows:
I'm just wondering, (please notice I'm a student studying the framework) the Just a question, I'm not using PostgreSQL, I'm using MySQL, and my models ain't using the Thanks, |
I didn't try the widget with If you are working on the development mode, you must add static files serving view for the Check out the links below: https://docs.djangoproject.com/en/1.11/howto/static-files/#serving-static-files-during-development https://github.com/erdem/django-map-widgets/blob/master/example/example/urls.py#L13 Thanks. |
I missed this part in this new project I created, unfortunately no luck =( Thanks Erdem, again, sorry to trouble you |
I understand the issue. Your template doesn't have Like here: I missed this part when I was writing instructions. I will update the document soon. Thank you for noticing me about that. |
It worked! Thanks @erdem! |
Guys, sorry to trouble you but I've followed the instructions in the docs and when my browser renders the page the debugger says
'ReferenceError: DjangoGooglePointFieldWidget is not defined'
in the following line:new DjangoGooglePointFieldWidget(mapWidgetOptions);
.My template already has jQuery and Bootstrap setted, and inside Django settings the app
'mapwidgets',
is placed, I don't know if this is an issue? The following image shows how the page is displayed:The text was updated successfully, but these errors were encountered: