Monday, October 31, 2022

Django bugfix release: 4.1.3

Details are available on the Django project weblog:

https://www.djangoproject.com/weblog/2022/nov/01/bugfix-release/

Facing attribue Error

AttributeError at /employee/type object 'employeeapp' has no attribute 'object'
Request Method:
GET
Request URL:
http://localhost:8000/employee/
Django Version:
4.1.1
Exception Type:
AttributeError
Exception Value:
type object 'employeeapp' has no attribute 'object'
Exception Location:
C:\practice\project2\empapp\views.py, line 9, in empDetails
Raised during:
empapp.views.empDetails
Python Executable:
C:\Users\maheb\AppData\Local\Programs\Python\Python310\python.exe
Python Version:
3.10.7
Python Path:
['C:\\practice\\project2', 'C:\\Users\\maheb\\AppData\\Local\\Programs\\Python\\Python310\\python310.zip', 'C:\\Users\\maheb\\AppData\\Local\\Programs\\Python\\Python310\\DLLs', 'C:\\Users\\maheb\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\Users\\maheb\\AppData\\Local\\Programs\\Python\\Python310', 'C:\\Users\\maheb\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages']
Server time:
Tue, 01 Nov 2022 05:25:39 +0000

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9aa3b8e8-9cd7-4531-af07-bc65942146can%40googlegroups.com.

Regards EMployee attendance system

Hi all, can somebody guide how to create employee attendance management system with biometric integration with django rest api, what are the required models and how to integrate with biometric device(Essl)

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/434e7e2b-2c08-4f2a-8edf-f0d509b8ac44n%40googlegroups.com.

I need some clarifications about managing Files in FIle storage

I want to know about the Managing files topic specifically in file storage.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d989c146-3744-42a1-bac9-746ece474fddn%40googlegroups.com.

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

-----BEGIN PGP PUBLIC KEY BLOCK-----

xsDNBGBJfrABDACxIFOMQIsP94wTkgf76JEHyTITmYnprsTeRmDet01G5etZ9ZHm
RmrqYVFzXu1aSBbaejm/ppbRrBB7YmFETbpnZepWJnuhridvjV37duRH3g/9ppiy
tNkhOOIYA/l8ppvyaRlrp/jPjAm27HVxi1Nu0syaWwTFKbUTtLKldIhuWvAXkgxp
xyBdB3jfmKoJ4rvTzZU+saKgaFExRmdd5TptwRP9cPRWIoR5fcRA8RQ1X66NkIpl
VBbH7NeLuTtICAa0dnyTh50x+Wapu1kDEWmr8ssUzf6c8yBJAHKBohQowZmQ8sYt
w2h4gX0zT4V3TY9y8TvTFGhPlM7l5QRFBlZqCBp5K/6xkyaAf+VlUwsdMqe8UOz5
mMJ5ZLU9JEzFyfSiM8xScwIzPcyQhOiLAgqIozTag+9B6QgD66Xa80yrFmfXyVtU
OtS6ykQsepR/fq6ySUKjWGFJ/Psq0wNuBaCHzEwEfeShZquL/jXmcUFJhVbeDYIZ
cPngktFCZ30fYuMAEQEAAc0mS2FzcGVyIExhdWRydXAgPGxhdWRydXBAc3RhY2t0
cmFjZS5kaz7CwQ8EEwEIADkWIQS5plkBvlt0D6iFDi7l2crGSqpV6wUCYEl+sQUJ
BaOagAIbAwULCQgHAgYVCAkKCwIFFgIDAQAACgkQ5dnKxkqqVeuAxQwApU4laVk3
4B2dZpFUMmkO46OeimzLiZaNYgs+SVIDw/WtaVbLUq+KH/TIMTiX5wgGRZ4WEC2L
4w66j8EzVx8vE2fNPx+yP1bM+lfbk1UBbtt9o6F6vIGzV0lHfO8rAPo4wB7lP0QB
dOAaJqnnDecGgse91HAqk1TR7oH4W7QkAshNbWEJfHpgJHNqXUa/2dp8jPAQfVcH
S0j5/4ovfVKgmkD7cuMx8A0aCDshlpd/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03ysl
L4lnhSc426Bnxkf8sZm+oFo4ian0GcuNdIQBdBdAek9F2CX6whDbL4mZFAeY/e6e
mWmP8Y/z4X2qaCpW/GHS+XFccT1h8CxqsFxnAhnecjdMCv/TJLXMNk9LihEeUEZo
4U7bitCfyO17dt6NC/7wbGZCJmNPO7V3YYeI8MwzOkvmXqLcHz0IPQATuLMB1HKr
oG/Vrwq029ftqnuDluS/DzmuIqWLuAT+2nIe1JLWFlS9OUTi4i+y0NDlxWCZOaGp
ucR+ueFKv1de3nVjdd6oN+MIO9gQ3NE53FrO46A3APy6Ex02Mxub8nNnQjXcStHZ
BHO6KilQ+QLzSektD8IpHM7tR6P+5PP6AQ==
=NePe
-----END PGP PUBLIC KEY BLOCK-----
On 31/10/2022 19.32, Adeyemi Deji wrote:
>
> Hello, fam!
>
> Found a solution to the problem. Updated the Dockerfile. Check below
>

