Re: ORM

2019-09-12 Thread Jani Tiainen
Hi.

There exists django-extensions package that has management command to make
UML diagram for your models.


pe 13. syysk. 2019 klo 5.22 Yann Mbella  kirjoitti:

> Got little problem is it possible to have a plugin which mapps or
> reproduce my class diagrams drawn in an IDE of UML in my models app
>
> --
> 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/13525e44-e176-409a-a55e-0595834c780f%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/CAHn91odRe_26%3DuuAwCQOOapK_UeKPE1tOtmXQP-df8%3Dnxf4k3g%40mail.gmail.com.


ORM

2019-09-12 Thread Yann Mbella
Got little problem is it possible to have a plugin which mapps or reproduce 
my class diagrams drawn in an IDE of UML in my models app 

-- 
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/13525e44-e176-409a-a55e-0595834c780f%40googlegroups.com.


Re: Django "GET / HTTP/1.1" 200 16348" Error

2019-09-12 Thread johnsi rani
while i run its shows migration error

On Fri, Sep 13, 2019 at 1:54 AM khadim husen  wrote:

> Run this command in terminal
>
> python manage.py migrate
>
> Then
>
> python manage.py runserver
>
>
>
> --
> 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/5641392b-27e3-496f-8f6f-33e5701a766c%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/CAAOXwXU1Ym61CwnLPMxhNAHx2KVaQ_kO3%3DuU8nv_KS0HZgq%3D7A%40mail.gmail.com.


Re: How to inspect MSSQL Database in Django 2.1

2019-09-12 Thread Adam Parsons
Hi Wikils,

It might help if you can post some additional context to the situation, as 
well as some output of the errors you're experiencing.

Without seeing the error message, we cannot possibly help you determine the 
issue. Could you please provide the following

   1. Your settings.py (with your passwords, secrets, etc edited out)
   2. The command exactly as you are entering it
   3. The output you're receiving. If you aren't receiving any output, 
   please post the contents of the models.py file you're outputting to
   

In the meantime, its worth checking out if the user in MSSQL has the 
relevant permissions to inspect the database

On Thursday, 12 September 2019 00:00:00 UTC+8, wikils john wrote:
>
> I have a large MSSQL server.
> I am using it now. I am going to use this database in new django project.
> however, inspectdb TableName > models.py this command isn't performed.
> How can I fix this?
>

-- 
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/85b58c79-52ad-4040-bfce-b2063c676f67%40googlegroups.com.


Django "GET / HTTP/1.1" 200 16348" Error

2019-09-12 Thread khadim husen
Run this command in terminal 

python manage.py migrate 

Then

python manage.py runserver 



-- 
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/5641392b-27e3-496f-8f6f-33e5701a766c%40googlegroups.com.


Django "GET / HTTP/1.1" 200 16348" Error

2019-09-12 Thread khadim husen
Type in your web browser 

http://127.0.0.1:8000/

-- 
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/fe403dff-9d32-4031-ba11-cab71fbeb49c%40googlegroups.com.


Django "GET / HTTP/1.1" 200 16348" Error

2019-09-12 Thread khadim husen
"GET / HTTP/1.1" 200 16348" 
This is not a error 

This is response code. 200 means response success resource created. 

-- 
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/e89b0793-05db-49a2-bf87-470669c4724e%40googlegroups.com.


Re: Maps API

2019-09-12 Thread Jani Tiainen
Hi.

I had workshop about geotracking and Django at Djangocon eu 2019.

You can find my material at http://dceu2019.tiainen.cc

to 12. syysk. 2019 klo 17.33 Aniket Jain 
kirjoitti:

> Hello guys,
> Hey anyone is having idea that which API we can use for the grps tracking
> system for the vechiles like Uber and ola.
>
> --
> 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/CADV%2BovL2fdAiu5wqoEDXw3aKgVRW_FSAud3uE%3D_Nux-4vsEzCQ%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/CAHn91offTpSmUc-u16AHg50buOWWa6kL%3DoVu%2Bx2cUNJwR_F4%3DQ%40mail.gmail.com.


