Skip to content
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

Widget not showing in Admin #23

Closed
davidkrcil opened this issue May 17, 2017 · 4 comments
Closed

Widget not showing in Admin #23

davidkrcil opened this issue May 17, 2017 · 4 comments

Comments

@davidkrcil
Copy link

davidkrcil commented May 17, 2017

Hello, I run your example from git. In admin on add/edit place page I can see only 3 text fields instead of map widget. What I am doing wrong? Thanks for any help.
David

I spent all day trying to run some of google map widget on admin. No result :-(

Mac OS, django.VERSION
(1, 11, 0, u'final', 1)
Safari

@erdem
Copy link
Owner

erdem commented May 17, 2017

The widget is working, you must have an different issue.

Did you run python manage.py collectstatic ?

@davidkrcil
Copy link
Author

Thanks. I am runing in debug so static have not set still. I will try to play with it.

@erdem erdem closed this as completed May 17, 2017
@davidkrcil
Copy link
Author

I perforemed python manage.py collectstatic. No change. It is strange if I check the HTML of admin page - I can't see anything related to the map widget:

            <div>
                
                
                    <label for="id_location_0">Location:</label>
                    
                        <input type="text" name="location_0" data-geo="formatted_address" class="places" id="id_location_0">
            </div>
        
    </div>

@erdem
Copy link
Owner

erdem commented May 17, 2017

@davidkrcil The package static files can not load. You should check your project settings. Make sure the project STATIC_URL is working. Probably, you are missing some points on project settings or rooturls.py file. Check the Django documentation.

https://docs.djangoproject.com/en/1.11/howto/static-files/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants