ValueError: attempted relative import beyond top-level package

2020-10-17 Thread Abdu-H
Hello, i am getting a value error (from ..accounts.models import User. ValueError: attempted relative import beyond top-level package) while trying to import my custom user model, i have read through some post suggesting i create a root folder for my project, I would like to know if that

Re: Using FormMixin with DetailView

2020-09-07 Thread Abdu-H
Hello, i realise this is a very old post, but i am trying to implement your code here, but it seems some code are missing, i was able to get a form, but the contents of my detailView isn't showing, what code am i suppose to put here " A view for displaying a single post ". your help will be

ValueError... Cannot query "User": Must be "Model" instance.

2020-09-03 Thread Abdu-H
Hello, I am working on an app where car owner will list their car and drivers interested in renting them will make a request to rent the cars… i basically have three models the *users*(car owners and drivers) *car* listed by owners, and *rent, *i have a listView to list all the car