Re: Can an app subclass a core django class to channge its behavior

2022-08-24 Thread Anh Nguyen
Ur config with me are the same.

[image: Screenshot_2022-08-25-12:50:38-1661406638.png]
But i put it in the bottom of the middleware

MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"chuthe.middlewares.supervisor.ChutheIOMiddleware",
]

Think you should try by shell to make sure you can call it, or importable
`from mysite.mymiddleware import DoseControllerMiddleware`. Shell very
helpful.
On Thu, Aug 25, 2022 at 11:09 AM Mike Oliver <
mikeolive...@open4businessonline.com> wrote:

> Currently, I have
> /mysite/
> mymiddleware.py
>settings.py
>
> My CustomMiddlware class looks like...
> class DoseControllerMiddleware(object):
>
> def process_request(self, request):
> """
> get ready to call the Dose Controller
> """
> print("DoseControllerModdleware.process_request Hooray")
> return None
>
> my settings has...
> MIDDLEWARE = [
> 'django.middleware.security.SecurityMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'mysite.mymiddleware.DoseControllerMiddleware',
> 'django.middleware.common.CommonMiddleware',
> 'django.middleware.csrf.CsrfViewMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware',
> 'django.middleware.clickjacking.XFrameOptionsMiddleware',
> ]
>
> runserver gives me...
>
> ModuleNotFoundError: No module named 'mysite.mymiddleware'
>
>
>
> On Thursday, August 25, 2022 at 12:04:55 PM UTC+8 Mike Oliver wrote:
>
>> Well I have continued to search and now I see that CustomMiddleware will
>> do what I want, but I cannot find a current example and some of the
>> StackOverflow answers are old and not working in the latest Django.
>>
>> On Thursday, August 25, 2022 at 10:23:41 AM UTC+8 bboy...@gmail.com
>> wrote:
>>
>>> Could you tell us more detail of process flow?
>>>
>>> On Wed, 24 Aug 2022 at 20:52 Mike Oliver <
>>> mikeol...@open4businessonline.com> wrote:
>>>
 Hello,

 I want to follow a microservices architecture and have some shared
 services I can include in a process flow instead of the 1:1 View:Model

 Suggestions?

 MO

 --
 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/fea12690-f86e-4761-9aef-5be7358dea57n%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/a907da19-4a73-41c5-964d-67b0e67e91e5n%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/CAKaoNbTT2gfU-dYXMy71RbbjL_NS27ydt7-xJAcp8X5gptHC1g%40mail.gmail.com.


Re: Can an app subclass a core django class to channge its behavior

2022-08-24 Thread Mike Oliver
Currently, I have 
/mysite/
mymiddleware.py
   settings.py

My CustomMiddlware class looks like...
class DoseControllerMiddleware(object):

def process_request(self, request):
"""
get ready to call the Dose Controller
"""
print("DoseControllerModdleware.process_request Hooray")
return None

my settings has...
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'mysite.mymiddleware.DoseControllerMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

runserver gives me...

ModuleNotFoundError: No module named 'mysite.mymiddleware'



On Thursday, August 25, 2022 at 12:04:55 PM UTC+8 Mike Oliver wrote:

> Well I have continued to search and now I see that CustomMiddleware will 
> do what I want, but I cannot find a current example and some of the 
> StackOverflow answers are old and not working in the latest Django.
>
> On Thursday, August 25, 2022 at 10:23:41 AM UTC+8 bboy...@gmail.com wrote:
>
>> Could you tell us more detail of process flow?
>>
>> On Wed, 24 Aug 2022 at 20:52 Mike Oliver <
>> mikeol...@open4businessonline.com> wrote:
>>
>>> Hello, 
>>>
>>> I want to follow a microservices architecture and have some shared 
>>> services I can include in a process flow instead of the 1:1 View:Model 
>>>
>>> Suggestions?
>>>
>>> MO
>>>
>>> -- 
>>> 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/fea12690-f86e-4761-9aef-5be7358dea57n%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/a907da19-4a73-41c5-964d-67b0e67e91e5n%40googlegroups.com.


Re: Can an app subclass a core django class to channge its behavior

2022-08-24 Thread Mike Oliver
Well I have continued to search and now I see that CustomMiddleware will do 
what I want, but I cannot find a current example and some of the 
StackOverflow answers are old and not working in the latest Django.

On Thursday, August 25, 2022 at 10:23:41 AM UTC+8 bboy...@gmail.com wrote:

> Could you tell us more detail of process flow?
>
> On Wed, 24 Aug 2022 at 20:52 Mike Oliver <
> mikeol...@open4businessonline.com> wrote:
>
>> Hello, 
>>
>> I want to follow a microservices architecture and have some shared 
>> services I can include in a process flow instead of the 1:1 View:Model 
>>
>> Suggestions?
>>
>> MO
>>
>> -- 
>> 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/fea12690-f86e-4761-9aef-5be7358dea57n%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/bb266e45-c506-4e3d-be1d-e7a4363ba9ccn%40googlegroups.com.


Re: Job -Fullstack python expert ( Django framework)

2022-08-24 Thread Desh Deepak
I am Interested

On Wed, Aug 24, 2022, 9:02 PM Wennie Catabay 
wrote:

> I'm interested
>
> On Sat, Aug 20, 2022, 2:21 AM pcintegral@gmail.com, <
> pcintegral.pcintegr...@gmail.com> wrote:
>
>> I see many are very interested in this: Can you send resume to
>> jumezur...@lokdon.com asap if you are on expert level. I am looking for
>> experienced people from MEAAP region: Middle east, Africa and Asian pacific
>> region.
>>
>> We in fact will hire the right person after 90 days trial or probationary
>> period.Thanks.
>>
>> On Thursday, August 18, 2022 at 3:04:11 PM UTC-4 pcintegral@gmail.com
>> wrote:
>>
>>> This project is very straight to the point. We are building a micro
>>> service on top of Django framework. We currently have a virtual private
>>> cloud on DO and will like to migrate to AWS in the nearest future. This
>>> hosts our encryption SDK including authentication APIs and licensing
>>> mechanism.
>>>
>>> Our current stack is Django framework (major code in java) using python
>>> over the py4j bridge to call and run it. This consumed via API (RestFul).
>>> We recently added Springboot.
>>>
>>> What we want to accomplish:
>>> We really need the qualified person to be ready to hit the ground
>>> running with new ideas and able to train or teach other fullstack
>>> developers. We fully cloud based.
>>> 1. Design and Build a micro service with clusters to address demand with
>>> licensing of our SDK orchestrated in a way that unauthorized cannot break
>>> to use it.
>>> 2. Automate our licensing protocols as we release bearer tokens for the
>>> use of our algorithm
>>> 3. Expand the API to include other functionality with 2 other companies
>>> 4. Build a fetch request based on push from clients mobile and web
>>> application in which our encryption algo is already embedded.
>>> 5. Integrate with eth staking for challenge where the actionable
>>> parameter e.g BMI could now be shared with data brokers n a secure and
>>> privacy preserving way.
>>>
>>> If you have the skills and believe that you are a good fit don't
>>> hesitate to reach me asap.
>>> We require that you will be available online e.g skype, whatsapp and as
>>> well as in our app for message..There could be a possible long term
>>> opportunity for the right candidate.
>>>
>>> There are many interesting projects.
>>>
>>> Be certain that you are a guru and can impart knowledge to others.
>>>
>>> Reach if you are interested.
>>>
>> --
>> 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/5d77de0d-b274-4ede-9f71-18037c3b6c62n%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/CAGiktAnP%3DZdY%2B3Gw9%3D1VsLs4KR0NU7hBtGMWor5_1F4dEE9nbg%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/CAJ0m4xgo-z2aiWRhFbap7Acip9T7f3qFfOf_EobuqftWBuO4-g%40mail.gmail.com.


Re: Can an app subclass a core django class to channge its behavior

2022-08-24 Thread Anh Nguyen
Could you tell us more detail of process flow?

On Wed, 24 Aug 2022 at 20:52 Mike Oliver <
mikeolive...@open4businessonline.com> wrote:

> Hello,
>
> I want to follow a microservices architecture and have some shared
> services I can include in a process flow instead of the 1:1 View:Model
>
> Suggestions?
>
> MO
>
> --
> 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/fea12690-f86e-4761-9aef-5be7358dea57n%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/CAKaoNbRgkXSW%3Dp4ccP-OSduxwhH7JXHh7QkJfNKh7DtjjKxioA%40mail.gmail.com.


Re: Two list on one page

2022-08-24 Thread Ezequias Santos
Hello @Matheus

apparently, you have this:
product list.
expense list.

I don't understand why you want this all on the page, since it deals with a
different cost center. (just a suggestion)

Regarding pagination, if you're using Django and I think so, have a look at
this: https://docs.djangoproject.com/en/4.1/topics/pagination/

I think it can help you a lot, here you have everything you need.

by  Ezequias

