Re: Error
Hi, You've found the wrong mailing list for this post. This mailing list is for discussing the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. For support, please follow the "Getting Help" page: https://docs.djangoproject.com/en/stable/faq/help/ . This will help you find people who are willing to support you, and to ask your question in a way that makes it easy for them to answer. Did the place you found this mailing list make this unclear? On Sunday, January 22, 2023 at 2:48:48 PM UTC-5 arshakar...@gmail.com wrote: > When I want to auto generate models from already existing mongodb > collections by inspectdb it raises : # The error was: 'NoneType' object is > not subscriptable > Please, any solutions > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/558ba312-efee-49d3-a8ad-3c6a8b2b64e6n%40googlegroups.com.
Re: Reverse for 'car_details' with arguments '('',)' not found. 1 pattern(s) tried:
Hi, You've found the wrong mailing list for this post. This mailing list is for discussing the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. For support, please follow the "Getting Help" page: https://docs.djangoproject.com/en/stable/faq/help/ . This will help you find people who are willing to support you, and to ask your question in a way that makes it easy for them to answer. Did the place you found this mailing list make this unclear? On Saturday, January 21, 2023 at 5:01:55 PM UTC-5 bipuld...@gmail.com wrote: > 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('', views.cars, name='cars'), > path('\/car_details', views.car_details, name='car_details'),] > and In my templates cars.html > {% for car in cars %} {{car.car_title}} > > {{car.state}}, {{car.city}} > {% endfor %} > when i tried to call this car_details.html with urls function it show me > this error Reverse for 'car_details' with arguments '('',)' not found. 1 > pattern(s) tried: I also tried with reverse function it doesnot work,How > can I solve this error > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/bc79e6cc-70ef-4721-a5ef-0e11f058378fn%40googlegroups.com.
Error
When I want to auto generate models from already existing mongodb collections by inspectdb it raises : # The error was: 'NoneType' object is not subscriptable Please, any solutions -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/4136140a-d5a1-4ee7-a617-0ffb92f87407n%40googlegroups.com.