Re: Getting Django Channels working with NewRelic

2023-11-17 Thread Lutaaya Jamil
I suggest this, how bout you tell me something simple I can try doing 
tonight, in that If I manage to do it and show to you how I did it, I would 
have helped.

For example if it is fibonacci,  and you want to know how it works you can 
ask me to show research and show how to reach the result of fibonacci 6 in 
that you can follow that working to get the answer to fibonacci n.

It may sound crazy to you, but you never know, try us and any other who 
might read what you exactly want to do.
Someone out there might help.
On Friday, 17 November 2023 at 21:57:37 UTC+3 Filbert wrote:

> We use dramatiq not celery, instrumenting dramatiq was easy. Channels is a 
> different beast, clearly a pattern NewRelic doesn't recognize out of the 
> box.
>
> On Friday, November 17, 2023 at 12:40:38 PM UTC-5 Lutaaya Jamil wrote:
>
>> I have never used that, hearing for the first time though.
>> Is doing the same as celery?
>> I am interested in making it work with you, we might dive into it 
>> together, you never know...Adding a new skill is worth it
>>
>> On Friday, 17 November 2023 at 18:54:52 UTC+3 Tim Nelson wrote:
>>
>>> I am trying to get NewRelic monitoring my ASGI code written in Django 
>>> Channels.
>>>
>>> Most notably, this line of code from their examples should create a 
>>> NewRelic transaction and start monitoring all async activity.
>>>
>>>channel_layer = 
>>> newrelic.agent.ASGIApplicationWrapper(get_default_application())
>>>
>>> Has anyone got this working?
>>>
>>> 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/00a49abe-6bec-4d96-afc6-2545b6b68b12n%40googlegroups.com.


Re: Getting Django Channels working with NewRelic

2023-11-17 Thread Lutaaya Jamil
I have never used that, hearing for the first time though.
Is doing the same as celery?
I am interested in making it work with you, we might dive into it together, 
you never know...Adding a new skill is worth it

On Friday, 17 November 2023 at 18:54:52 UTC+3 Tim Nelson wrote:

> I am trying to get NewRelic monitoring my ASGI code written in Django 
> Channels.
>
> Most notably, this line of code from their examples should create a 
> NewRelic transaction and start monitoring all async activity.
>
>channel_layer = 
> newrelic.agent.ASGIApplicationWrapper(get_default_application())
>
> Has anyone got this working?
>
> 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/0d094b86-ac88-4cfa-a6f8-f419bbc58b4an%40googlegroups.com.


Re: activate source my_env/bin/activate

2023-11-15 Thread Lutaaya Jamil
Do as Mr. Jung said, and ensure to be in the same folder where your virtual 
env is
On Wednesday, 15 November 2023 at 18:34:04 UTC+3 Sebastian Jung wrote:

> Linux is case sensitive... Try source
>
> william Kachuma  schrieb am Mi., 15. Nov. 2023, 16:31:
>
>> good day 
>>
>> i am experiencing problem when trying to activate my_env, can someone 
>> please assit me
>>
>> Command 'Source' not found, did you mean:
>>   command 'gource' from deb gource (0.54-1)
>> Try: sudo apt install 
>>
>> kind regards
>>
>> -- 
>> 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/f70ed7d8-01ba-4b8f-a8f0-5c409146b929n%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/81c00d09-5a56-45c9-ab6d-45be496a1523n%40googlegroups.com.


Re: New User of Django

2023-11-15 Thread Lutaaya Jamil
You have python?
Google django, and follow the instructions or you can follow mosh here, I 
learnt from him though it was years back https://youtu.be/rHux0gMZ3Eg


On Wednesday, 15 November 2023 at 18:32:39 UTC+3 Yonis Abdulkadir wrote:

> I need you to give me an explanation about how i can install and use it 
> thank you so much
>
>

-- 
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/c1fec1ed-c361-4de3-b819-0c34adb87987n%40googlegroups.com.


Re: Writing migrations to wrong database entirely