Em qua., 24 de ago. de 2022 às 15:33, Matheus Bon 
escreveu:

> Hello There
>
> I want to create two lists on one page, in the style of the image (I'm
> Brazilian, so the list is in Portuguese).
>
> However, if I do it the way I'm showing it in the code image, I'll
> necessarily have to make two pages for each list, right?
>
>
> --
> 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/9a14d11c-7909-440c-8c7f-409571d358e8n%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/CAFLHO_vsZaAnWOXoc0eY03OkPnmpM%3DxPZzK7o%2Bx3-VpE42J70Q%40mail.gmail.com.


Re: Two list on one page

2022-08-24 Thread Thomas Lockhart
Lay out your template to include both lists, then define get_context_data() in 
your view to have two lists of objects to show in your template.

Get farther along and it will be easier for us to answer specific questions.

hth

- Tom

> On Aug 24, 2022, at 12:34 PM, Matheus Bon  wrote:
> 
> What would be a way to get two lists on the same page?
> 
> Em quarta-feira, 24 de agosto de 2022 às 16:33:23 UTC-3, Matheus Bon escreveu:
> Hello There
> 
> I want to create two lists on one page, in the style of the image (I'm 
> Brazilian, so the list is in Portuguese).
> 
> However, if I do it the way I'm showing it in the code image, I'll 
> necessarily have to make two pages for each list, right?
> 
> 
> 
> -- 
> 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/05b14e53-1950-41ac-84ac-51800f40a7e2n%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/86D33FCE-CFE8-442F-8478-5259541F5823%40gmail.com.


Re: Two list on one page

2022-08-24 Thread Matheus Bon
What would be a way to get two lists on the same page?

Em quarta-feira, 24 de agosto de 2022 às 16:33:23 UTC-3, Matheus Bon 
escreveu:

> Hello There
>
> I want to create two lists on one page, in the style of the image (I'm 
> Brazilian, so the list is in Portuguese).
>
> However, if I do it the way I'm showing it in the code image, I'll 
> necessarily have to make two pages for each list, right?
>
>
>

-- 
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/05b14e53-1950-41ac-84ac-51800f40a7e2n%40googlegroups.com.


Two list on one page

2022-08-24 Thread Matheus Bon
Hello There

I want to create two lists on one page, in the style of the image (I'm 
Brazilian, so the list is in Portuguese).

However, if I do it the way I'm showing it in the code image, I'll 
necessarily have to make two pages for each list, right?


-- 
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/9a14d11c-7909-440c-8c7f-409571d358e8n%40googlegroups.com.


Re: I want to fetch the value of radio field for updation but it only doesn't fetch even i use condition and value does comes but doesn't checked

2022-08-24 Thread Mihir Patel
i dont have much idea but try to do with True Or False value bcz maybe it
returns boolean value.

On Mon, Aug 22, 2022 at 12:27 PM Abhinandan K 
wrote:

> Email
> 
> {% with val_gen=datas.gender%}
> {{val_gen}}
> gender:
>
>  checked{% endif %} >Male
>  checked{% endif %}>Female
> 
> {% endwith %}
> 
>
> --
> 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/CAA6_Mp44RQjMeWfVW82vvT2-GLrv5Jpu2nb_6edWON_3sgXQwQ%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/CAC10kRG9fXHxO3WPaWftOWEH6jXoV%3D6DNEoV2UyoQNah53NaDA%40mail.gmail.com.


Re: Job -Fullstack python expert ( Django framework)

2022-08-24 Thread Wennie Catabay
I'm interested

On Sat, Aug 20, 2022, 2:21 AM pcintegral@gmail.com, <
pcintegral.pcintegr...@gmail.com> wrote:

