Re: Import issue

2021-10-02 Thread Vineet Kothari
Hi, Did you check in python manage.py shell then try to import it and check. Thanks & Regards, Vineet Kothari On Sat, 2 Oct 2021, 10:12 am Malcolm MacKinnon, wrote: > Is your module included in your installed apps in the settings.py file? > > On Fri, Oct 1, 2021 at 8:09 PM Sophia Iroegbu

List Index out of Range

2021-10-02 Thread Eugene TUYIZERE
Good day all, I need assistance. Am trying to save data from the below form but I am getting *list out of range* error can someone help me to write a successful save function? here is the code I am using: def submit_work(request): if request.method != "POST": return HttpResponse("Method Not Al

Re: Import issue

2021-10-02 Thread Sophia Iroegbu
Thanks it works On Sat, Oct 2, 2021, 11:47 AM Vineet Kothari wrote: > Hi, > Did you check in python manage.py shell then try to import it and > check. > > Thanks & Regards, > Vineet Kothari > > On Sat, 2 Oct 2021, 10:12 am Malcolm MacKinnon, > wrote: > >> Is your module included in your in

Re: List Index out of Range

2021-10-02 Thread bnmng
Which line in your code is triggering the error? On Saturday, October 2, 2021 at 11:07:13 AM UTC-4 eugenet...@gmail.com wrote: > Good day all, > > I need assistance. Am trying to save data from the below form but I am > getting *list out of range* error > can someone help me to write a success

Re: List Index out of Range

2021-10-02 Thread Hedrick Godson's
Make sure you fill all the inputs with list and also make sure that you provide the correct input name to request.POST.getlist() method otherwise it will returns empty list which will raise IndexError On Sun, 3 Oct 2021, 03:13 bnmng, wrote: > Which line in your code is triggering the error? > >

Re: INPUT TEXT in grid

2021-10-02 Thread Gabriel Araya Garcia
Thanks for your help, My problem I've solved. David Nugent says that the template must be built with using 'POST', and also the grid (table) is from database table, then the name in each row I put the ID (numeric), therefore in view get the value with: valor_saca = request.POST.get(str(sigma.i

How to show views when an endpoint is called

2021-10-02 Thread Sophia Iroegbu
Hello guys, thanks for helping the last time. I am trying to show course views on django admin. Django is serving as an API to a flutter app Am i to create another endpoint to count views? -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Proper way to create custom Group

2021-10-02 Thread Scot Hacker
It is possible to create a custom Group model in Django, although there is no `settings.AUTH_GROUPS_MODEL` equivalent to `AUTH_USER_MODEL`. When creating a custom Group system one can either inherit from the Django's `Group` model, or not. If you do, you still can use `user.groups.all()`. If yo