Re: Query help

2019-09-12 Thread Matt
Tosin,
Please refer below. This should help.
https://docs.djangoproject.com/en/2.2/topics/db/queries/


best,
matt

On Thu, Sep 12, 2019 at 10:01 AM Tosin Ayoola 
wrote:

> Halo guyz I actually need a little help, I'm working on a airline tickets
> reservations project using postman Api that requires making query for
> available flight going to a particular destination,  from a particular
> city, arrival date & departure  date & I got no idea on how to write the
> query,  Pls can anyone help out 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/CAHLKn70jgSAAHL9YtX5Y6-9BWNdx42i0-0LnVt%3DQCPB-Bgjwow%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/CACZnaa%3Dg3HuiOUFidFB%2BJL7GSWvTZ2%2Bg-Ow%3D2dtxECnN%3DirBMQ%40mail.gmail.com.


Re: Maps API

2019-09-12 Thread Mehul Anshumali
Mail me inperson

On Thu, Sep 12, 2019, 8:47 PM Mehul Anshumali 
wrote:

> Yss bro 
>
> On Thu, Sep 12, 2019, 8:03 PM Aniket Jain  wrote:
>
>> Hello guys,
>> Hey anyone is having idea that which API we can use for the grps tracking
>> system for the vechiles like Uber and ola.
>>
>> --
>> 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/CADV%2BovL2fdAiu5wqoEDXw3aKgVRW_FSAud3uE%3D_Nux-4vsEzCQ%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/CAL115XyioTH0koT6MLO1v7R0K%3Drd1Zwj%2BHSOyfLDTb4EWCjgaw%40mail.gmail.com.


Re: Maps API

2019-09-12 Thread Mehul Anshumali
Yss bro 

On Thu, Sep 12, 2019, 8:03 PM Aniket Jain  wrote:

> Hello guys,
> Hey anyone is having idea that which API we can use for the grps tracking
> system for the vechiles like Uber and ola.
>
> --
> 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/CADV%2BovL2fdAiu5wqoEDXw3aKgVRW_FSAud3uE%3D_Nux-4vsEzCQ%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/CAL115Xw34s%2B6MhQ-6QvT4EThgHiUGbwi8HKDE2hjYQEBzUARJQ%40mail.gmail.com.


Django "GET / HTTP/1.1" 200 16348" Error

2019-09-12 Thread mohammad reyajuddin
After executing runserver command in django terminal , below msg is 
displayed and No chnages in webpages after coding.

Please suggest.


Django version 2.1.5, using settings 'myutility.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[12/Sep/2019 22:11:44] "GET / HTTP/1.1" 200 16348
[12/Sep/2019 22:11:45] "GET / HTTP/1.1" 200 16348
[12/Sep/2019 22:11:56] "GET / HTTP/1.1" 200 16348
[12/Sep/2019 22:11:57] "GET / HTTP/1.1" 200 16348
[12/Sep/2019 22:11:57] "GET / HTTP/1.1" 200 16348
[12/Sep/2019 22:11:58] "GET / HTTP/1.1" 200 16348

-- 
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/e975114e-4f4d-4d89-9def-3f7b2f9f6bf8%40googlegroups.com.


Re: Maps API

2019-09-12 Thread sachinbg sachin
Use Google GPRS

On Thu, Sep 12, 2019, 8:03 PM Aniket Jain  wrote:

> Hello guys,
> Hey anyone is having idea that which API we can use for the grps tracking
> system for the vechiles like Uber and ola.
>
> --
> 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/CADV%2BovL2fdAiu5wqoEDXw3aKgVRW_FSAud3uE%3D_Nux-4vsEzCQ%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/CAOs61rzp4dMWf04w68aemx3UOX-Tj5NO-YUSuiARJmfMig4BEw%40mail.gmail.com.