Great to hear you figured it out and thanks for sharing. Out of
curiosity, any reason why you chose to build the psycopg2 package from
source instead of using a prebuilt binary?

I would assume using the prebuilt binary would have been simpler and of
course make it much faster to build your container than building your
own package from source.

Thanks and 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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fa5906c5-929f-a2b8-91e2-72d8b0fb8194%40stacktrace.dk.

Re: Template inheritance not working

Hello dear 
There is a little mistake in your code :
You should put the {%block block_name %} in your base template with no code and the put the code you want to be displayed in your child template file
Here is an example : 

// file.html :

{% extends "index.html" %}

{% block content %}
<h1>Hello, this is a test.</h1>
    <p>Help me.</p>
{% endblock %}

//index.html:
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    {% block content %}
       
    {% endblock %}
</body>
</html>


-- 
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com.


On Mon, 31 Oct 2022, 8:09 PM Alec Delaney, <96alecpatrick@gmail.com> wrote:
I have been trying to get my templates to work but they have been ineffective. here is my code:
{% extends "index.html" %}

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<div>
{% block content %}


{% endblock %}
</div>
</body>
</html>

//index.html:

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    {% block content %}
        <h1>Hello, this is a test.</h1>
        <p>Help me.</p>
    {% endblock %}
</body>
</html>

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHs1H7sS6tndz4j8wiK_Dfpwqnb7sUcrc814Zp3eTndDJ%2B5Ewg%40mail.gmail.com.

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


Hello, fam!

Found a solution to the problem. Updated the Dockerfile. Check below

Thanks, guys...

Dockerfile

FROM python:3.8.3-slim

ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

WORKDIR /code

RUN apt-get update \
    && apt-get -y install libpq-dev gcc

COPY ./requirements.txt .
RUN pip install -r requirements.txt

COPY . .
On Saturday, October 29, 2022 at 1:12:22 PM UTC+1 Kasper Laudrup wrote:
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/184a0ed7-609c-4410-860f-ccf0e0c08cccn%40googlegroups.com.

Re: Deploy django app on railway

I had the same issues but I ended up editing Django version to 3.2 in the requirements.txt 

That's one of the new features of Django 4.1, use less version of Django like 3.2 it won't give you problems.

I suggest you do the same, will try to figure it out

On Mon, 31 Oct 2022, 18:48 Lakshyaraj Dash, <dashlakshyaraj2006@gmail.com> wrote:
I'm having troubles in using django app on railway ie after deployment I get csrf token validation error even if my forms are protected with csrf tokens.
Please anyone fix this problem.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF7qQgA_XroFAEsKPEVmZ%3Dxj2GyGJwUk5xXe8BG9cr%3DTbUaLDQ%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANfc-pArQzu9cVAudf3S_Mx5x5Zab7Z8gEWtCAvjRgB3QBu%2BdQ%40mail.gmail.com.

