the app, and want to use it in another app (user profile) to show all
user's links.
After reading this links I see, that there's nothing wrong in linking
models from another apps. I read that part of manual, but I didn't
remember that part of manual:
"It's perfectly OK to relate a model to one from another app."
So thanks for your links.
On 23 Paź, 19:51, werefr0g <weref...@yahoo.fr> wrote:
> Hello,
>
> You have defined "MyClass" for "foo" application in its models.py, and
> you want to use that class in your application "bar"?
>
> You'll find how to use models from another app in Django documentation
> [1]. A widly spread example is the import of User in your app from
> django.contrib.auth [2]. By searching the web for "from
> django.contrib.auth import User", I found a discussion about the best
> way to import [3].
>
> Regards
>
> [1]http://docs.djangoproject.com/en/dev/topics/db/models/#models-across-...
> [2]http://docs.djangoproject.com/en/dev/topics/auth/#module-django.contr...
> [3]http://stackoverflow.com/questions/1704058/python-and-django-best-imp...
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment