RE: Can't Load Django Dev Sever

2022-11-10 Thread Mike Dewhirst
Try visiting http://localhost:8000 insteadNo guarantees and I'm not going to 
test it myself ;-)--(Unsigned mail from my phone)
 Original message From: James  
Date: 11/11/22  16:13  (GMT+10:00) To: Django users 
 Subject: Can't Load Django Dev Sever Hello,I 
can't connect to my django web server and it's all my fault. I turned on 
SECURE_HSTS_SECONDS to 60 by accident in development, in another project, a few 
days ago.Now I can not load http://127.0.0.1:8000 on FireFox and I don't know 
how to fix it. And yes runserver is set to that port/ip and yes I can connect 
in incognito mode and in chrome.I have cleared all caches and cookies.Thanks 
very 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/29a776ee-e840-45ad-885b-3f5752c9466fn%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/636dfb79.050a0220.368b6.8b8fSMTPIN_ADDED_MISSING%40gmr-mx.google.com.


Re: Page Integration

2022-11-10 Thread Pooja Kumari
I tried many ways but nothing works.
Sorry this code is messed up but hope you get some idea what I'm trying to
do.
In views.py
@api_view(['GET', 'POST', ])
def signUpPage(request, format=None):
  #permission_classes = (IsAuthenticated,)
  #authentication_classes = (TokenAuthentication,)
  serializer = AuthTokenSerializer(data=request.data)
  data= {'signUpPage': Employee.objects.all() }
  if request.method == "POST":
empid=request.POST['empid']
first_name=request.POST['first_name']
last_name=request.POST['last_name']
email=request.POST['email']
password=request.POST['password']
phone=request.POST['phone']
register = NewUserSerializer(data=data, context={'request':request})
if register.is_valid(raise_exception=True):
  register.save()
  print(register.data)
  #register.save()
  return Response("registration successfully")
  #return
JsonResponse(data,template_name='signup.html',content_type="application/json")
'''
  '''
  #@action(detail=False, methods=['post'], name='register')
  def create(self, request):
"""
Api to registration
"""
try:
  data = request.data
  print(data)
  email = request.data.get("email")
  user_obj = Employee.objects.filter(email=email)
  print("35 line", user_obj)
  #print("...",user_obj)
  print("demo")
  if user_obj:
return Response("User Already Exist With This Email Id")
  else:
#new_user = NewUserSerializer(data=data,
context={'request':request})
#if new_user.is_valid(raise_exception=True):
#  new_user.save()
print("42 line")
new_user =
Employee.objects.create(empid=data.get('empid'),first_name=data.get('first_name'),last_name=data.get('last_name'),email=data.get('email'),password=data.get('password'),phone=data.get('phone'))
print("user",new_user)
return Response("registration successfully")

except Exception as e:
  print("hello", str(e))
  return Response( "invalid data")
