# Importing User model in another app

**URL:** <https://forum.djangoproject.com/t/importing-user-model-in-another-app/14845>\
**Category:** Using the ORM\
**Created:** [July 16, 2022, 1:06pm UTC](https://forum.djangoproject.com/t/importing-user-model-in-another-app/14845 "2022-07-16T13:06:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KNnaobiV](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/knnaobiv/32/9297_2.png) [@KNnaobiV](https://forum.djangoproject.com/u/KNnaobiV)\
**Post date:** [July 16, 2022, 1:06pm UTC](https://forum.djangoproject.com/t/importing-user-model-in-another-app/14845/1 "2022-07-16T13:06:45Z")

</div>

Using django, the convention for importing a model from one app to another, is `AppName.ModelName`  
and now you can use it in say a ForeignKey. Does this also stand with User models when using `django.contrib.auth.get_user_model`? Because I have an application where I am trying to assign the user model to another model `Foo` such that `Foo.user=get_user_model()` and when I run `makemigrations`, I keep getting this error: `TypeError: __init__ () missing 1 required positional argument: 'to'`  
What am I missing here?  
I have also tried assigning ForeignKey model to `settings.AUTH_USER_MODEL`

---

<div class="post-metadata">

**Author:** ![KNnaobiV](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/knnaobiv/32/9297_2.png) [@KNnaobiV](https://forum.djangoproject.com/u/KNnaobiV)\
**Post date:** [July 16, 2022, 1:16pm UTC](https://forum.djangoproject.com/t/importing-user-model-in-another-app/14845/2 "2022-07-16T13:16:21Z")

</div>

Figured it out, thanks… i had a typo
