Reverse for 'car_details' with arguments '('',)' not found. 1 pattern(s) tried:

2023-01-21 Thread Bipul Dawadi
In Views.py def car_details(request, id): redirect_to=1 single_car = get_object_or_404(Car, pk=id), data = { 'single_car': single_car, # 'url': url, } # reverse('single_car', args=(id)) return render(request, 'cars/car_details.html', data) In urls.py of my app urlpatterns = [ path('', vie

Re: Proposal for an "Age" PostgreSQL ORM function

2023-01-21 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
+1 to what Carlton said. You can make this function in your project like so: class Age(Func): function = "AGE" A Django wrapper would actually be more complicated. You’d need to understand both the PostgreSQL and Django function docs, and you might not be sure Django does anything special bes

Re: New contributor

2023-01-21 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Welcome! There are many different ways to contribute to Django - the forum, blogging, translating, documenting, writing code, and more. Our Contributing Guide can help you get started with many of these: https://docs.djangoproject.com/en/stable/internals/contributing/ If you’re looking to work wi