Deploy django app on railway

I'm having troubles in using django app on railway ie after deployment I get csrf token validation error even if my forms are protected with csrf tokens.
Please anyone fix this problem.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF7qQgA_XroFAEsKPEVmZ%3Dxj2GyGJwUk5xXe8BG9cr%3DTbUaLDQ%40mail.gmail.com.

Re: how can i create databases, routers and install apps in runtime?

just add them using a text editor (vi etc)

when you need to access them an import settings (already shoud be done)
will present them

python 101 stuff more then django

fyi



Happy Monday !!!
Thanks - paul

Paul Kudla


Scom.ca Internet Services <http://www.scom.ca>
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266
Email paul@scom.ca

On 10/31/2022 8:28 AM, emilton mendoza wrote:
> Could someone tell me how I can add new values ​​to the variables of
> settings.py?
>
> Thanks
>
> --
> 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+unsubscribe@googlegroups.com
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ddf803a2-d90b-45e4-a3c9-920ff73a43abn%40googlegroups.com <https://groups.google.com/d/msgid/django-users/ddf803a2-d90b-45e4-a3c9-920ff73a43abn%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d85631c6-8a6f-cd32-8dd0-2b391278e80a%40scom.ca.

Template inheritance not working

I have been trying to get my templates to work but they have been ineffective. here is my code:
{% extends "index.html" %}

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<div>
{% block content %}


{% endblock %}
</div>
</body>
</html>

//index.html:

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    {% block content %}
        <h1>Hello, this is a test.</h1>
        <p>Help me.</p>
    {% endblock %}
</body>
</html>

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com.

Re: how can i create databases, routers and install apps in runtime?

-----BEGIN PGP PUBLIC KEY BLOCK-----

xsDNBGBJfrABDACxIFOMQIsP94wTkgf76JEHyTITmYnprsTeRmDet01G5etZ9ZHm
RmrqYVFzXu1aSBbaejm/ppbRrBB7YmFETbpnZepWJnuhridvjV37duRH3g/9ppiy
tNkhOOIYA/l8ppvyaRlrp/jPjAm27HVxi1Nu0syaWwTFKbUTtLKldIhuWvAXkgxp
xyBdB3jfmKoJ4rvTzZU+saKgaFExRmdd5TptwRP9cPRWIoR5fcRA8RQ1X66NkIpl
VBbH7NeLuTtICAa0dnyTh50x+Wapu1kDEWmr8ssUzf6c8yBJAHKBohQowZmQ8sYt
w2h4gX0zT4V3TY9y8TvTFGhPlM7l5QRFBlZqCBp5K/6xkyaAf+VlUwsdMqe8UOz5
mMJ5ZLU9JEzFyfSiM8xScwIzPcyQhOiLAgqIozTag+9B6QgD66Xa80yrFmfXyVtU
OtS6ykQsepR/fq6ySUKjWGFJ/Psq0wNuBaCHz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mdq9aMJ2N1pKmrVh3wIjNsocQprDU9OEBxZ5S8LmiFqFNdPlt6FqzNOb6hTK8Xm6
a80wqUVL6gJSyuWLrZ+2h3NDyMsJWNDB9ThZQBkFxZtXP/HY2skmZJi0WIOfMdyB
hQyZK23xbitGI7ltMkNU81nN5a0/Pj7103AthalS63YY5worNdDeolBDLyI5xH+t
p3Rdu4EAEQEAAcLA/AQYAQgAJhYhBLmmWQG+W3QPqIUOLuXZysZKqlXrBQJgSX6x
BQkFo5qAAhsMAAoJEOXZysZKqlXrbHsL/0rWbmkdYmZ+Wdj9vrhxoxM8WDp3bCdr
5E1bziJYkG+VuEejk60rlURO6dZ9uJMtDnKMTZdJ26cN01iwWG/O83pOL9vyMOj5
q+XC4nmi4DV/N2wneBH4VyNfv1fNubDrE0M8iXX/WECIG2RSE0N6C4RfKIC03ysl
L4lnhSc426Bnxkf8sZm+oFo4ian0GcuNdIQBdBdAek9F2CX6whDbL4mZFAeY/e6e
mWmP8Y/z4X2qaCpW/GHS+XFccT1h8CxqsFxnAhnecjdMCv/TJLXMNk9LihEeUEZo
4U7bitCfyO17dt6NC/7wbGZCJmNPO7V3YYeI8MwzOkvmXqLcHz0IPQATuLMB1HKr
oG/Vrwq029ftqnuDluS/DzmuIqWLuAT+2nIe1JLWFlS9OUTi4i+y0NDlxWCZOaGp
ucR+ueFKv1de3nVjdd6oN+MIO9gQ3NE53FrO46A3APy6Ex02Mxub8nNnQjXcStHZ
BHO6KilQ+QLzSektD8IpHM7tR6P+5PP6AQ==
=NePe
-----END PGP PUBLIC KEY BLOCK-----
On 31/10/2022 13.28, emilton mendoza wrote:
> Could someone tell me how I can add new values ​​to the variables of
> settings.py?
>

