*bump*

On 23 Okt., 11:03, Léon Dignòn <leon.dig...@gmail.com> wrote:
> callerlist will MAYBE use a database of another program (not django),
> or it uses a database of another django application. This is optional
> and I want callerlist to work with or without. For that i decided to
> create an application customerlist and develop a model Customer and an
> optional interface for any existing crms. customerlist will either use
> an own model for the crm, or a database of a completely different
> software. To have the callerlist coherent I included a customer-field
> in the PhoneCall model wich should ot throw an error if the
> customerlist application is not installed.
>
> Now I have the following model in the app callerlist with a foreign
> key customer_crm to the optional crm application.
>
> class PhoneCall(models.Model):
>     user = models.ForeignKey(auth.models.User)
>     caller_name = models.CharField(...)
>     customer_crm = models.ForeignKey(customerlist.models.Customer)
>
> If I don't want install the customerlist, model PhoneCall throws an
> error, of course! How would I best change the application callerlist
> to recognize whether customerlist is installed or not, and use the
> customer_crm field or not. Both applications have to be coherent and
> work properly alone.
>
> Any ideas?
>
> On 16 Okt., 21:11, Chip Grandits <boulderc...@gmail.com> wrote:
>
>
>
> > I'm not sure if there is an exact technical defintion of the term
> > 'bind' here. I am assuming you will need the two applications to
> > share a common database? And I am assuming that other application has
> > already been developed and
> > deployed and so you are inclined to work around it?
>
> > So this becomes more of a database question, and might be
> > particular to the particular database engine in use.  I hope it is
> > clear that you do NOT have to use a database that is created
> > with the manage.py syncdb command; although you must have
> > a database that is compatible with one that is created by that
> > command - but it can be a 'superset' of that database.
>
> > My guess is that you might need to know a little bit about the
> > command line interface of the database engine (I doubt you
> > need to be a "power user")  And then brush up on the
> > manage.py database subcommands (dumpdata, inspectdb,
> > and various sql*) and that will help clarify a solution path.
>
> > -Chip
> > On Oct 16, 10:10 am, Léon Dignòn <leon.dig...@gmail.com> wrote:
>
> > > I have a project. Within that project I have the app callerlist.
> > > Callerlist is a list of either inbound or outbound phone calls. To
> > > each phone call the following information should be written down: own
> > > name, name of the caller, subject, message and time. This app has to
> > > be coherent.
>
> > > Now, for example, I want to bind the above app to an crm system or
> > > another application with customer data. I am not sure which is the
> > > best way to provide that interface. Should I provide an additional
> > > field as a foreign key to the customer table? The table could be
> > > defined via a variable in the settings.py.
>
> > > Or are there better solutions?
>
> > > ld- Zitierten Text ausblenden -
>
> > - Zitierten Text anzeigen -- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to