# Hostgroup can't be added

**URL:** <https://forum.ansible.com/t/hostgroup-cant-be-added/26442>\
**Category:** AWX Project\
**Tags:** awx-project, awx\
**Created:** [January 9, 2018, 12:01pm UTC](https://forum.ansible.com/t/hostgroup-cant-be-added/26442 "2018-01-09T12:01:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [January 9, 2018, 12:01pm UTC](https://forum.ansible.com/t/hostgroup-cant-be-added/26442/1 "2018-01-09T12:01:50Z")

</div>

Tom,

Instead of going to postgres, there is an easier way. Exec into the container and run awx-manage shell\_plus (Google Django shell). All the python Django models will be imported for you so you can run queries like Group.objects.filter(name=“foobar”)

You can Google Django queries to craft the need.

---

<div class="post-metadata">

**Author:** ![Tom\_Zurita](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@Tom\_Zurita](https://forum.ansible.com/u/Tom_Zurita)\
**Post date:** [January 10, 2018, 3:07pm UTC](https://forum.ansible.com/t/hostgroup-cant-be-added/26442/2 "2018-01-10T15:07:00Z")

</div>

thanks. fixed it.
