Re: Multiple Apps in one project with one database

2019-12-11 Thread Bruckner de Villiers
behalf of Miracle Reply to: Date: Wednesday, 11 December 2019 at 12:26 To: Subject: Re: Multiple Apps in one project with one database Multiple Apps can point to one database. What happens is that django creates different tables in the database. It uses this format to create the tables

Re: Multiple Apps in one project with one database

2019-12-11 Thread Miracle
Multiple Apps can point to one database. What happens is that django creates different tables in the database. It uses this format to create the tables 'appname_modelname' e.g. polls_question Infact, if you remember earlier on before runnung your first "python manage.py migrate". Django to

Multiple Apps in one project with one database

2019-12-11 Thread Bruckner de Villiers
I got to generic views (CBV’s) in part 4 of the Django tutorials and decided instead of overwriting  the function views that I would get some practice by creating a new app (polls2).  The file structure is identical to the polls app, but obviously the code is different for the generic views and