2023-11-14 Thread Lutaaya Jamil
I guessed that would be the issue as I normally run into it at times

On Tuesday, 14 November 2023 at 18:56:02 UTC+3 David Crandell wrote:

> Found the issue. I had a DATABASE_URL defined in my environment variables 
> for one of my projects and my other project was somehow using this even 
> though settings.py had its own definition under DATABASES.
>
> I temporarily changed the DATABASE_URL var to a different name to 
> eliminate it from the equation and then to be sure, I ran python manage.py 
> migrate  zero on each app, then ran initial migrations for the 
> auth and django tables and then makemigrations on my own models. It cleared 
> everything up and migrated to the proper DB.
> Thank y'all for your help.
>
>
> T
> On Tuesday, November 14, 2023 at 7:14:22 AM UTC-7 David Crandell wrote:
>
>> 
>>
>> Howdy, I have been working with Django for about three years now and have 
>> developed a couple business grade apps which are deployed and doing great.
>>
>> The other day, I created a new project with a new database, etc.
>>
>> I built out the initial models and migrated them to the proper database. 
>> However, subsequent migrations are going to a database I built for another 
>> app entirely. The two databases aren't on the same host, don't have similar 
>> names - they have nothing in common.
>>
>> How is this possible? Is there some connection cache I need to clear? I 
>> haven't even had any of the other projects open or running locally- nothing.
>>
>> I'm baffled.
>>
>

-- 
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/9b1c8381-063b-4971-9439-74b0dc0bde13n%40googlegroups.com.


Re: Writing migrations to wrong database entirely

2023-11-14 Thread Lutaaya Jamil
Are you using the database_url your environment variables? Maybe the file 
is same

On Tuesday, 14 November 2023 at 17:14:22 UTC+3 David Crandell wrote:

> 
>
> Howdy, I have been working with Django for about three years now and have 
> developed a couple business grade apps which are deployed and doing great.
>
> The other day, I created a new project with a new database, etc.
>
> I built out the initial models and migrated them to the proper database. 
> However, subsequent migrations are going to a database I built for another 
> app entirely. The two databases aren't on the same host, don't have similar 
> names - they have nothing in common.
>
> How is this possible? Is there some connection cache I need to clear? I 
> haven't even had any of the other projects open or running locally- nothing.
>
> I'm baffled.
>

-- 
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/a66b14fb-cf07-4b54-9e3b-8c2089525198n%40googlegroups.com.


Re: Django Rest framework

2023-11-13 Thread Lutaaya Jamil
You can correct me if I am wrong, but there is something to do with 

Cross-Origin Resource Sharing (CORS) in Django which somehow is set to 
prevent unauthorized domains from accessing information from another 
domain. So, I suggest if that is the issue, follow the steps that start by 
installing the django-cors-header, and add your new url to ALLOWED_HOSTS 
list in settings.py
On Monday, 13 November 2023 at 16:31:42 UTC+3 Denny (Python developer) 
wrote:

>
> i need assistance on deployment maybe vercel is not working on my side 
>
> On Monday, November 13, 2023 at 4:19:48 PM UTC+3 Vishesh Mangla wrote:
>
>> Use selenium
>>
>> On Mon, 13 Nov, 2023, 18:48 Vishesh Mangla,  wrote:
>>
>>> Don't use postman for gui based login 
>>>
>>> On Mon, 13 Nov, 2023, 18:25 Denny (Python developer), <
>>> dennisk...@gmail.com> wrote:
>>>
 i think the the error is from vercel itself assist me my tech guys

 On Monday, November 13, 2023 at 3:54:29 PM UTC+3 Denny (Python 
 developer) wrote:

> i hosted my django application to vercel and am using free postgress 
> database from railway so when i try to register the user i get an error 
>  attached below. when i connect my endpoints with fronted of which am 
> using 
> React i get an error cors origin assist me please 
>
 -- 
 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/55866942-048b-4c25-8b81-e4d259dca936n%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/5ee28b0b-d280-487a-921b-f7f9a02ba637n%40googlegroups.com.