> I see many are very interested in this: Can you send resume to
> jumezur...@lokdon.com asap if you are on expert level. I am looking for
> experienced people from MEAAP region: Middle east, Africa and Asian pacific
> region.
>
> We in fact will hire the right person after 90 days trial or probationary
> period.Thanks.
>
> On Thursday, August 18, 2022 at 3:04:11 PM UTC-4 pcintegral@gmail.com
> wrote:
>
>> This project is very straight to the point. We are building a micro
>> service on top of Django framework. We currently have a virtual private
>> cloud on DO and will like to migrate to AWS in the nearest future. This
>> hosts our encryption SDK including authentication APIs and licensing
>> mechanism.
>>
>> Our current stack is Django framework (major code in java) using python
>> over the py4j bridge to call and run it. This consumed via API (RestFul).
>> We recently added Springboot.
>>
>> What we want to accomplish:
>> We really need the qualified person to be ready to hit the ground running
>> with new ideas and able to train or teach other fullstack developers. We
>> fully cloud based.
>> 1. Design and Build a micro service with clusters to address demand with
>> licensing of our SDK orchestrated in a way that unauthorized cannot break
>> to use it.
>> 2. Automate our licensing protocols as we release bearer tokens for the
>> use of our algorithm
>> 3. Expand the API to include other functionality with 2 other companies
>> 4. Build a fetch request based on push from clients mobile and web
>> application in which our encryption algo is already embedded.
>> 5. Integrate with eth staking for challenge where the actionable
>> parameter e.g BMI could now be shared with data brokers n a secure and
>> privacy preserving way.
>>
>> If you have the skills and believe that you are a good fit don't hesitate
>> to reach me asap.
>> We require that you will be available online e.g skype, whatsapp and as
>> well as in our app for message..There could be a possible long term
>> opportunity for the right candidate.
>>
>> There are many interesting projects.
>>
>> Be certain that you are a guru and can impart knowledge to others.
>>
>> Reach if you are interested.
>>
> --
> 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/5d77de0d-b274-4ede-9f71-18037c3b6c62n%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/CAGiktAnP%3DZdY%2B3Gw9%3D1VsLs4KR0NU7hBtGMWor5_1F4dEE9nbg%40mail.gmail.com.


Re: How to Manage User & Create a Model

2022-08-24 Thread ahmed doudou
https://docs.djangoproject.com/en/4.1/topics/auth/customizing/


 read this documentation to the end it's gonna solve your problem

Ahmed °•°

On Wed, Aug 24, 2022, 14:52 Aakash Bhaikatti 
wrote:

> As a User
>
>- I can signup either as LIBRARIAN and MEMBER using username and
>password
>- I can login using username/password and get JWT access token
>
> As a Librarian
>
>- I can add, update, and remove Books from the system
>- I can add, update, view, and remove Member from the system
>
> As a Member
>
>- I can view, borrow, and return available Books
>- Once a book is borrowed, its status will change to BORROWED
>- Once a book is returned, its status will change to AVAILABLE
>- I can delete my own account
>
> As i'm a newbie. Can anyone Please help in how can I create the models of
> these. Thank you
>
> --
> 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/e1616bb0-8b07-46be-a6bb-a3ed3f181d79n%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/CAKt4ypCak0zowZFMTKeU%3DUt%3D5tuVXvE-mdr7vEPoYJK1Fq43Jw%40mail.gmail.com.


User authentication with simple-jwt drf

2022-08-24 Thread Lakshyaraj Dash
Hello everyone,
I want to create a user authentication app using ReactJS and django. But
facing problems in authenticating with the jsonwebtokens in ReactJS. Can
anybody provide correct guide of implementing DjangoRestFramework
simple-jwt and ReactJS jet ?

-- 
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/CAF7qQgAP5MbmBLtEHpGWZ%3Dp9Uc_hc053T_BcxVQm%3D_7VMq9CxQ%40mail.gmail.com.


Re: page index.html

2022-08-24 Thread ahmed doudou
https://docs.djangoproject.com/en/4.1/topics/http/urls/

This is django documentation just follow it step by step.

On Wed, Aug 24, 2022, 13:55 REMY TOUITOU  wrote:

> ok , i will send this to you this evening
> thanks you
>
> Le mer. 24 août 2022 à 14:11, Asif Ahmed Khan  a
> écrit :
>
>> What type of errors are you facing?
>> Can you send some screenshots?
>> or error details?
>>
>> On Wed, 24 Aug 2022 at 15:14, REMY TOUITOU  wrote:
>>
>>> hello  , i have a question , i can't make the server running , when i do
>>> the command  py manage;py runserver , it gives a lot of error in differents
>>> files , before the server was running well;
>>> i use visual studio code and conda ;
>>> thanks you
>>> remy
>>>
>>> Le jeu. 18 août 2022 à 23:06, hajar Benjat  a
>>> écrit :
>>>
 did you make it right (what about the urls.py and views.py )

 [image: width=]
 
  Sans
 virus.www.avast.com
 
 <#m_-6713031959857928248_m_-7254537909647413282_m_2558853448420336607_m_-5726608972012506882_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

 --
 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/CAMcj6WdYMRVgsEgaPAf%3DAzxqBWyKph_biCSgNZ5r1QtR4g2%3D2Q%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/CAD9WEx365okwa4ziZXt1pVj3sQ9bDCZmyjkhx6nosqfn4iwmHg%40mail.gmail.com
