Re: solved

2022-10-31 Thread Aziz Mek
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
https://groups.google.com/g/django-users/c/L4J9nvsLs1g/m/tqEnEw0YAwAJ

here is the other one
https://groups.google.com/g/django-users/c/sZf1T-xzwXs/m/logE7lyoAgAJ

many thanks
Az


On Sat, 29 Oct 2022 at 18:28, 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
> 
> .
>


-- 
Kind regards
Aziz Meknassi
Tel: 07552128860

www.web-moods.com
Linkedin 
Twitter 

-- 
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/CAOoJfQ%2Bc2NtuVFNJsmrYsseaQAnjXSp7S2xpp4%3Dn5K07mNW3fw%40mail.gmail.com.


Re: page html

2022-10-31 Thread REMY TOUITOU
Hello , thanks you , I try to connect , what is you Telefon number , mine
is 0033687798426

Le dimanche 30 octobre 2022, Adebileje Nurudeen  a
écrit :

> Can we chat on WhatsApp for more help on that??
>
> On Sun, Oct 30, 2022 at 8:46 PM REMY TOUITOU 
> 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+unsubscr...@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+unsubscr...@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+unsubscr...@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: page html

2022-10-31 Thread Ammar Mohammed
Hello

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

Regards

On Mon, 31 Oct 2022, 11:33 AM REMY TOUITOU,  wrote:

> Hello , thanks you , I try to connect , what is you Telefon number , mine
> is 0033687798426
>
> Le dimanche 30 octobre 2022, Adebileje Nurudeen  a
> écrit :
>
>> Can we chat on WhatsApp for more help on that??
>>
>> On Sun, Oct 30, 2022 at 8:46 PM REMY TOUITOU 
>> 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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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

2022-10-31 Thread Muhammad Juwaini Abdul Rahman
Someone is not even doing basic django tutorial...

On Mon, 31 Oct 2022 at 18:04, Ammar Mohammed  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,  wrote:
>
>> Hello , thanks you , I try to connect , what is you Telefon number , mine
>> is 0033687798426
>>
>> Le dimanche 30 octobre 2022, Adebileje Nurudeen  a
>> écrit :
>>
>>> Can we chat on WhatsApp for more help on that??
>>>
>>> On Sun, Oct 30, 2022 at 8:46 PM REMY TOUITOU 
>>> 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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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.


Django channels and web rtc

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


Re: my project doesnt insert into the database

2022-10-31 Thread Otávio Augusto
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"  
> 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+unsubscr...@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.


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

2022-10-31 Thread emilton mendoza
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+unsubscr...@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.


Re: Django channels and web rtc

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


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

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

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


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


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

2022-10-31 Thread Paul Kudla



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 
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 p...@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+unsubscr...@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 .


--
This message has been scanned for viruses and
dangerous content by *MailScanner* , 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+unsubscr...@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.


Deploy django app on railway

2022-10-31 Thread Lakshyaraj Dash
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+unsubscr...@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: Deploy django app on railway

2022-10-31 Thread Percy Masekwameng
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, 
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+unsubscr...@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+unsubscr...@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.


Template inheritance not working

2022-10-31 Thread Alec Delaney
I have been trying to get my templates to work but they have been
ineffective. here is my code:
{% extends "index.html" %}






Document



{% block content %}


{% endblock %}




//index.html:






Document


{% block content %}
Hello, this is a test.
Help me.
{% endblock %}



-- 
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/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com.


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

2022-10-31 Thread Adeyemi Deji

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+unsubscr...@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: Template inheritance not working

2022-10-31 Thread Ammar Mohammed
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 %}
Hello, this is a test.
Help me.
{% endblock %}

//index.html:





Document


{% block content %}

{% endblock %}




-- 
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/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com

.


On Mon, 31 Oct 2022, 8:09 PM Alec Delaney, <96alecpatr...@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" %}
>
> 
> 
> 
> 
> 
> Document
> 
> 
> 
> {% block content %}
>
>
> {% endblock %}
> 
> 
> 
>
> //index.html:
>
> 
> 
> 
> 
> 
> Document
> 
> 
> {% block content %}
> Hello, this is a test.
> Help me.
> {% endblock %}
> 
> 
>
> --
> 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/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+unsubscr...@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)

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

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


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Django bugfix release: 4.1.3

2022-10-31 Thread Mariusz Felisiak

Details are available on the Django project weblog:

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

--
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/e19142ab-dc81-974c-cc32-72ef90ae0f6e%40gmail.com.