I'm trying to set up a web project that will use multiple vhosts. In particular, I have a project called "slownik" and a domain "slownik.pl".
Now, there are several apps in this project: - browser, docs, api. They share the same data, but they are different "views". Now, the common way in django to present several apps is to do this via subdirectories: slownik.pl/api, slownik.pl/docs. I don't know how to approach a setup that would make docs.slownik.pl or api.slownik.pl give me the right view. Follow up question. I have two projects that share some data. How should I approach that? Is it possible to do something like: project2.views.py: import project1.models.Book books = Book.objects.all() ==== AFAIK it should use Book class but will query project2 database, not project1 database. Thanks,
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.