Hi,

Thank you for your long answer.

The integration will be very complex. I may write a few notes here
once I achieve something valuable.

I found older questions on stackoverflow :

http://stackoverflow.com/questions/4602790/how-to-integrate-a-satchmo-store-inside-an-existing-django-project

Regards,
Thibault J.

On 24 fév, 02:36, hynekcer <[email protected]> wrote:
> Aha, you application with many similar tables and fields but
> completely different !!
>
> Try to write a proxy-model for translation of field names, types 
> etc.https://docs.djangoproject.com/en/dev/topics/db/models/#proxy-models
>
> I expect that you know your application much better than Satchmo. Than
> is easier to write proxy for some parts of your model to satchmo data
> and modify the least possible in Satchmo.
>
> Site framework? Two different Satchmo projects can not share the same
> product in the same database if the SITE_ID are different. Maybe your
> app can.
> (If not, you can hack the django.contrib.sites.models.Site so that
> Site.Meta.db_table is assigned on startup to an expression which
> depends on the config and you can have different sites based on
> different tables in the same database but with the same SITE_ID.)
>
> Satchmo itself is not one Django application but several closely
> interconnected applications with their models etc.
> You can not probably remove much of them easily by removing from
> INSTALLED_APPS without problems but you can let most of tables empty.
>
> I never did big enything similar. I have more expirience with Satchmo
> development than with Satchmo usage :-)
> The following was not written with knowledge that apps could overlap
> so much.
> .
> 1) clonesatchmo
>
> 2) drop demo database, create empty database, enable some your apps in
> INSTALLED_APPS and South, syncdb
>    run some of:   manage.py satchmo_load_*
> - repeat this step until you are satisfied
>
> 3) Extending
> - create relations from your models to satchmo models and use also
> reverse references defined in your model.
> - remove your tables by run:
>    ./manage.py sqlclear your_app | yoursqlclient
> - repeat this step until you are satisfied
>
> 4) Hide unused
> - Hide many unused tables in admin by creating a group of staff
> members which does not have read permisstion either.
> - Rewrite templates
> - Rewrite URLs, especially for homepage
>
> 5) You can run internet and extranet server processes in the same
> directory with the same database, the same cache but with different
> settings.py (therefore different INSTALLED_APPS etc.)
>
> I remember similar older question, which I did not understand.
> Can you write a link to it?
>
> On 22 ún, 14:59, Thibault Jouannic <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi satchmo users,
>
> > I've seen the following questions asked a few times before, but did'nt
> > find a satisfying ansmer.
>
> > What's the best way to integrate satchmo into an existing project?
>
> > Let me add a few precisions. I'm building an extranet for a client of
> > mine. This is a web app allowing to build custom products (clothes),
> > processing orders, managing clients, etc. This is no an e-commerce
> > site, though, since it's not available for end user.
>
> > Today I'm required to build a very classical e-commerce site. I'm
> > looking at Satchmo and it looks great. However, since the existing app
> > already have orders, products and users management, I wonder whet is
> > the best way to layout the satchmo installation.
>
> > Should I integrate satchmo into an app into my project and use the
> > django site framework, or should I create a specific django project?
>
> > Should I use my existing models into satchmo? Is it doable? Or should
> > I use vanilla satchmo and build a gateway between the two apps? Are
> > there existing examples of such things? Any good practices?
>
> > Should I integrate satchmo into my existing db, or should I use a
> > separate one?
>
> > Any wise advices on those questions?
> > Thank you for reading.
> > Thibault J

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to