Hello Guys,
I would like to run several domains from one Django project.
- same data base
- same authentification
- same admin
- different apps
I understood that I have to create two different pythonanywhere web apps anyways, but that's not the issue.
Then I don't manage to bring all the pieces together in my head.
- two different settings files, but how ?
- using the Django Sites framework ?
- what about ALLOWED_HOSTS ? of course in the end the 2 hosts should be allowed, but not for all the apps in the projects. The goal is to share the global infrastructure, database and code base, but avoid the conflicts: domain1/appname should work, but domain2/appname shouldn't.
I don't know if I'am 100% clear. If not, just tell me and I'll try to clarify further.
If it is clear enough, I would really appreciate some help to understand the core concepts and get it right.
Thank you very much in advance for your help and happy new year ! Lionel