Re: Django parameters

2019-08-13 Thread Derek
You're better off adopting an existing CMS built on top of Django, and checking how close its feature set matches your needs. If there is a gap, then contact the developers to see how that gap could be closed. Some examples:. https://www.django-cms.org/en/features/list/ or https://wagtail.i

custom error handlers

2019-08-13 Thread Václav Mach
Hi, I'd like to write some custom error handlers for 404 and 500 status codes. I'm using the example code from https://docs.djangoproject.com/en/2.2/topics/http/views/#testing-custom-error-views . There seems to be something wrong with the example code because i'm getting just '403 Forbidden'

Re: facing issue on unit test

2019-08-13 Thread Vinicius Assef
The database is cleared after each test method. So, in a new testcase your database is empty. On Tue, 13 Aug 2019 at 00:34, Arulselvam K wrote: > Have hosted the code @ "https://github.com/tbone230590/plib"; > Here is the problem I have two models Book and IssuedBook, IssuedBook have > foreign

Re: Getting data from the URL in Django get request

2019-08-13 Thread Aldian Fazrihady
Please read this https://docs.djangoproject.com/en/2.2/topics/http/urls/#path-converters On Tue, Aug 13, 2019 at 6:13 PM Suraj Thapa FC wrote: > > How can I fetch the particular field from. URL in get request > For eg the URL is 192.168.0.1:3000/course/5d567hfbjy7/abc > > I want to fetch "5d567h

Getting data from the URL in Django get request

2019-08-13 Thread Suraj Thapa FC
How can I fetch the particular field from. URL in get request For eg the URL is 192.168.0.1:3000/course/5d567hfbjy7/abc I want to fetch "5d567hfbjy7" from the url -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group an

Re: Django Rest Framework

2019-08-13 Thread Andréas Kühne
Hi, If you want to write it yourself - it's a rather complicated piece to implement. Checkout our source code and see how we have implemented it: https://github.com/promoteinternational/drf-nested Regards, Andréas Den mån 12 aug. 2019 kl 13:10 skrev Soumen Khatua : > I'm trying to write mysel