The same way you would add new values to any other Python variable.

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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0c531163-409b-b6de-a25d-b2b7636a6df6%40stacktrace.dk.

Re: my project doesnt insert into the database

I'll try but I dont think its a typo, cause I printed the value of 'itens' and it worked fine

Em sábado, 29 de outubro de 2022 às 08:42:32 UTC-4, dashlaksh...@gmail.com escreveu:
Replace value_list['itens'] by value_list['items']. May be there some typo error 

On Sat, Oct 29, 2022, 18:07 Ryan Nowakowski <ry...@fattuba.com> wrote:
When it gets stuck, does it crash and return a traceback or just hang?

On October 28, 2022 9:16:41 AM CDT, "Otávio Augusto" <tavii...@gmail.com> wrote:
Greetings, I'm doing a integration projection, so I need to consume data from a RESTful API and then save that data inside a oracle db. My models migrated and succesfully created the tables, I was able to get the data from the API and parse trough it to filter the info I wanted and needed to save normally, then I first used 'objects.update_or_create' to populate my table, initially it seemed to work but after some time it got stuck and stopped inserting data into the table, I tried to switch to simply 'objects.create' but it didnt work. I dont seem to find the issue that is holding the insertion in place and decided to seek for help.

For illustration, this is how I builted the code block that is getting stuck:
for item in value_list['itens']:
     print(item)
     Item.objects.using('default').create(
              nature=item['nature'],
              date=item['date'],
              doc_number=item['doc_number'],
              name=item['name'],
              description=item['description']
    )

I even added .save(force_insert=True) to try and brute force the insertion on the table but no avail. Need help!

--
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/CAE0EE0F-E2BB-4CF3-9678-0F39596BDC8A%40fattuba.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5836a1e0-7f83-4f64-a308-0c9b6f5bb157n%40googlegroups.com.

Re: my project doesnt insert into the database

it just hang, doesnt crash nor raise any errors or exceptions, I even tried to cover it up in a try block but it did not return an error.

Em sábado, 29 de outubro de 2022 às 08:38:04 UTC-4, Ryan Nowakowski escreveu:
When it gets stuck, does it crash and return a traceback or just hang?


On October 28, 2022 9:16:41 AM CDT, "Otávio Augusto" <tavii...@gmail.com> wrote:
Greetings, I'm doing a integration projection, so I need to consume data from a RESTful API and then save that data inside a oracle db. My models migrated and succesfully created the tables, I was able to get the data from the API and parse trough it to filter the info I wanted and needed to save normally, then I first used 'objects.update_or_create' to populate my table, initially it seemed to work but after some time it got stuck and stopped inserting data into the table, I tried to switch to simply 'objects.create' but it didnt work. I dont seem to find the issue that is holding the insertion in place and decided to seek for help.

