Re: Recover admin username and password

2023-08-03 Thread wongX Ndeso
Just login to your server, activate the environment and run createsuperuser to create new superuser account On Thu, Aug 3, 2023, 14:56 Safaet Jaman wrote: > I've delete my user admin. I've another two user but i can't login django > admin pannel to use these. [image: Screenshot from 2023-08-03

Re: Model inheritance with optional self reference

2021-03-16 Thread wongX Ndeso
Just facing the same problem with you bro, and i ended up with proxy model and using django-treebeard for the data hierarchy... On Thu, 11 Mar 2021 at 17.47 Kunal Solanke wrote: > Btw parts should be a m2m field ig. > > On Thu, Mar 11, 2021, 16:14 Kunal Solanke > wrote: > >> That's too hard

Re: Auto refreshing frontend

2021-01-05 Thread wongX Ndeso
you can use django async for realtime data On Wed, Jan 6, 2021 at 3:39 AM degnon...@gmail.com wrote: > Hello, > > I am building a very simple website in which the main page allows users to > import their contacts via csv or excel files to a postgres database. > > I have a page that displays

Re: Ongoing project

2020-12-18 Thread wongX Ndeso
Hey peter, sorry am i late to join your team? I'd love to join too.. On Fri, Dec 18, 2020, 3:41 PM Peter Kirieny wrote: > Okay guys, I've got your feedback > We'll make a team, stay tuned > > On Fri, Dec 18, 2020, 01:19 Onlyo wrote: > >> still a bit of a junior, but I'm also interested >> >>

Re: django tables 2 - delete column and delete_item for inherited tables

2020-06-07 Thread wongX Ndeso
w but I need to improve it. So l asked for help. > > On Sun, Jun 7, 2020, 6:40 AM wongX Ndeso wrote: > >> If you use django to perform some delete action, or others like create or >> update, please make sure you have csrf_token in your html form file, and >> then

Re: django tables 2 - delete column and delete_item for inherited tables

2020-06-07 Thread wongX Ndeso
If you use django to perform some delete action, or others like create or update, please make sure you have csrf_token in your html form file, and then you should filter if the form is valid or not, then you can process the data that send from delete page. On Sat, Jun 6, 2020, 3:48 AM Nader

Re: django tables 2 - delete column and delete_item for inherited tables

2020-06-07 Thread wongX Ndeso
Try django generic edit view (CBV). You can use DeleteView Class to perform what you need to do.. On Sat, Jun 6, 2020, 3:48 AM Nader Elsisi wrote: > I have just posted > > > https://stackoverflow.com/questions/62218886/django-tables-2-delete-column-and-delete-item-for-inherited-tables > > > and

Re: problem filtering queryset in Django Rest Framework

2020-06-07 Thread wongX Ndeso
Try change this, If self.kwargs[field] is not None: With if self.kwargs[field]: <--- this will return True it the field is not empty This is the better way to filter, if you want filter the fields is empty then just add not like this example if not self.kwargs[field]: On Sun, Jun 7, 2020, 1:06 AM

Re: Error in to save data in DB using Django ORM

2020-06-07 Thread wongX Ndeso
Well, can you send the error message? It's important before i answer your question On Sat, Jun 6, 2020, 11:48 PM Ganesh Prajapat wrote: > hello, > I have a problem in my project. > basically scenario is i have 3 classes in > models.py(Subject,Exam,Registration). > Subject class have 2

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread wongX Ndeso
You can use django form wizard if you want, much easier than you should manipulate the onclick event using javascript or something similar with that.. Maybe you should remodel your form or the flow.. Hope this help On Sun, Jun 7, 2020, 1:34 PM Sai wrote: > Hi guys, > I am working on a* Django