Re: solved

2022-10-29 Thread ssawyer

The joy or working in multi developer / team environments :)... Although for 
me, it's usually my challenging myself by leaving boobie traps in my code.

On 10/29/22 9:18 AM, Robert Leach  wrote:
I don't know how to find the conversation I just started, but I wanted 
to add a note that I figured out my problem.  There were calls to 
`full_clean` another developer had introduced that was changing the 
database and causing the cross-database relations.


--
You received this message because you are subscribed to the Google 
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to django-users+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c6866c4d-c28d-4a59-8f7e-449d59f36886n%40googlegroups.com .




--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f1cd065f-bda5-77b7-e2c6-7d7daf0a9f42%40gmail.com.


Power BI Dashboard Embed Code Using Django.

2022-10-29 Thread Abnet birknhe
Hi,

How to embed Report from Power BI  using code in to  Django?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2e025e46-4496-47b2-9c4f-f734d1f2685en%40googlegroups.com.


Add browser notifications for website

2022-10-29 Thread Lakshyaraj Dash
I've a blogging website and I want that those who have taken the
subscription of my website by clicking on allow notifications should get a
notification whenever a new blog is posted through the browser.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF7qQgBVhS5PtMQmO4t90TLtYTDDpVENOVkt%2B6%2BdzZdnTPFJ0w%40mail.gmail.com.


Re: PLEASE HELP ME KNOW HOW TO ARRANGE INSTALLED APPS.

2022-10-29 Thread Ammar Mohammed
Hello Dear
You should name your apps without the app word in the end
Example :
INSTALLED_APPS = [
"apps.store'',
" apps.core",
]
This will definitely work

Regards

On Wed, 19 Oct 2022, 7:30 AM regan opere,  wrote:

> Many, thanks for the reply. However, I have two apps in the directory
> called Apps..
> so when I name the apps in the settings using
> tiles.apps.TilesConfig' it still does'nt work
>
>   naming them like this:
>
>  'apps.core.apps',
>
> 'apps.store.apps',
> also still giver the error: django.core.exceptions.ImproperlyConfigured:
> Application labels aren't unique, duplicates: apps
>
> however, when I delete one of the apps from the settings, the server runs
> without an error
> On Wednesday, October 19, 2022 at 2:17:55 AM UTC+3 Codex wrote:
>
>> Lets take App Directory name tiles.
>> So inthe installed app list it will be
>>
>> 'tiles.apps.TilesConfig',
>> Or put simply
>> 'tiles',
>> Hope it helps .
>>
>>
>> On Tue, Oct 18, 2022, 06:16 regan opere  wrote:
>>
>>> Hello, I am new to django and I am still learning.
>>> I have created two apps core and store and I have registered them in the
>>> settings file of my root directory.
>>>  This is the error I get:
>>> django.core.exceptions.ImproperlyConfigured: Application labels aren't
>>> unique, duplicates: apps
>>>
>>> my settings look like this
>>> INSTALLED_APPS = [
>>> 'django.contrib.admin',
>>> 'django.contrib.auth',
>>> 'django.contrib.contenttypes',
>>> 'django.contrib.sessions',
>>> 'django.contrib.messages',
>>> 'django.contrib.staticfiles',
>>>
>>> 'apps.core.apps',
>>>
>>> 'apps.store.apps',
>>>
>>>
>>> and their individual apps.py look like this:
>>>
>>> class CoreConfig(AppConfig):
>>> default_auto_field = 'django.db.models.BigAutoField'
>>> name = 'core'
>>>
>>>
>>> and
>>>
>>> class StoreConfig(AppConfig):
>>> default_auto_field = 'django.db.models.BigAutoField'
>>> name = 'store'
>>>
>>>
>>>
>>> without the second app 'store" the server runs just fine
>>>
>>> --
>>>
>> You received this message because you are subscribed to the Google Groups
>>> "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/fab8949f-1012-4fad-8259-b63c67195f69n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/65db3780-57ec-41ec-afaf-abe16ae85e69n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHs1H7uxkrLFMvDs2t9w7hRJeyhNg21QxDKHj6-Dqhnv99cSNg%40mail.gmail.com.


Re: Power BI Dashboard Embed Code Using Django.

2022-10-29 Thread Abnet birknhe
I am also facing problem too

On Wednesday, 10 March 2021 at 05:54:27 UTC-8 geethanj...@gmail.com wrote:

> Hi,
>
> How to embed Report/dashboard in Power BI to a Web portal using Django?
>
> Thanks,
> Geethanjali.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9c4a8e29-5456-43c5-b31c-a54912b866b2n%40googlegroups.com.


solved

2022-10-29 Thread Robert Leach
I don't know how to find the conversation I just started, but I wanted to 
add a note that I figured out my problem.  There were calls to `full_clean` 
another developer had introduced that was changing the database and causing 
the cross-database relations.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c6866c4d-c28d-4a59-8f7e-449d59f36886n%40googlegroups.com.


How to override Model.__init__ without breaking `using(db)`?

2022-10-29 Thread Robert Leach
Hi,

I have a Model superclass called `MaintainedModel` that other models 
inherit from.  It itself inherits from django.db.models.Model and overrides 
its __init__ method in order to implement some controls on fields using 
decorators in the derived models.  It all works very well in the realm of 
the default database... BUT I realized yesterday that it breaks operations 
on our validation database.  I describe it in some detail on this stack post 
,
 
but to summarize my hunch, the override of init is breaking the 
`.using(db)` statement in this call:

```
FCirc.objects.using(self.db).get_or_create(
serum_sample=sample,
tracer=tracer,
element=label.element,
)
```

As a proof of concept, I fix that broken association in my "answer" on the 
stack post by axplicitly setting a `_state` attribute on the FCirc object 
before calling `get_or_create` and that fix works.

So my question for you all is: how do I preserve the functionality of 
`.using(db)` in my MaintainedModel superclass?

Thanks,
Rob

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5767c6e1-7636-462d-a8cc-5f819350f755n%40googlegroups.com.


Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-10-29 Thread 'Kasper Laudrup' via Django users

On 28/10/2022 12.35, Adeyemi Deji wrote:


I have tried this command in Dockerfile: RUN pip install --user 
psycopg2==2.9.5

I got the command on StackOverflow but still didn't resolve the issue.



Seems like you need the postgresql development package or similar to 
build psycopg2 from source. Try using the binary package 
(psycopg2-binary) instead as suggested here:


#0 26.78       If you prefer to avoid building psycopg2 from source, 
please install the PyPI

#0 26.78       'psycopg2-binary' package instead.


Alternatively, ensure the postgresql development package is installed in 
your Docker container.


Kind regards,
Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/86a90447-1523-5ca5-cb59-2c77f9792289%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature