Hello,

Everything is an application in Django, and you can see them
in settings.INSTALLED_APPS.

Then you can include your app models/forms/etc. from
anywhere else in the project containing the previous app.

To check if the app is registrered or not, you can use the
Django Application (new in Django 1.7). Please read
https://docs.djangoproject.com/en/1.7/ref/applications/

From your example, you can have an app called "comment"
that inside has some models and can be related to anything
else, or the reverse any of your model in your project related
to some model from the comment app.

For more information, please check out the "comments" app
in django.contrib :)

Thanks

aRkadeFR

On 03/26/2015 11:37 AM, Eduardo Pascoal wrote:
Hi everyone,
I am a Django newbie and I'm facing the problem related with binding applications.

My intention is to make a new functionality to manage comments (i don't want to use disqus) and for that reason i want to create an application and integrate with another one that i've created in first place.

What is the best way to do that? How can i bind them?

It is simply like when i use django contrib auth model?

|
fromdjango.db importmodels
fromdjango.contrib.auth.models importUser

classGroup(models.Model):
    groupName = models.CharField(max_length=200)
    users =models.ManyToManyField(User,through='GroupWatcher')
def__unicode__(self):
returnself.groupName


|


something like this...

|
|
fromdjango.db importmodels
fromapp2.models import||MyApp2Model||

classGroup(models.Model):
    groupName = models.CharField(max_length=200)
users =models.ManyToManyField(||||MyApp2Model||||,through='GroupWatcher')
def__unicode__(self):
returnself.groupName
|

|
--
You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com <mailto:django-users+unsubscr...@googlegroups.com>. To post to this group, send email to django-users@googlegroups.com <mailto:django-users@googlegroups.com>.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ca41151f-bc0f-412e-bf85-780916f90cf7%40googlegroups.com <https://groups.google.com/d/msgid/django-users/ca41151f-bc0f-412e-bf85-780916f90cf7%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5513EB2B.3010705%40arkade.info.
For more options, visit https://groups.google.com/d/optout.

Reply via email to