For illustration, this is how I builted the code block that is getting stuck:
for item in value_list['itens']:
     print(item)
     Item.objects.using('default').create(
              nature=item['nature'],
              date=item['date'],
              doc_number=item['doc_number'],
              name=item['name'],
              description=item['description']
    )

I even added .save(force_insert=True) to try and brute force the insertion on the table but no avail. Need help!

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/98413279-103c-40a9-bb1a-6f26aa9dfe83n%40googlegroups.com.

Re: Django channels and web rtc

I also need such a resource. I have looked online and couldn't find any. If you come across any useful information, please let me know

On Mon, Oct 31, 2022 at 12:10 PM krishna soni <krishna.75033148@gmail.com> wrote:
Anyone have any resources about how to share screen in a group through django channels via Webrtc??

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEQN0nay16CrWnEFFxNWoFEK2gvWCVc7YDOQ2WUTyNpRoJhweA%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKRDgxFG4CWwBFaEVw503YfFsrO21D%3DwtNASUAujZfA5NYqKEQ%40mail.gmail.com.

Re: page html

Someone is not even doing basic django tutorial...

On Mon, 31 Oct 2022 at 18:04, Ammar Mohammed <amarben1000@gmail.com> wrote:
Hello 

Have you added your index page view to your project's urlpatterns ?

Regards 

On Mon, 31 Oct 2022, 11:33 AM REMY TOUITOU, <touitou2600@gmail.com> wrote:
Hello , thanks you , I try to connect , what is you Telefon number , mine is 0033687798426

Le dimanche 30 octobre 2022, Adebileje Nurudeen <lordnarry0@gmail.com> a écrit :
Can we chat on WhatsApp for more help on that??

On Sun, Oct 30, 2022 at 8:46 PM REMY TOUITOU <touitou2600@gmail.com> wrote:
hELLO , when i launch , in visual studio code ,i can't found the page index.html, 

i launch http//localhost:8000 AND I SEE the first page created with Django

and i want to see the page index.HTML ;

Thanks you for your help

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/64e889fc-de5e-4696-9366-54ec049b91ben%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOfwBVgsV1RihLOydb%2BUdEzBeBqBrhHZn04sudWWXqeKB-KMQw%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD9WEx0-hwAtMOczTc6AZTz4WoCKuiYJz6AVeSnGt-qkbG%2BZ8Q%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHs1H7sCpZUuEoDa60gR3_3giUw88Dm-Va9zkZOj3e1v5SzNsw%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFKhtoRwL0jyF19S7XzjJLJo5-FfU2EAn_RZqMYwxkN18%2B%2BjZw%40mail.gmail.com.

Re: page html

Hello 

Have you added your index page view to your project's urlpatterns ?

Regards 

On Mon, 31 Oct 2022, 11:33 AM REMY TOUITOU, <touitou2600@gmail.com> wrote:
Hello , thanks you , I try to connect , what is you Telefon number , mine is 0033687798426

Le dimanche 30 octobre 2022, Adebileje Nurudeen <lordnarry0@gmail.com> a écrit :
Can we chat on WhatsApp for more help on that??

On Sun, Oct 30, 2022 at 8:46 PM REMY TOUITOU <touitou2600@gmail.com> wrote:
hELLO , when i launch , in visual studio code ,i can't found the page index.html, 

i launch http//localhost:8000 AND I SEE the first page created with Django

and i want to see the page index.HTML ;

Thanks you for your help

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/64e889fc-de5e-4696-9366-54ec049b91ben%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOfwBVgsV1RihLOydb%2BUdEzBeBqBrhHZn04sudWWXqeKB-KMQw%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD9WEx0-hwAtMOczTc6AZTz4WoCKuiYJz6AVeSnGt-qkbG%2BZ8Q%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHs1H7sCpZUuEoDa60gR3_3giUw88Dm-Va9zkZOj3e1v5SzNsw%40mail.gmail.com.