Query help

2019-09-12 Thread Tosin Ayoola
Halo guyz I actually need a little help, I'm working on a airline tickets
reservations project using postman Api that requires making query for
available flight going to a particular destination,  from a particular
city, arrival date & departure  date & I got no idea on how to write the
query,  Pls can anyone help out 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/CAHLKn70jgSAAHL9YtX5Y6-9BWNdx42i0-0LnVt%3DQCPB-Bgjwow%40mail.gmail.com.


Re: Get authorization and list users in auth via http request

2019-09-12 Thread Ezequias Rocha
Thank you Ronit. 

Now I implemented the create_user via web request.

Django Rocks!

Ezequias.

On Thursday, September 12, 2019 at 4:27:03 AM UTC-3, Ronit Mishra wrote:
>
> Hi,
>
> Its possible. And from what I am able to understand you're looking to 
> create restful services for authentication and registration.
>
> Your solution: Django Rest Framework
>
> Its a very detailed procedure so I can't point out all the points here, 
> but you can follow any decent tutorial and get it accomplished.
>
> Here is one for you: 
> https://wsvincent.com/django-rest-framework-user-authentication-tutorial/ 
>
> Regards, 
> Ronnie  
>
> On Thu, Sep 12, 2019 at 2:01 AM Ezequias Rocha  > wrote:
>
>> Dear Gabriel
>>
>> I have already access to the get method but not the creation service.
>>
>> I will have a creation of thousands of users from another system I am 
>> integrating. Would be nice if I have an easy way to create this creation 
>> way by loading from a list.
>>
>> Have you any idea how could I perform this batch loading of users from 
>> scratch (and without any register form)?
>>
>> Sincerely
>> Ezequias.
>>
>> On Monday, September 9, 2019 at 7:32:28 PM UTC-3, Gabriel Araya Garcia 
>> wrote:
>>>
>>> ...and why you don't use the Django admin  app ? 
>>>
>>> El lun., 9 sept. 2019 a las 15:00, Ezequias Rocha () 
>>> escribió:
>>>
 Hi everyone

 Could someone tell me if Django encourages the community to implement 
 auth/user authentication and user creation via http requests?

 I would like to *create *new users and *get users list* via a simple 
 POST/GET http requests.

 Have someone did it here?

 Sincerely
 Ezequias

 -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/eb99b343-bf08-47da-9a5a-dc1bf0ccb797%40googlegroups.com
  
 
 .

>>>
>>>
>>> -- 
>>> Gabriel Araya Garcia
>>> GMI - Desarrollo de Sistemas Informáticos
>>> 99.7721.15.70
>>>
>>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/aa7d2395-b954-4587-a34a-54c2ba08e83c%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/412279ff-b217-4f81-97d2-c54d9e3f7669%40googlegroups.com.


Maps API

2019-09-12 Thread Aniket Jain
Hello guys,
Hey anyone is having idea that which API we can use for the grps tracking
system for the vechiles like Uber and ola.

-- 
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/CADV%2BovL2fdAiu5wqoEDXw3aKgVRW_FSAud3uE%3D_Nux-4vsEzCQ%40mail.gmail.com.


Postman-django Api help

2019-09-12 Thread Tosin Ayoola
Halo
Good day sorry I wan work on a airline tickets reservations project using
postman Api, but I've never used that before and can't seem to find  any
resourceful material online, can anyone be kind enough to help me out.
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/CAHLKn70VJMTiSRXWke%3DYW9TJ6Z_R5an9vBb3TpPmndbdOMh24A%40mail.gmail.com.


DRF

2019-09-12 Thread Soumen Khatua
Hi Folks,
I didn't understand this code, Cab you guys please explain me about this
code:

*views.py:*
*-*







*class UserLoginAPIView(GenericAPIView): authentication_classes = ()
permission_classes = () serializer_class = UserLoginSerializer ()def
post(self, request, *args, **kwargs): serializer =
self.get_serializer(data=request.data) if serializer.is_valid(): user =
serializer.user *



*token, _ = Token.objects.get_or_create(user=user) return
Response(data=TokenSerializer(token).data, status=status.HTTP_200_OK) else:
return Response(data=serializer.errors,status=status.HTTP_400_BAD_REQUEST,)*

*seralizers.py*
*-*




















*class UserLoginSerializer(serializers.Serializer):username =
serializers.CharField(required=True)password =
serializers.CharField(required=True)default_error_messages = {
'inactive_account': _('User account is disabled.'),
'invalid_credentials': _('Unable to login with provided credentials.')
}def __init__(self, *args, **kwargs):super(UserLoginSerializer,
self).__init__(*args, **kwargs)self.user = Nonedef
validate(self, attrs):self.user =
authenticate(username=attrs.get("username"),
password=attrs.get('password'))if self.user:if not
self.user.is_active:raise
serializers.ValidationError(self.error_messages['inactive_account'])
return attrselse:raise
serializers.ValidationError(self.error_messages['invalid_credentials']*

Here ,
1)  super(UserLoginSerializer, self).__init__(*args, **kwargs)
 what  value  parent will get by using line *super(UserLoginSerializer,
self).__init__(*args, **kwargs) *
2) Validate is one method which take attrs as a argument but If I didn;t
pass value of attrs then how it will be work?

Guys please help me to understand this code.

Thank You

Regards,
Soumen

-- 
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/CAPUw6WZ3BGiHoZXmQRYiU%3DxCYdbPg%2BonCmwGSX0B%2B8VBb76aZw%40mail.gmail.com.


Centroid of PolygonField

2019-09-12 Thread Pasquale
I have the following model:

from django.contrib.gis.db import models as g


class Neighborhoods(Model):

    area = g.PolygonField()
   
    def point(self):
    #TODO:something better than this horrible hack of 2 db round trip
    return
Neighborhoods.objects.annotate(p=Centroid("area")).get(pk=self.id).p

How do I calculate point() without a 2nd roundtrip to the db?

-- 
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/2316c120-393a-b813-ee4c-a44916840e66%40gmail.com.


Re: How to find out when a fix will be released

2019-09-12 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On Wed, Aug 28, 2019 at 01:59:01PM +0800, wd wrote:
> >
> > As a concrete example, consider a moment in time halfway between the
> > release of Django 5.1 and 5.2. At this point in time:
> >
> >- Features will be added to development master, to be released as
> >Django 5.2.
> >- Critical bug fixes will be applied to the stable/5.1.x branch, and
> >released as 5.1.1, 5.1.2, etc.
> >- Security fixes and bug fixes for data loss issues will be applied to
> >master and to the stable/5.1.x, stable/5.0.x, and stable/4.2.x (LTS)
> >branches. They will trigger the release of 5.1.1, 5.0.5, 4.2.8, etc.
> >- Documentation fixes will be applied to master, and, if easily
> >backported, to the latest stable branch, 5.1.x.
> >
> >
> I see the PR was merged at Feb 3, Django 2.2 tagged at Apr 1, so the PR is
> happened between 2.1 and 2.2, it should be released at 2.2 ?

What that document doesn't explain is when the branch gets cut off for
the upcoming release, and how backporting works during the
alpha/beta/RC phase. There's a roadmap document in the wiki [1] which
indicates that your PR got merged after the alpha release, which means
in order to be included in 2.2, it would have had to be backported.
The timing is really unfortunate there, since you missed the freeze by
just a couple of weeks, but at least you can be sure that it will land
in the next major release. I also suppose asking explicitly for a
backport at the time could have helped, but it's probably too late for
that now.


[1]: https://code.djangoproject.com/wiki/Version2.2Roadmap
-BEGIN PGP SIGNATURE-