'''







'''
name = request.data.get("name","")
email= request.data.get("email","")'''



"""class UserDetailAPI(APIView):
  authentication_classes = (TokenAuthentication,)
  permission_classes = (AllowAny,)
  def get(self,request,*args,**kwargs):
user = User.objects.get(id=request.user.id)
serializer = UserSerializer(user)
return Response(serializer.data)

#Class based view to register user
class RegisterUserAPIView(generics.CreateAPIView):
  permission_classes = (AllowAny,)
  serializer_class = RegisterSerializer
"""


On Fri, Nov 11, 2022 at 1:16 AM Chukwudi Onwusa 
wrote:

> If you are using function based view in your views.py . After you must
> have equated the input values through the name attribute to the instance of
> the class in your model, then instance.save() before you redirect.
> This should be done in the views.py not models.
>
> On Thu, Nov 10, 2022, 20:07 Pooja Kumari  wrote:
>
>> Where I have to use save() method? In models or somewhere else?
>>
>> On Thu, Nov 10, 2022, 9:19 PM Lakshyaraj Dash <
>> dashlakshyaraj2...@gmail.com> wrote:
>>
>>> Please see that if you're calling the .save() method or not
>>>
>>> On Thu, Nov 10, 2022, 21:02 Pooja Kumari 
>>> wrote:
>>>
 Hi.. Can anyone help me with django templates? Actually I have a
 registration page where user can signup and data will be saved in admin
 panel or database but I am not able to do that. Registration page is
 working when I hit URL but data is not saving in database. Let me know If
 anyone have idea about this type of project. I'll be very grateful 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/CAHYvwbWDVFjuddPah3WUX8M9H6ojvDSjQD_mn7W6AgcT_pQsGQ%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/CAF7qQgBrQoWDSpStS9quQ1jSWxpAD9s7kJqHgFCgiCnEMtd%2BfQ%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 

Can't Load Django Dev Sever

2022-11-10 Thread James
Hello,

I can't connect to my django web server and it's all my fault. I turned on 
SECURE_HSTS_SECONDS to 60 by accident in development, in another project, a 
few days ago.

Now I can not load http://127.0.0.1:8000 on FireFox and I don't know how to 
fix it. And yes runserver is set to that port/ip and yes I can connect in 
incognito mode and in chrome.

I have cleared all caches and cookies.

Thanks very 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/29a776ee-e840-45ad-885b-3f5752c9466fn%40googlegroups.com.


Re: Page Integration

2022-11-10 Thread Mh Raffi
In views.py on that def

On Fri, Nov 11, 2022, 12:37 AM Pooja Kumari  wrote:

> Where I have to use save() method? In models or somewhere else?
>
> On Thu, Nov 10, 2022, 9:19 PM Lakshyaraj Dash <
> dashlakshyaraj2...@gmail.com> wrote:
>
>> Please see that if you're calling the .save() method or not
>>
>> On Thu, Nov 10, 2022, 21:02 Pooja Kumari  wrote:
>>
>>> Hi.. Can anyone help me with django templates? Actually I have a
>>> registration page where user can signup and data will be saved in admin
>>> panel or database but I am not able to do that. Registration page is
>>> working when I hit URL but data is not saving in database. Let me know If
>>> anyone have idea about this type of project. I'll be very grateful 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/CAHYvwbWDVFjuddPah3WUX8M9H6ojvDSjQD_mn7W6AgcT_pQsGQ%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/CAF7qQgBrQoWDSpStS9quQ1jSWxpAD9s7kJqHgFCgiCnEMtd%2BfQ%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/CAHYvwbUCfTxMRgaxfgGK_yOwth7VAHr35hNK8JgnhDGNVsq%2BTQ%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/CAKfPRhWUrOm4rjqmVpcfFfF5Q6voE75fO17i0NBqK9NFmnNU5Q%40mail.gmail.com.


Re: Page Integration

2022-11-10 Thread Chukwudi Onwusa
If you are using function based view in your views.py . After you must have
equated the input values through the name attribute to the instance of the
class in your model, then instance.save() before you redirect.
This should be done in the views.py not models.

On Thu, Nov 10, 2022, 20:07 Pooja Kumari  wrote:

> Where I have to use save() method? In models or somewhere else?
>
> On Thu, Nov 10, 2022, 9:19 PM Lakshyaraj Dash <
> dashlakshyaraj2...@gmail.com> wrote:
>
>> Please see that if you're calling the .save() method or not
>>
>> On Thu, Nov 10, 2022, 21:02 Pooja Kumari  wrote:
>>
>>> Hi.. Can anyone help me with django templates? Actually I have a
>>> registration page where user can signup and data will be saved in admin
>>> panel or database but I am not able to do that. Registration page is
>>> working when I hit URL but data is not saving in database. Let me know If
>>> anyone have idea about this type of project. I'll be very grateful 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/CAHYvwbWDVFjuddPah3WUX8M9H6ojvDSjQD_mn7W6AgcT_pQsGQ%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/CAF7qQgBrQoWDSpStS9quQ1jSWxpAD9s7kJqHgFCgiCnEMtd%2BfQ%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/CAHYvwbUCfTxMRgaxfgGK_yOwth7VAHr35hNK8JgnhDGNVsq%2BTQ%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/CAGoV8n%3DXZ02ScGLztCWTgceLxhQc%2BB7H5um7TxFbJiavE4tNxA%40mail.gmail.com.


Re: dynamic formular

2022-11-10 Thread Arnold Falanga

merci beaucoup 
au fait un souci depuis avec la conception du formulaire. je dois 
implémenter un formulaire qui a deux parties 
la partie haute reprend les détails généraux de la commande tel que: la 
date de réception, le numéro du bon de commande , etc.
la deuxième partie du formulaire devra reprendre les informations liées à 
chaque ligne de commande...
il  y aura : le nom de l'article, la quantité, le prix, etc.
pour une commande, on pourra avoir plusieurs articles. 
Le jeudi 10 novembre 2022 à 16:38:52 UTC+1, pierredi...@gmail.com a écrit :

> Good morning
> Please write in french if you Can
> I try to help you
> Thanks you 
>
> Le jeu. 10 nov. 2022 à 2:47 PM, Arnold Falanga  a 
> écrit :
>
>> Hello can anyone help me to design a dynamic form with Django the idea is 
>> to have two parts in this form. a link to add the lines
>>
>> -- 
>> 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/f9c74264-7cc0-448d-bcee-9110f7a91292n%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/5869437a-e463-428c-a59d-6dd830953b78n%40googlegroups.com.


Re: Page Integration

2022-11-10 Thread Pooja Kumari
Where I have to use save() method? In models or somewhere else?

On Thu, Nov 10, 2022, 9:19 PM Lakshyaraj Dash 
wrote:

> Please see that if you're calling the .save() method or not
>
> On Thu, Nov 10, 2022, 21:02 Pooja Kumari  wrote:
>
>> Hi.. Can anyone help me with django templates? Actually I have a
>> registration page where user can signup and data will be saved in admin
>> panel or database but I am not able to do that. Registration page is
>> working when I hit URL but data is not saving in database. Let me know If
>> anyone have idea about this type of project. I'll be very grateful 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/CAHYvwbWDVFjuddPah3WUX8M9H6ojvDSjQD_mn7W6AgcT_pQsGQ%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/CAF7qQgBrQoWDSpStS9quQ1jSWxpAD9s7kJqHgFCgiCnEMtd%2BfQ%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/CAHYvwbUCfTxMRgaxfgGK_yOwth7VAHr35hNK8JgnhDGNVsq%2BTQ%40mail.gmail.com.


Re: Page Integration

2022-11-10 Thread amruth bitla
Ya easy and simple 

On Thu, 10 Nov, 2022, 9:03 pm Pooja Kumari,  wrote:

> Hi.. Can anyone help me with django templates? Actually I have a
> registration page where user can signup and data will be saved in admin
> panel or database but I am not able to do that. Registration page is
> working when I hit URL but data is not saving in database. Let me know If
> anyone have idea about this type of project. I'll be very grateful 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/CAHYvwbWDVFjuddPah3WUX8M9H6ojvDSjQD_mn7W6AgcT_pQsGQ%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/CA%2BKLm_j%3DR8fBjy7Qa1ZeFvisrHOBguEDO32U8mMBQ7oKHZFK2w%40mail.gmail.com.


Re: Page Integration

2022-11-10 Thread Desh Deepak
https://docs.djangoproject.com/en/4.1/topics/auth/default/

On Thu, Nov 10, 2022, 9:02 PM Pooja Kumari  wrote:

> Hi.. Can anyone help me with django templates? Actually I have a
> registration page where user can signup and data will be saved in admin
> panel or database but I am not able to do that. Registration page is
> working when I hit URL but data is not saving in database. Let me know If
> anyone have idea about this type of project. I'll be very grateful 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/CAHYvwbWDVFjuddPah3WUX8M9H6ojvDSjQD_mn7W6AgcT_pQsGQ%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/CAJ0m4xgOZ_hJQgrBOLzuuCrdY%3DL%3DPmm-%2BtMyfv_BTj%2BWqkBzyA%40mail.gmail.com.


Re: Page Integration

2022-11-10 Thread DJANGO DEVELOPER
you need to share the code.no one will be able to help you this way.

On Thu, Nov 10, 2022 at 8:49 PM Lakshyaraj Dash <
dashlakshyaraj2...@gmail.com> wrote:

> Please see that if you're calling the .save() method or not
>
> On Thu, Nov 10, 2022, 21:02 Pooja Kumari  wrote:
>
>> Hi.. Can anyone help me with django templates? Actually I have a
>> registration page where user can signup and data will be saved in admin
>> panel or database but I am not able to do that. Registration page is
>> working when I hit URL but data is not saving in database. Let me know If
>> anyone have idea about this type of project. I'll be very grateful 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/CAHYvwbWDVFjuddPah3WUX8M9H6ojvDSjQD_mn7W6AgcT_pQsGQ%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/CAF7qQgBrQoWDSpStS9quQ1jSWxpAD9s7kJqHgFCgiCnEMtd%2BfQ%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/CAKPY9pkr1%2B9_PHxCpS%2BeQsvz6su_p1Lsx%3DV6-ZLucfrg40hPcA%40mail.gmail.com.


Re: Page Integration

2022-11-10 Thread Lakshyaraj Dash
Please see that if you're calling the .save() method or not

On Thu, Nov 10, 2022, 21:02 Pooja Kumari  wrote:

> Hi.. Can anyone help me with django templates? Actually I have a
> registration page where user can signup and data will be saved in admin
> panel or database but I am not able to do that. Registration page is
> working when I hit URL but data is not saving in database. Let me know If
> anyone have idea about this type of project. I'll be very grateful 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/CAHYvwbWDVFjuddPah3WUX8M9H6ojvDSjQD_mn7W6AgcT_pQsGQ%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/CAF7qQgBrQoWDSpStS9quQ1jSWxpAD9s7kJqHgFCgiCnEMtd%2BfQ%40mail.gmail.com.


Re: dynamic formular

2022-11-10 Thread Malick Diagne
Good morning
Please write in french if you Can
I try to help you
Thanks you

Le jeu. 10 nov. 2022 à 2:47 PM, Arnold Falanga  a
écrit :

> Hello can anyone help me to design a dynamic form with Django the idea is
> to have two parts in this form. a link to add the lines
>
> --
> 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/f9c74264-7cc0-448d-bcee-9110f7a91292n%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/CAFyWy%3DAJvtMPq6M-JGdOKJrLTyRF2%3D1BcBW3Ls4OXqXFrRWn_A%40mail.gmail.com.


Page Integration

2022-11-10 Thread Pooja Kumari
Hi.. Can anyone help me with django templates? Actually I have a
registration page where user can signup and data will be saved in admin
panel or database but I am not able to do that. Registration page is
working when I hit URL but data is not saving in database. Let me know If
anyone have idea about this type of project. I'll be very grateful 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/CAHYvwbWDVFjuddPah3WUX8M9H6ojvDSjQD_mn7W6AgcT_pQsGQ%40mail.gmail.com.


Re: Move apps to different folders or to a root folder

2022-11-10 Thread Nick Chang
Hi Mike,

Thanks for your reply. To further clarify about `db_table` name regarding 
this vertical move. The 'db_table' field is actually already specified in 
the models. However, if the 'db_table' name were not specified in the model 
and let django handle generation table names, would this move break it?  
And it can be fixed by specifying the 'db_table" value in the moved models?

Thanks!

On Sunday, November 6, 2022 at 10:09:41 PM UTC-5 Mike Dewhirst wrote:

> On 7/11/2022 2:40 am, Nick Chang wrote:
>
> Hello community, 
>
> I am trying to organize my Django project's structure as the number of 
> apps is growing. So I am attempting to move an app in the sub-folder that 
> contains its model definitions. The app used to be named `<
> sub_folder_name>.foo ` and now it will be 
> just named `foo` in the `LOCAL_APPS` setting.
>
> It seems straightforward to do this with the following two steps:
>
>1. Change the reference from `.foo 
>` to `foo` in the whole project. 
>2. Do `mv foo ..` inside the sub-folder. 
>
> Is there any DB migration work that this move requires? Or since the app 
> name stays the same. There is nothing that needs to be done as Django does 
> not see any change in the models. So far my investigation confirms no DB 
> migration work is needed but would like to hear some experiences that folks 
> might have done before.
>
>
> Should work just fine.
>
> In any case, you can also specify the table name the model should use if 
> you do decide to switch models between apps ...
>
> class Meta:
>  app_label = "company"
>  db_table = "common_user"
>
> If your python code works and your tests pass everything should be fine. 
>
>
>
> 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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/5ac5eea7-f620-4d11-9796-3439231939f3n%40googlegroups.com
>  
> 
> .
>
>
>
> -- 
> 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/9f355cfa-12ed-4e4b-86a5-7c5ee4c348c3n%40googlegroups.com.


Re: Single Sign On in Django

2022-11-10 Thread carlos
Hi, try use this
https://github.com/divio/django-simple-sso
https://micropyramid.medium.com/django-single-sign-on-sso-to-multiple-applications-64637da015f4

On Thu, Nov 10, 2022 at 8:48 AM venkat Bukka 
wrote:

> Hello all,
>  Could anyone please let me know how we can implement SSO in the
> django...for authenticating multiple apps in a base application.
>
> --
> 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/cc932efa-f41d-458d-901c-844e32bb1b5dn%40googlegroups.com
> 
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO0WS9vA_zJtdFScirSe-q-KSMBM_hDpQvtT7OEn8vix8Q%40mail.gmail.com.


Single Sign On in Django

2022-11-10 Thread venkat Bukka
Hello all,
 Could anyone please let me know how we can implement SSO in the 
django...for authenticating multiple apps in a base application.

-- 
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/cc932efa-f41d-458d-901c-844e32bb1b5dn%40googlegroups.com.


dynamic formular

2022-11-10 Thread Arnold Falanga
Hello can anyone help me to design a dynamic form with Django the idea is 
to have two parts in this form. a link to add the lines

-- 
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/f9c74264-7cc0-448d-bcee-9110f7a91292n%40googlegroups.com.


Change Email_host_user and Email_host_power

2022-11-10 Thread Raúl Luján Delgado
hello,

I must change the email and password in settings, the problem is that the 
old email follow recepting the emails withou respect the change and It 
doesn't realize about ...??
 

-- 
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/31630d41-054d-4a6e-9e13-28be2f10da47n%40googlegroups.com.


Re: formulaire dynamique

2022-11-10 Thread Malick Diagne
Bonjour

Le mer. 9 nov. 2022 à 10:25 PM, Arnold Falanga  a
écrit :

> Bonjour
> quelqu'un peut m'aider à concevoir un formulaire dynamique avec Django[image:
> capture_jupiter.png]
> l'idée est d'avoir deux parties dans ce formulaire .
> un lien pour ajouter les lignes
>
> --
> 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/18632a8b-8be0-4088-b0a1-47e045c589f1n%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/CAFyWy%3DC14g-sg0K44c0FrqdcJM%3DQ%3D%2BoqQB8vsBrMGb03bxK_iA%40mail.gmail.com.