Re: page html

Hello , thanks you , I try to connect , what is you Telefon number , mine is 0033687798426

Le dimanche 30 octobre 2022, Adebileje Nurudeen <lordnarry0@gmail.com> a écrit :
Can we chat on WhatsApp for more help on that??

On Sun, Oct 30, 2022 at 8:46 PM REMY TOUITOU <touitou2600@gmail.com> wrote:
hELLO , when i launch , in visual studio code ,i can't found the page index.html, 

i launch http//localhost:8000 AND I SEE the first page created with Django

and i want to see the page index.HTML ;

Thanks you for your help

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/64e889fc-de5e-4696-9366-54ec049b91ben%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOfwBVgsV1RihLOydb%2BUdEzBeBqBrhHZn04sudWWXqeKB-KMQw%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD9WEx0-hwAtMOczTc6AZTz4WoCKuiYJz6AVeSnGt-qkbG%2BZ8Q%40mail.gmail.com.

Re: solved

Hi Robert,

in the conversation which you can get to using the link at the bottom of the emails from the group, 
do a search on your name or email address, here is one

here is the other one

many thanks
Az


On Sat, 29 Oct 2022 at 18:28, Robert Leach <rleach@princeton.edu> 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+unsubscribe@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.


--
Kind regards
Aziz Meknassi
Tel: 07552128860

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOoJfQ%2Bc2NtuVFNJsmrYsseaQAnjXSp7S2xpp4%3Dn5K07mNW3fw%40mail.gmail.com.

Sunday, October 30, 2022

Django channels and web rtc

Anyone have any resources about how to share screen in a group through django channels via Webrtc??

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEQN0nay16CrWnEFFxNWoFEK2gvWCVc7YDOQ2WUTyNpRoJhweA%40mail.gmail.com.

Re: help for django project

-----BEGIN PGP PUBLIC KEY BLOCK-----

xsDNBGBJfrABDACxIFOMQIsP94wTkgf76JEHyTITmYnprsTeRmDet01G5etZ9ZHm
RmrqYVFzXu1aSBbaejm/ppbRrBB7YmFETbpnZepWJnuhridvjV37duRH3g/9ppiy
tNkhOOIYA/l8ppvyaRlrp/jPjAm27HVxi1Nu0syaWwTFKbUTtLKldIhuWvAXkgxp
xyBdB3jfmKoJ4rvTzZU+saKgaFExRmdd5TptwRP9cPRWIoR5fcRA8RQ1X66NkIpl
VBbH7NeLuTtICAa0dnyTh50x+Wapu1kDEWmr8ssUzf6c8yBJAHKBohQowZmQ8sYt
w2h4gX0zT4V3TY9y8TvTFGhPlM7l5QRFBlZqCBp5K/6xkyaAf+VlUwsdMqe8UOz5
mMJ5ZLU9JEzFyfSiM8xScwIzPcyQhOiLAgqIozTag+9B6QgD66Xa80yrFmfXyVtU
OtS6ykQsepR/fq6ySUKjWGFJ/Psq0wNuBaCHzEwEfeShZquL/jXmcUFJhVbeDYIZ
cPngktFCZ30fYuMAEQEAAc0mS2FzcG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b6hTK8Xm6
a80wqUVL6gJSyuWLrZ+2h3NDyMsJWNDB9ThZQBkFxZtXP/HY2skmZJi0WIOfMdyB
hQyZK23xbitGI7ltMkNU81nN5a0/Pj7103AthalS63YY5worNdDeolBDLyI5xH+t
p3Rdu4EAEQEAAcLA/AQYAQgAJhYhBLmmWQG+W3QPqIUOLuXZysZKqlXrBQJgSX6x
BQkFo5qAAhsMAAoJEOXZysZKqlXrbHsL/0rWbmkdYmZ+Wdj9vrhxoxM8WDp3bCdr
5E1bziJYkG+VuEejk60rlURO6dZ9uJMtDnKMTZdJ26cN01iwWG/O83pOL9vyMOj5
q+XC4nmi4DV/N2wneBH4VyNfv1fNubDrE0M8iXX/WECIG2RSE0N6C4RfKIC03ysl
L4lnhSc426Bnxkf8sZm+oFo4ian0GcuNdIQBdBdAek9F2CX6whDbL4mZFAeY/e6e
mWmP8Y/z4X2qaCpW/GHS+XFccT1h8CxqsFxnAhnecjdMCv/TJLXMNk9LihEeUEZo
4U7bitCfyO17dt6NC/7wbGZCJmNPO7V3YYeI8MwzOkvmXqLcHz0IPQATuLMB1HKr
oG/Vrwq029ftqnuDluS/DzmuIqWLuAT+2nIe1JLWFlS9OUTi4i+y0NDlxWCZOaGp
ucR+ueFKv1de3nVjdd6oN+MIO9gQ3NE53FrO46A3APy6Ex02Mxub8nNnQjXcStHZ
BHO6KilQ+QLzSektD8IpHM7tR6P+5PP6AQ==
=NePe
-----END PGP PUBLIC KEY BLOCK-----
Change line 37 of your frobnicater.py file from using int to string.