iQIzBAEBCgAdFiEEUX01Y24NsLRJUN8tcDtP8g8z+SUFAl16FaUACgkQcDtP8g8z
+SVK8xAA2QUVfi+wBAB1cjuV5cGZ7usY1kyj9aZK+iA3+zXj2yFyzpYRAPPNfr50
x3S1LrK0/GbuN5rI7IDVr/JWnduCVH8b1Kd+fFEWQyZah1XQO6HvDau5n6YFGJJC
aAVSmd4fHyAg1P4Unpyi5nRCI4hzwTQQaQEGCCkLayTS0x6uZS7ocXiBEeGoZKdt
DNg9+Fw63vJTx6CG304amN1f40lq+fcYPEQDgAMvKLNIiZ0++hILGwWZmKpY8z9G
3efyrtyrG7B8jTRyU5+adHSdMttO5eJlSj2VFlcw61oapE4sOwa7t05it0Sv/eKv
Kb1Up66lKs8FVh2G3JriQ/fxfbg4NcEJDN+mlgnKncxwcCjuyi943JFXJxtBqnM1
jnJSjceN0cYtQcsia2eO/LBeavNCwRynMtUJkA05Nu7KnJVblXqDo+GcXbHOL71m
MLm9djoR07spKDWMQLrj5Ih39uMFzQUS04Psio7J8f9aka/HYDD40nNUDymoDEWy
zBrrgd0QQmiNmhXA6CGmog2D6JNS/L8YgcFYnAk17uwk0yivVMAupojgft5IEKU8
jDDwpEluodH2VAymU+mz0YC+C+XFrpOOBo8u2a8QIbh1lsEjJRAAWG0Wk3WgXjB7
z11f8H3/bd+LRAiPOgcmzJ5WZDvL2Z0y2/YkwA9XnaijhVc7Mn0=
=zqPA
-END PGP SIGNATURE-

-- 
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/20190912095341.xaongmyxfzksm67t%40konk.org.


Re: Get authorization and list users in auth via http request

2019-09-12 Thread Ronit Mishra
Hi,

Its possible. And from what I am able to understand you're looking to
create restful services for authentication and registration.

Your solution: Django Rest Framework

Its a very detailed procedure so I can't point out all the points here, but
you can follow any decent tutorial and get it accomplished.

Here is one for you:
https://wsvincent.com/django-rest-framework-user-authentication-tutorial/

Regards,
Ronnie

On Thu, Sep 12, 2019 at 2:01 AM Ezequias Rocha 
wrote:

> Dear Gabriel
>
> I have already access to the get method but not the creation service.
>
> I will have a creation of thousands of users from another system I am
> integrating. Would be nice if I have an easy way to create this creation
> way by loading from a list.
>
> Have you any idea how could I perform this batch loading of users from
> scratch (and without any register form)?
>
> Sincerely
> Ezequias.
>
> On Monday, September 9, 2019 at 7:32:28 PM UTC-3, Gabriel Araya Garcia
> wrote:
>>
>> ...and why you don't use the Django admin  app ?
>>
>> El lun., 9 sept. 2019 a las 15:00, Ezequias Rocha ()
>> escribió:
>>
>>> Hi everyone
>>>
>>> Could someone tell me if Django encourages the community to implement
>>> auth/user authentication and user creation via http requests?
>>>
>>> I would like to *create *new users and *get users list* via a simple
>>> POST/GET http requests.
>>>
>>> Have someone did it here?
>>>
>>> Sincerely
>>> Ezequias
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/eb99b343-bf08-47da-9a5a-dc1bf0ccb797%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Gabriel Araya Garcia
>> GMI - Desarrollo de Sistemas Informáticos
>> 99.7721.15.70
>>
>> --
> 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/aa7d2395-b954-4587-a34a-54c2ba08e83c%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/CACh0EhwMrdHYmX5hri6c2Gzt9tMJZHuuRk%3DR3zbY%2BboZsDpaMA%40mail.gmail.com.