31.5.2012 19:22, Kurtis Mullins kirjoitti:
> Sure. They're just Python modules. All you need to do is:
>
> 1. Include the files: __init__.py and models.py
> 2. Add the application to your settings.py, for example: myproject.myapp.subapp
>
> It *should* work, although I haven't personally tested it yet.
>
> On Thu, May 31, 2012 at 7:46 AM, vijay shanker<vshanker.88@gmail.com> wrote:
>> can we write one app inside some another django-app .
>> please suggest any reference or articles
It works perfectly. We've been using it in our environment for a good while.
There lies only one caveat - all appnames still must be unique and as
known app name is last part of module hierarchy.
So you can't have two conflicting apps:
myapp.subapp <-- appname is subapp
myotherapp.subapp <-- appname is subapp
--
Jani Tiainen
- Well planned is half done and a half done has been sufficient before...
--
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment