Problem with get_absolute_url()

2021-04-26 Thread Mike Dewhirst
This code in the chemical model indicates that I'm trying to display two different views of the same chemical which has certain data in a details 1:1 record class Chemical(models.Model):     ...     def get_absolute_url(self):     detail = self.get_detail()     if detail and detail.rep

Re: Problem with get_absolute_url()

2021-04-26 Thread Kelvin Sajere
That's because both have the same path, and Django will always choose the one it sees first, in this case, the audit. Just change the path of any of the two will solve the problem. On Mon, Apr 26, 2021 at 03:49 Mike Dewhirst wrote: > This code in the chemical model indicates that I'm trying to d

Re: Problem with get_absolute_url()

2021-04-26 Thread Kelvin Sajere
In your URL pattern, just indicate that the audit URL pattern must first go to “audit/{id}/”,and intro URL pattern to “intro/{id}/”. On Mon, Apr 26, 2021 at 03:49 Mike Dewhirst wrote: > This code in the chemical model indicates that I'm trying to display two > different views of the same chemica

Re: Connect Django authentication to windows ldap/windows active directory

2021-04-26 Thread Kasper Laudrup
On 25/04/2021 18.43, Swelan Auguste wrote: > I'm trying to connect my Django applications to ldap/windows active > directory. > https://django-auth-ldap.readthedocs.io/en/latest/index.html Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups

Re: Assistance for deploying django app to heroku

2021-04-26 Thread Ejike Enyinnaya
Good day Jim, My process from beginning includes: 1. I reset the database: rm -f db.sqlite3 2. python manage.py migrate 3. In django admin platform: I added all the books information from the fixtures.json and tied it to the user which is admin 4. Implemented a new fixtures.json 5. ran python man

Re: Deploying my Django App to Heroku

2021-04-26 Thread Ejike Enyinnaya
Hi Ayser, Would try that and give feedback. BR, Ejike Chiboka 0804537; 08166516400 On Fri, Apr 23, 2021 at 1:10 PM Ayser shuhaib wrote: > Make sure you create the user objects in the database before loading the > books data > > On Fri, 23 Apr 2021 at 14:02, Nzekwe Isaac wrote: > >> I thin

Cannot successfully upload file in a ChannelsLiveServerTestCase server

2021-04-26 Thread Jerald Talledo
I am using ChannelsLiveServerTestCase to spin up a server for testing in behave for a reason that the StaticLiveServerTestCase does not support websockets. My issue is after changing to ChannelsLiveServerTestCase one of my feature which have to upload a file is now failing I am not sure if uplo

Front Camera and Sound recording

2021-04-26 Thread Kushal Neupane
I am developing front camera and sound recording app for one project. I do not have experience in these. I need some suggestion and guide for this work. Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Front Camera and Sound recording

2021-04-26 Thread Kasper Laudrup
On 26/04/2021 13.37, Kushal Neupane wrote: > I am developing front camera and sound recording app for one project. I > do not have experience in these. I need some suggestion and guide for > this work. Thank you. > Try to describe your project a bit more in details and how you think this is relate

Re: module not found

2021-04-26 Thread Benjamin Schollnick
Okay, it appears you are on a Macintosh…. Which is not the problem, but I ran into the same issue, and it’s most likely that you installed a different version of Python than what came with the OS? try: python3 -m pip list | grep -i django python2 -m pip list | grep -i django I would bet even

Re: Front Camera and Sound recording

2021-04-26 Thread Kushal Neupane
Can i inbox you? On Mon, Apr 26, 2021 at 5:42 PM Kasper Laudrup wrote: > On 26/04/2021 13.37, Kushal Neupane wrote: > > I am developing front camera and sound recording app for one project. I > > do not have experience in these. I need some suggestion and guide for > > this work. Thank you. > >

Re: Problem with get_absolute_url()

2021-04-26 Thread Mike Dewhirst
Many thanks Kelvin :-)M--(Unsigned mail from my phone) Original message From: Kelvin Sajere Date: 26/4/21 18:12 (GMT+10:00) To: django-users@googlegroups.com Subject: Re: Problem with get_absolute_url() In your URL pattern, just indicate that the audit URL pattern must first

Re: Front Camera and Sound recording

2021-04-26 Thread Mottaz Hegaze
I think this is more related to Javascript. Please read about webRTC and see if this is what you are looking for. On Mon, 26 Apr 2021, 3:11 pm Kushal Neupane, wrote: > Can i inbox you? > > On Mon, Apr 26, 2021 at 5:42 PM Kasper Laudrup > wrote: > >> On 26/04/2021 13.37, Kushal Neupane wrote: >

Re: Front Camera and Sound recording

2021-04-26 Thread Kasper Laudrup
On 26/04/2021 15.11, Kushal Neupane wrote: > Can i inbox you? > No, please don't, but thanks for asking. I doubt I have the time to help you any further, I was mostly trying to help you getting help. If you describe what you are trying to do here in more details, it is very likely that someone c

Re: Front Camera and Sound recording

2021-04-26 Thread Kelvin Sajere
This has little to do with the backend of an application, so it’s is going to be a JavaScript problem to solve. I would suggest using Django to write the backend (REST API) using Django rest framework preferably, then use some frontend framework like Vuejs, Reactjs, or Angular. I would suggest Vuej

Re: Problem with get_absolute_url()

2021-04-26 Thread Kelvin Sajere
Glad I could help. On Mon, Apr 26, 2021 at 09:21 Mike Dewhirst wrote: > Many thanks Kelvin :-) > > M > > > > -- > (Unsigned mail from my phone) > > > > Original message > From: Kelvin Sajere > Date: 26/4/21 18:12 (GMT+10:00) > To: django-users@googlegroups.com > Subject: Re: Pr

Re: Validate group of fields

2021-04-26 Thread Roberth Solis Martínez
Perfect, thanks a lot Derek! El lunes, 26 de abril de 2021 a las 0:14:32 UTC-6, Derek escribió: > The docs cover this use case: > > > https://docs.djangoproject.com/en/3.2/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other > > On Saturday, 24 April 2021 at 19:57:50 UT

Re: module not found

2021-04-26 Thread Roberth Solis Martínez
I think is a problem with your virtual envinmont, just you need add the PYTHONPATH variable, like: export PYTHONPATH="/the/path/of/python3" I think maybe you have a global lib in yout machine maybe, try verify with "pip freeze --local" (without "base" env activated) try to clean your global re

Re: How to save a result of multiplication

2021-04-26 Thread Roberth Solis Martínez
I'm according with Derek, but I saw you have a mix of languages and method, spanish and english, I'm speak spanish too, but as a best practice and prevent mix langagues try to use english, you know is like a standard or best practice in latin America El lunes, 26 de abril de 2021 a las 0:18:20

Re: Connect Django authentication to windows ldap/windows active directory

2021-04-26 Thread Swelan Auguste
Thanks much Thankfully, Swelan R. Auguste (Mr.) KingShip Technical - Information Officer 758-729-5289 https://KingShip.business.site/ On Mon, Apr 26, 2021, 05:22 Kasper Laudrup wrote: > On 25/04/2021 18.43, Swelan Auguste wrote: > > I'm trying to connect my Django applications to ldap/windows