seems to me that you can setup the same database in the two settings.py of your two projects.
2013/9/24 Dig <dig.ge...@gmail.com> > Hi, > > Thanks for your reply. > I want to separate internal user and external user. > External user can use a http connection to see a few pages. (http only) > Internal user use a https connection to do some staff only operations. > (https only) > This site are deployed on AWS, and we want to leverage Security Group > (IPfirewall) to takes the restrict, > So I have to do build 2 different app for external user and internal user. > > I know that I can implement this feature in app layer, but it will waste > more CPU. > > Regards, > Dig > > > Regards, > Dig Ge > > > On Tue, Sep 24, 2013 at 10:21 PM, François Schiettecatte < > fschietteca...@gmail.com> wrote: > >> Sure, just have the DATABASES entry in the settings.py files point to the >> same server/database, or to the same server and different databases. >> >> François >> >> On Sep 24, 2013, at 10:12 AM, Dig <dig.ge...@gmail.com> wrote: >> >> > Hi, >> > >> > Please let me repeat my question shortly, I want to access the same >> database from 2 different django project/app. Can anyone help me? Thanks. >> > >> > Regards, >> > Dig >> > >> > On Sep 20, 2013 9:13 PM, "Dig" <dig.ge...@gmail.com> wrote: >> > Hi, >> > >> > There are about 20 views in a django project (with a django app). >> Recently, a new requirement occurred, someone want to split current views >> into 2 site but the database is unique. That means 2 subdomain, 2 views >> sets, 2 deployment scripts, but only one database. >> > >> > Can I implement this feature by writing 2 setting.py files? >> > >> > Environment: >> > Django 1.5.4 >> > Nginx + uwsgi >> > MySQL >> > >> > Thanks, >> > Dig >> > >> > >> > -- >> > 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. >> > For more options, visit https://groups.google.com/groups/opt_out. >> >> > -- > 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. > For more options, visit https://groups.google.com/groups/opt_out. > -- Rafael E. Ferrero -- 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. For more options, visit https://groups.google.com/groups/opt_out.