Thanks so much for this. Exactly what I needed. Works great and I've also
discovered reverse_lazy() for use with my urls.py in cases such as the
next_page variable for authentication. One issue I have found is when
wanting to have urls with optional arguments. Overloading the view function
with
Daniel is correct. One more point though, there are cases where you may
want to use the full url instead of just "/django_project/", in which case,
you should use settings.BASE_URL or {{ request.get_host }}.
To use either of those in the template, the template would need to be
rendered with a R
On Monday, 3 June 2013 15:50:21 UTC+1, huw_at1 wrote:
> Hi there, I've run into an issue whereby on production my Django project
> is accessed from a URL such as http://example.com/django_project/. Apache
> is configured to host the code under this URL since I do not want the
> entire site mana
Hi there, I've run into an issue whereby on production my Django project is
accessed from a URL such as http://example.com/django_project/. Apache is
configured to host the code under this URL since I do not want the entire
site managed by the Django project. My problem is that when I run the
4 matches
Mail list logo