SG2791 SG2791 - 2 months ago 15
Apache Configuration Question

Django: Two projects from landing page

I am planning on a Django multi-project system, where I'll have a Django project hosting the landing page. Then I wish to have two links to two of the separate django projects (maybe that can grow to three in future).

Now, I saw the apache config part in SO as well as in google. But I want to know, what should be the link be in the two buttons on the landing page, as in how would the url pattern be?

Answer

If they're totally separate projects (not separate apps, but separate projects), you won't be able to use the {% url %} filter. Just hardcode the URL in the templates.

Or you could store the URLs in the database, so you can update them without having to re-deploy the application. Either way, though, the URLs will have to be hardcoded.

Comments