>>> 
>>> .
>>>
>>
>>
>> --
>> K. Asif Ahmed
>> *System Manager*
>>
>> *Maharashtra State Seeds Co. Ltd, Akolahttp://www.mahabeej.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/CAEMxhgS3tUSqdhJaEy2W9_duipbwcZYn3j4x36OZh48gUL7N_w%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/CAD9WEx2LbXs0BBtQ%2B1CS7D_oi-5ZwbbtchK813GYqBHR7RenPw%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/CAKt4ypDzqHy5xCyicYupozvbNU6iaX%3DOH5XjKzq_dMNcBUfGXg%40mail.gmail.com.


Re: page index.html

2022-08-24 Thread Danish Nagori
Hi
Dear I  think you run py manage; py runserver
So please
You run this command
 py manage.py runserver
This is write commnd
Thanks


On Wed, 24 Aug 2022, 2:44 pm REMY TOUITOU,  wrote:

> hello  , i have a question , i can't make the server running , when i do
> the command  py manage;py runserver , it gives a lot of error in differents
> files , before the server was running well;
> i use visual studio code and conda ;
> thanks you
> remy
>
> Le jeu. 18 août 2022 à 23:06, hajar Benjat  a
> écrit :
>
>> did you make it right (what about the urls.py and views.py )
>>
>> [image: width=]
>> 
>>  Sans
>> virus.www.avast.com
>> 
>> <#m_9169318765117951855_m_-5726608972012506882_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>> --
>> 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/CAMcj6WdYMRVgsEgaPAf%3DAzxqBWyKph_biCSgNZ5r1QtR4g2%3D2Q%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/CAD9WEx365okwa4ziZXt1pVj3sQ9bDCZmyjkhx6nosqfn4iwmHg%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/CAKa3babks5Cru53U26Tztim_PkESBXh8WYO6-mUew17VLCXVZA%40mail.gmail.com.


Re: page index.html

2022-08-24 Thread Håkon Øyen
Try locating the first of the listed files. That's usually where the error 
is.

On Wednesday, August 24, 2022 at 11:45:23 AM UTC+2 touit...@gmail.com wrote:

> hello  , i have a question , i can't make the server running , when i do 
> the command  py manage;py runserver , it gives a lot of error in differents 
> files , before the server was running well;
> i use visual studio code and conda ;
> thanks you 
> remy
>
> Le jeu. 18 août 2022 à 23:06, hajar Benjat  a écrit :
>
>> did you make it right (what about the urls.py and views.py )
>>
>> [image: width=] 
>> 
>>  Sans 
>> virus.www.avast.com 
>> 
>>  
>> <#m_88203880521145029_m_-5726608972012506882_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>> -- 
>>
> 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/CAMcj6WdYMRVgsEgaPAf%3DAzxqBWyKph_biCSgNZ5r1QtR4g2%3D2Q%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/89afbbd2-6367-4d11-bd30-a03f096f5c88n%40googlegroups.com.


How to Manage User & Create a Model

2022-08-24 Thread Aakash Bhaikatti


As a User

   - I can signup either as LIBRARIAN and MEMBER using username and password
   - I can login using username/password and get JWT access token

As a Librarian

   - I can add, update, and remove Books from the system
   - I can add, update, view, and remove Member from the system

As a Member

   - I can view, borrow, and return available Books
   - Once a book is borrowed, its status will change to BORROWED
   - Once a book is returned, its status will change to AVAILABLE
   - I can delete my own account

As i'm a newbie. Can anyone Please help in how can I create the models of 
these. Thank you

-- 
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/e1616bb0-8b07-46be-a6bb-a3ed3f181d79n%40googlegroups.com.


Can an app subclass a core django class to channge its behavior

2022-08-24 Thread Mike Oliver
Hello, 

I want to follow a microservices architecture and have some shared services 
I can include in a process flow instead of the 1:1 View:Model 

Suggestions?

MO

-- 
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/fea12690-f86e-4761-9aef-5be7358dea57n%40googlegroups.com.


Re: page index.html

2022-08-24 Thread ALBERT ASHABA AHEEBWA
You need to share a screenshot for better help.
Though it is manage.py and not manage;py



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

On Wed, 24 Aug 2022, 12:45 REMY TOUITOU,  wrote:

> hello  , i have a question , i can't make the server running , when i do
> the command  py manage;py runserver , it gives a lot of error in differents
> files , before the server was running well;
> i use visual studio code and conda ;
> thanks you
> remy
>
> Le jeu. 18 août 2022 à 23:06, hajar Benjat  a
> écrit :
>
>> did you make it right (what about the urls.py and views.py )
>>
>> [image: width=]
>> 
>>  Sans
>> virus.www.avast.com
>> 
>> <#m_3567775154481340076_m_-5726608972012506882_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>> --
>> 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/CAMcj6WdYMRVgsEgaPAf%3DAzxqBWyKph_biCSgNZ5r1QtR4g2%3D2Q%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/CAD9WEx365okwa4ziZXt1pVj3sQ9bDCZmyjkhx6nosqfn4iwmHg%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/CAAQecPdNRtqBoxoE0764UE2c1hjJCtUUUtCMy23yD5Z0dPVssg%40mail.gmail.com.


Database issue with Django 4.1

2022-08-24 Thread Fernando Villaça
Hi everyone,

I just updated a project to 4.1, and a query stopped working. I tested with 
both SQLite and PostgreSQL, and i got the same result. I'm not 100% sure 
this is bug in Django 4.1, but it works fine on 4.0.7.

These are the models and the manager related to the query:

class PostManager(models.Manager):
def request_data(self, request_user):
liked_by_user = Value(False)
is_following = Value(False)
is_owner = Case(When(user__id=request_user.id, then=True), default
=False)

if request_user.is_authenticated:
# Check if the user has liked the post in each row of the query
liked_by_user = Exists(request_user.liked_posts.filter(id
=OuterRef("id")))
is_following = Exists(request_user.following.filter(id
=OuterRef("user__id")))

return is_owner, liked_by_user, is_following

def fetch_all_posts(self, request_user) -> QuerySet[Post]:
is_owner, liked_by_user, is_following = self
.request_data(request_user)

return (
self.select_related()
.prefetch_related(
Prefetch(
"comments",
queryset=Comment.objects.select_related().filter(reply
=False),
),  # filter related "comments" inside the post QuerySet
)
.order_by("-publication_date")
.annotate(is_following=is_following)
.annotate(is_owner=is_owner)
.annotate(likes=Count("liked_by"))
.annotate(liked_by_user=liked_by_user)
)

def fetch_following_posts(self, request_user: User) -> QuerySet[Post]:
return self.fetch_all_posts(request_user).filter(user__in
=request_user.following.all())

class User(AbstractUser):
id: int
posts: RelatedManager[Post]
liked_posts: RelatedManager[Post]
comments: RelatedManager[Comment]

about = models.CharField(blank=True, max_length=255)
photo = models.ImageField(
blank=True,
upload_to=upload_path,
validators=[file_validator],
)

following = models.ManyToManyField("self", related_name="followers", 
symmetrical=False)

objects: CustomUserManager = CustomUserManager()

class Post(models.Model):
id: int
user_id: int
comments: RelatedManager[Comment]

user = models.ForeignKey(
settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name
="posts"
)
text = models.CharField(max_length=200)
publication_date = models.DateTimeField(auto_now_add=True)
edited = models.BooleanField(default=False)
last_modified = models.DateTimeField(auto_now_add=True)
liked_by = models.ManyToManyField(
settings.AUTH_USER_MODEL, related_name="liked_posts", blank=True
)

objects: PostManager = PostManager()

The query raising the exception:
posts = Post.objects.fetch_all_posts(request_user=request.user)

Traceback:
 File "/home/fernando/Workspaces/CS50 
Web/project4/network/network/api_views.py", line 198, in get_all_posts
if posts is None or posts.exists() is False:
  File "/home/fernando/Workspaces/CS50 
Web/project4/network/.venv/lib/python3.10/site-packages/django/db/models/query.py",
 
line 1225, in exists
return self.query.has_results(using=self.db)
  File "/home/fernando/Workspaces/CS50 
Web/project4/network/.venv/lib/python3.10/site-packages/django/db/models/sql/query.py",
 
line 592, in has_results
return compiler.has_results()
  File "/home/fernando/Workspaces/CS50 
Web/project4/network/.venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py",
 
line 1363, in has_results
return bool(self.execute_sql(SINGLE))
  File "/home/fernando/Workspaces/CS50 
Web/project4/network/.venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py",
 
line 1395, in execute_sql
cursor.execute(sql, params)
  File "/home/fernando/Workspaces/CS50 
Web/project4/network/.venv/lib/python3.10/site-packages/django/db/backends/utils.py",
 
line 103, in execute
return super().execute(sql, params)
  File "/home/fernando/Workspaces/CS50 