Alternatively, if that doesn't work, consider asking a question that
someone can actually answer.

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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f439a5d6-17bb-0040-298a-9387117d91c5%40stacktrace.dk.

Re: page html

Can we chat on WhatsApp for more help on that??

On Sun, Oct 30, 2022 at 8:46 PM REMY TOUITOU <touitou2600@gmail.com> wrote:
hELLO , when i launch , in visual studio code ,i can't found the page index.html, 

i launch http//localhost:8000 AND I SEE the first page created with Django

and i want to see the page index.HTML ;

Thanks you for your help

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/64e889fc-de5e-4696-9366-54ec049b91ben%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOfwBVgsV1RihLOydb%2BUdEzBeBqBrhHZn04sudWWXqeKB-KMQw%40mail.gmail.com.

page html

hELLO , when i launch , in visual studio code ,i can't found the page index.html, 

i launch http//localhost:8000 AND I SEE the first page created with Django

and i want to see the page index.HTML ;

Thanks you for your help

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/64e889fc-de5e-4696-9366-54ec049b91ben%40googlegroups.com.

Saturday, October 29, 2022

Re: solved

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 <rleach@princeton.edu> 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+unsubscribe@googlegroups.com
> <mailto:django-users+unsubscribe@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 <https://groups.google.com/d/msgid/django-users/c6866c4d-c28d-4a59-8f7e-449d59f36886n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>

--
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+unsubscribe@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.

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+unsubscribe@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.

solved

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+unsubscribe@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.

Re: Filter questions with dates

Dear Vitaly,
I want the filters using form select field in my template no in the admin 

On Sat, Oct 29, 2022, 20:56 Vitaly Bogomolov <vit.sar68@gmail.com> wrote:
You can try to use DateRange or DateRangePicker filter from my DjangoAdminFilters library.




пятница, 28 октября 2022 г. в 18:23:31 UTC+4, dashlaksh...@gmail.com:
I want a select menu with months and years written against the corresponding month. When I will click the filter button the blogs should be filtered with the corresponding month and year.

On Fri, Oct 28, 2022, 19:04 Ryan Nowakowski <ry...@fattuba.com> wrote:
Is your question around how to do the date filtering in the view or how to set up the filter in the template?

On October 27, 2022 9:08:06 AM CDT, Lakshyaraj Dash <dashlaksh...@gmail.com> wrote:
I have search filters and tagwise filters and just want to add date filters.

On Thu, Oct 27, 2022, 19:34 Ryan Nowakowski <ry...@fattuba.com> wrote:
Do you already have other kinds of filters in place and just need help adding a date filter, or do you need help with filtering in general?

On October 25, 2022 11:00:43 PM CDT, Lakshyaraj Dash <dashlaksh...@gmail.com> wrote:
I'm having a forums project in which I want to add a date filter for questions like when a user clicks on a specific date the questions related to the date will be filter like 24 Dec 2021 will show 24122022...

--
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/BD9E1263-A0CE-4467-8966-72BB3EF755EC%40fattuba.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...@googlegroups.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1684b832-49dd-414e-a3dc-b788aa8a52den%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF7qQgDPpQkcMM5EanbGxyN1cipbA80KC7kMW0OoCvzUejx6Pw%40mail.gmail.com.

Re: Filter questions with dates

Filter as created_at__lte or created_at__gte it's depends on your requirements 

On Sat, 29 Oct 2022, 8:26 pm Vitaly Bogomolov, <vit.sar68@gmail.com> wrote:
You can try to use DateRange or DateRangePicker filter from my DjangoAdminFilters library.




пятница, 28 октября 2022 г. в 18:23:31 UTC+4, dashlaksh...@gmail.com:
I want a select menu with months and years written against the corresponding month. When I will click the filter button the blogs should be filtered with the corresponding month and year.

On Fri, Oct 28, 2022, 19:04 Ryan Nowakowski <ry...@fattuba.com> wrote:
Is your question around how to do the date filtering in the view or how to set up the filter in the template?

On October 27, 2022 9:08:06 AM CDT, Lakshyaraj Dash <dashlaksh...@gmail.com> wrote:
I have search filters and tagwise filters and just want to add date filters.

On Thu, Oct 27, 2022, 19:34 Ryan Nowakowski <ry...@fattuba.com> wrote:
Do you already have other kinds of filters in place and just need help adding a date filter, or do you need help with filtering in general?

On October 25, 2022 11:00:43 PM CDT, Lakshyaraj Dash <dashlaksh...@gmail.com> wrote:
I'm having a forums project in which I want to add a date filter for questions like when a user clicks on a specific date the questions related to the date will be filter like 24 Dec 2021 will show 24122022...

--
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/BD9E1263-A0CE-4467-8966-72BB3EF755EC%40fattuba.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...@googlegroups.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1684b832-49dd-414e-a3dc-b788aa8a52den%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABNyTSoQSoV33kDuh4pHjXgNR8yO8OnJjrknEWqupj6DJ8qYMg%40mail.gmail.com.

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

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+unsubscribe@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: Filter questions with dates

You can try to use DateRange or DateRangePicker filter from my DjangoAdminFilters library.

django-filters.PNG


пятница, 28 октября 2022 г. в 18:23:31 UTC+4, dashlaksh...@gmail.com:
I want a select menu with months and years written against the corresponding month. When I will click the filter button the blogs should be filtered with the corresponding month and year.

On Fri, Oct 28, 2022, 19:04 Ryan Nowakowski <ry...@fattuba.com> wrote:
Is your question around how to do the date filtering in the view or how to set up the filter in the template?

On October 27, 2022 9:08:06 AM CDT, Lakshyaraj Dash <dashlaksh...@gmail.com> wrote:
I have search filters and tagwise filters and just want to add date filters.

On Thu, Oct 27, 2022, 19:34 Ryan Nowakowski <ry...@fattuba.com> wrote:
Do you already have other kinds of filters in place and just need help adding a date filter, or do you need help with filtering in general?

On October 25, 2022 11:00:43 PM CDT, Lakshyaraj Dash <dashlaksh...@gmail.com> wrote:
I'm having a forums project in which I want to add a date filter for questions like when a user clicks on a specific date the questions related to the date will be filter like 24 Dec 2021 will show 24122022...

--
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/BD9E1263-A0CE-4467-8966-72BB3EF755EC%40fattuba.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...@googlegroups.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1684b832-49dd-414e-a3dc-b788aa8a52den%40googlegroups.com.

Re: Power BI Dashboard Embed Code Using Django.

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+unsubscribe@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.