Web/project4/network/.venv/lib/python3.10/site-packages/django/db/backends/utils.py",
 
line 67, in execute
return self._execute_with_wrappers(
  File "/home/fernando/Workspaces/CS50 
Web/project4/network/.venv/lib/python3.10/site-packages/django/db/backends/utils.py",
 
line 80, in _execute_with_wrappers
return executor(sql, params, many, context)
  File "/home/fernando/Workspaces/CS50 
Web/project4/network/.venv/lib/python3.10/site-packages/django/db/backends/utils.py",
 
line 84, in _execute
with self.db.wrap_database_errors:
  File "/home/fernando/Workspaces/CS50 
Web/project4/network/.venv/lib/python3.10/site-packages/django/db/utils.py", 
line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/home/fernando/Workspaces/CS50 
Web/project4/network/.venv/lib/python3.10/site-packages/django/db/backends/utils.py",
 
line 89, in _execute
return 

Re: plz help user authentication

2022-08-24 Thread Wazed Khan
Use the relationship in this way
Product -> Seller-> User
Instead Product -> User -> Seller

On Wed, Aug 24, 2022, 7:18 PM MAHESH KUMAR 
wrote:

>
> 1. User Authentication APIs:
> 1. get or create user by phone number, params: “phone_no”, response
> {“user_id”,”auth_token”},
> 2. get or create user by email, params: “email”, response
> {“user_id”,”auth_token”},
>
> how to write this i was try but i didn't get plz help sir
> On Friday, August 19, 2022 at 4:59:56 AM UTC+5:30 subtitle indo wrote:
>
>> I will ok forward to meeting you on February 15.
>>
>> On Thu, Aug 18, 2022 at 4:18 PM Wazed Khan  wrote:
>>
>>> Hi
>>> I have created an online store project where every product has a user
>>> who is the seller.
>>> I wanted to access seller info from the product using reverse relation
>>> "product.user.sellar"
>>> but it returns appname.Model.None
>>> here is my usermodel and sellar model
>>> [image: image.png]
>>> [image: image.png]
>>>
>>> [image: image.png]
>>> (there is a spelling mistake seller is sellar)
>>>
>>> Please help me I'm kind of stuck with the problem for two days
>>>
>>> --
>>>
>> 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/CALWCTKgFieA0u%3DyT_EhvT0Z4RA_Umvtzw7FGztSpZ6ocySTPpQ%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/2ff98ea9-e896-4baf-922b-c47f577924dan%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/CALWCTKgnQy4OTuHFacDTM8Gd6kBoanuu2e%2B6zwfUxZ4r0OtK6Q%40mail.gmail.com.


Re: plz help user authentication

2022-08-24 Thread MAHESH KUMAR

1. User Authentication APIs:
1. get or create user by phone number, params: “phone_no”, response 
{“user_id”,”auth_token”},
2. get or create user by email, params: “email”, response 
{“user_id”,”auth_token”},

how to write this i was try but i didn't get plz help sir
On Friday, August 19, 2022 at 4:59:56 AM UTC+5:30 subtitle indo wrote:

> I will ok forward to meeting you on February 15.
>
> On Thu, Aug 18, 2022 at 4:18 PM Wazed Khan  wrote:
>
>> Hi 
>> I have created an online store project where every product has a user who 
>> is the seller.
>> I wanted to access seller info from the product using reverse relation 
>> "product.user.sellar"
>> but it returns appname.Model.None
>> here is my usermodel and sellar model
>> [image: image.png]
>> [image: image.png]
>>
>> [image: image.png]
>> (there is a spelling mistake seller is sellar)
>>
>> Please help me I'm kind of stuck with the problem for two days
>>
>> -- 
>>
> 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/CALWCTKgFieA0u%3DyT_EhvT0Z4RA_Umvtzw7FGztSpZ6ocySTPpQ%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/2ff98ea9-e896-4baf-922b-c47f577924dan%40googlegroups.com.


Re: page index.html

2022-08-24 Thread REMY TOUITOU
ok , i will send this to you this evening
thanks you

Le mer. 24 août 2022 à 14:11, Asif Ahmed Khan  a
écrit :

> What type of errors are you facing?
> Can you send some screenshots?
> or error details?
>
> On Wed, 24 Aug 2022 at 15:14, REMY TOUITOU  wrote:
>
>> hello  , i have a question , i can't make the server running , when i do
>> the command  py manage;py runserver , it gives a lot of error in differents
>> files , before the server was running well;
>> i use visual studio code and conda ;
>> thanks you
>> remy
>>
>> Le jeu. 18 août 2022 à 23:06, hajar Benjat  a
>> écrit :
>>
>>> did you make it right (what about the urls.py and views.py )
>>>
>>> [image: width=]
>>> 
>>>  Sans
>>> virus.www.avast.com
>>> 
>>> <#m_-7254537909647413282_m_2558853448420336607_m_-5726608972012506882_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>
>>> --
>>> 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/CAMcj6WdYMRVgsEgaPAf%3DAzxqBWyKph_biCSgNZ5r1QtR4g2%3D2Q%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/CAD9WEx365okwa4ziZXt1pVj3sQ9bDCZmyjkhx6nosqfn4iwmHg%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> K. Asif Ahmed
> *System Manager*
>
> *Maharashtra State Seeds Co. Ltd, Akolahttp://www.mahabeej.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/CAEMxhgS3tUSqdhJaEy2W9_duipbwcZYn3j4x36OZh48gUL7N_w%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/CAD9WEx2LbXs0BBtQ%2B1CS7D_oi-5ZwbbtchK813GYqBHR7RenPw%40mail.gmail.com.


Re: page index.html

2022-08-24 Thread Asif Ahmed Khan
What type of errors are you facing?
Can you send some screenshots?
or error details?

On Wed, 24 Aug 2022 at 15:14, REMY TOUITOU  wrote:

> hello  , i have a question , i can't make the server running , when i do
> the command  py manage;py runserver , it gives a lot of error in differents
> files , before the server was running well;
> i use visual studio code and conda ;
> thanks you
> remy
>
> Le jeu. 18 août 2022 à 23:06, hajar Benjat  a
> écrit :
>
>> did you make it right (what about the urls.py and views.py )
>>
>> [image: width=]
>> 
>>  Sans
>> virus.www.avast.com
>> 
>> <#m_2558853448420336607_m_-5726608972012506882_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>> --
>> 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/CAMcj6WdYMRVgsEgaPAf%3DAzxqBWyKph_biCSgNZ5r1QtR4g2%3D2Q%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/CAD9WEx365okwa4ziZXt1pVj3sQ9bDCZmyjkhx6nosqfn4iwmHg%40mail.gmail.com
> 
> .
>


-- 
K. Asif Ahmed
*System Manager*

*Maharashtra State Seeds Co. Ltd, Akolahttp://www.mahabeej.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/CAEMxhgS3tUSqdhJaEy2W9_duipbwcZYn3j4x36OZh48gUL7N_w%40mail.gmail.com.


Re: page index.html

2022-08-24 Thread REMY TOUITOU
hello  , i have a question , i can't make the server running , when i do
the command  py manage;py runserver , it gives a lot of error in differents
files , before the server was running well;
i use visual studio code and conda ;
thanks you
remy

Le jeu. 18 août 2022 à 23:06, hajar Benjat  a écrit :

> did you make it right (what about the urls.py and views.py )
>
> [image: width=]
> 
>  Sans
> virus.www.avast.com
> 
> <#m_-5726608972012506882_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> --
> 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/CAMcj6WdYMRVgsEgaPAf%3DAzxqBWyKph_biCSgNZ5r1QtR4g2%3D2Q%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/CAD9WEx365okwa4ziZXt1pVj3sQ9bDCZmyjkhx6nosqfn4iwmHg%40mail.gmail.com.


Re: How to enable/disable a hyperlink based on the clock

2022-08-24 Thread M Adnan
Use cronjobs for this , which will run on a specific time and than make a
boolean true or false than you can easily handle enable and disable on the
base of the boolean

On Wed, 24 Aug 2022, 10:58 am Mike Dewhirst,  wrote:

> I want to provide a link to join a regular Zoom webinar but
> enable/disable it just like a garden sprinkler.
>
> Enable at noon on Friday, disable fifteen minutes later. Repeat for next
> Friday.
>
> It feels like I need some sort of push. I'm not a js person.
>
> Perhaps I should be looking at htmx?
>
> Any hints?
>
> Thanks
>
> mike
>
> --
> Signed email is an absolute defence against phishing. This email has
> been signed with my private key. If you import my public key you can
> automatically decrypt my signature and be sure it came from me. Just
> ask and I'll send it to you. Your email software can handle signing.
>
> --
> 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/760895a6-8415-ddd4-303d-5846ba4f1fc6%40dewhirst.com.au
> .
>

-- 
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/CABNyTSonnY6zuKkWRYK%2BJSqM8SL72%3DAiqDhzAhLqbpazWHCTHQ%40mail.gmail.com.