DRF

2020-01-08 Thread Soumen Khatua
Hi Folks,

*If I'm sending data into json format like this:*

*{ "name":"soumen","password":"@sou123"}*

*but in my python class,If doing something like this:*

*type(request.data.get("name")  #<'class Dict'> *

*How it is possible without using serializer,How I can do access json data
diresctly?*

*I'm using Django rest Framework.*


*Thank you in advance*

*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/CAPUw6WYN%2B73BMfnoLa_aq0t4090iGDAdBAtKhu5qXyfZPZiYsA%40mail.gmail.com.


Re: I'm struggling with Django's view directory structure.

2020-01-08 Thread Scot Hacker
That is entirely up to you. The typical scenario is that you have one views 
module per app in your project, which would live at your 
`yourapp/views.py`. If your app has lots of views and you want to keep it 
from getting too large, another common pattern is to have one module per 
view in a directory, like: `yourapp/views/action1.py` and 
`yourapp/views/action2.py`. How are you organize it is up to you - you have 
control over your own Python imports. Really just a matter of housekeeping…

./s


On Tuesday, January 7, 2020 at 5:29:42 PM UTC-8, 片岡一平 wrote:
>
> Hi, 
>
> I'm struggling with Django's view directory structure.
> Now, I am creating an app with the following URL structure.
>
>
> domain / app / page_category1 / action1
> domain / app / page_category1 / action2
> ...
> domain / app / page_categoryN / actionM
>
>
> In this case, how should the Django view directory be constructed?
>
> Thanks for watching.
> I'm glad if you get some advice.
>
> Kataoka
>

-- 
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/8912eafc-8df7-4ca8-a80d-14fa94ba1e0e%40googlegroups.com.


How do I make my webhook object run a websocket function?

2020-01-08 Thread Jeremy Wai
I got a heroku server running on one web processing, in the routing.py I 
have

application = ProtocolTypeRouter({
'websocket': backEndConsumer,
'http': frontEndConsumer,
})

my frontEndConsumer handles the http webhook requests and my 
backEndConsumer handles all my websocket requests.

When a device with the correct address tries to talk to my websocket, it 
will go to backEndConsumer and run the websocket_connect()
Then on my frontEndconsumer, It will get a http_request().

I want this http_request() to trigger the backEndConsumer to do a 
websocket_send(). I can't seem to get that to work.

webhook.py
scope = None
import myapp.consumers

class frontEndConsumer(AsyncHttpConsumer):
async def http_request(self, request):
myapp.consumers.backEndConsumer.frontSend(myapp.consumers.scope)
await self.send_response(200, b"finished",
headers=[(b"Content-Type", b"text/plain"),])

consumers.py

class backEndConsumer(AsyncJsonWebsocketConsumer):
async def websocket_connect(self, type):
await self.accept()
global scope
scope = self   # doing this to pass the object to 
frontEndConsumer
async def frontSend(self):
await self.send("Hello world!")

I keep getting this error
myapp.consumers.backEndConsumer.frontSend()
frontSend() missing 1 required positional argument: 'self'
I know I am doing something wrong, but I am not sure how to do what I want.




-- 
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/933a433d-ec5f-4990-bc06-51d463ec2623%40googlegroups.com.


Request for an internship

2020-01-08 Thread Bryan Maxx
I'm looking for an internship in the field of ICT,IT,MEDICINE, and PHYSICS.
Incase you can offer or know of one, kindly inform me. 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/CAKHMJxqsoiEBApTE9vi65SDifZpU_vw%2BAz7j1EjzCGovJp8zUw%40mail.gmail.com.


How do I make my webhook run a function in websocket?

2020-01-08 Thread Jeremy Wai
theisnfksdnflksd

why does this not work when i have my actual post?

-- 
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/7ad81d5a-e259-469f-92e2-13c518863ec1%40googlegroups.com.


Re: Django for beginers

2020-01-08 Thread jose angel encinas ramos
this is the documentation, is very useful

https://docs.djangoproject.com/en/3.0/

https://www.valentinog.com/blog/drf/


El mié., 8 ene. 2020 a las 18:08, KULDEEP SHARMA (<
onshadeeprmaald1...@gmail.com>) escribió:

> How and where can we find the Django doc. And how can we llink Python with
> our reactjs.
>
> --
> 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/de5c1384-d063-48c3-82e7-85f6269558db%40googlegroups.com
> 
> .
>


-- 
José Ángel Encinas
Ing. Tecnologias de la informacion


Cel:  6622267620  <6622267620>

   *   Never give up...*
 

-- 
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/CAF3iVr9ZLk8frRvZMQk9FimYsPUZ91%3DznBur9H_PpDr_fYe7%2BQ%40mail.gmail.com.


Re: Make a Django query filter at runtime

2020-01-08 Thread Alex Conselvan de Oliveira
Hi Ezequias,

You could use a dict:

data = {
  'name': 'John',
  'age': 42,
}

model.filter(**data)

Best Regards!

Em qua., 8 de jan. de 2020 às 18:09, Ezequias Rocha <
ezequias.ro...@gmail.com> escreveu:

> Hi everyone
>
> I am in a doubt about creating django filters dynamically.
>
> All you know a filter is made by using the parameters like:
>
> model.filter(name='John', age=42)
>
> But if I can't type all fields and values at design time but at runtime
> how to do that?
>
> Best regards
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9c843d02-235f-411f-8e83-7fea2156893b%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/CAFwLvGHneKLY8YJroSyxQwjorVB_N6pT%3DnTEe%2Bm%2BG60ZXgeUVQ%40mail.gmail.com.


Django for beginers

2020-01-08 Thread KULDEEP SHARMA
How and where can we find the Django doc. And how can we llink Python with 
our reactjs. 

-- 
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/de5c1384-d063-48c3-82e7-85f6269558db%40googlegroups.com.


Re: Make a Django query filter at runtime

2020-01-08 Thread Shaheed Haque
On Wed, 8 Jan 2020 at 20:09, Ezequias Rocha 
wrote:

> Hi everyone
>
> I am in a doubt about creating django filters dynamically.
>
> All you know a filter is made by using the parameters like:
>
> model.filter(name='John', age=42)
>
> But if I can't type all fields and values at design time but at runtime
> how to do that?
>

Populate a dictionary with what you need and pass that in:

query = {'name': 'John', 'age': 42}
model.filter(**query)



>
> Best regards
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9c843d02-235f-411f-8e83-7fea2156893b%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/CAHAc2jfQDKCv8gtqsnmJJrRm1XPvRp%3DCCQ3nP_3b8D16oyw65w%40mail.gmail.com.


Error in admin page- TemplateSyntaxError at /admin/login/

2020-01-08 Thread Body Abdo
Dear all ,
I've error when accesses in admin page :

'admin_static' is not a registered tag library. Must be one of:
admin_list
admin_modify
admin_urls
cache
django_ajax_tags
i18n
import_export_tags
l10n
log
static
tags
tz

-- 
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/b6c50ff6-5a9c-4fd3-baff-7cf35a58f983%40googlegroups.com.


When I use requests test loginView, return 302 and response header set-cookie , in sessionid line, there are always have a "SameSite=Lax," before sessionid string. This causes client cookies parser pr

2020-01-08 Thread bjxyys XIN


{set-cookie: 
csrftoken=dsEtx2CP6rX5bhIbRmkTOv5LmciytID5t6ShQbgNMTALTnhCoXdxWQ1TcAzxQoDO; 
expires=Wed, 06 Jan 2021 17:01:00 GMT; Max-Age=31449600; Path=/; 
SameSite=Lax,sessionid=2rtrkbnhc8m30iqs7sw4em014hr6a3ss; expires=Wed, 22 Jan 
2020 17:01:00 GMT; HttpOnly; Max-Age=1209600; Path=/; SameSite=Lax, location: 
/, cache-control: max-age=0, no-cache, no-store, must-revalidate, private, 
date: Wed, 08 Jan 2020 17:01:00 GMT, vary: Cookie, content-length: 0, 
x-frame-options: DENY, content-type: text/html; charset=utf-8, 
x-content-type-options: nosniff, server: WSGIServer/0.2 CPython/3.7.6, expires: 
Wed, 08 Jan 2020 17:01:00 GMT}



-- 
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/405d95e3-7292-4a43-8fc9-474521bb4287%40googlegroups.com.


Make a Django query filter at runtime

2020-01-08 Thread Ezequias Rocha
Hi everyone

I am in a doubt about creating django filters dynamically.

All you know a filter is made by using the parameters like:

model.filter(name='John', age=42)

But if I can't type all fields and values at design time but at runtime how 
to do that?

Best regards
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9c843d02-235f-411f-8e83-7fea2156893b%40googlegroups.com.


Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Cristhiam Gabriel Fernández
Yup! that works 
Thank you so much

El miércoles, 8 de enero de 2020, 13:26:22 (UTC-5), Alfredo Silveira 
escribió:
>
> Yes, python version 3.8 not Django 
>
>
>
> On 8 Jan 2020, at 13:13, Cristhiam Gabriel Fernández  > wrote:
>
> 
> 3.8? 樂
> Did you mean 2.2.8?
> Yes, 2.2.8 works fine.
>
> El miércoles, 8 de enero de 2020, 3:11:14 (UTC-5), Alfredo Silveira 
> escribió:
>>
>> Try update your python version to 3.8
>>
>>
>>
>> On 8 Jan 2020, at 03:59, Gil Obradors  wrote:
>>
>> 
>> Oh yes, sorry, i didnt read right...
>>
>> Mn, no more output to paste?
>> Do you use an IDE?
>>
>> i have django 2 and 3 working without this behaveor
>>
>> Have you introduced changes to admin?
>>
>>
>> El dc., 8 de gen. 2020, 7:55, Gil Obradors  va 
>> escriure:
>>
>>> Hi, 302 response status isnt an error
>>> 
>>> https://developer.mozilla.org/es/docs/Web/HTTP/Status/302
>>>
>>> El dc., 8 de gen. 2020, 2:29, Cristhiam Gabriel Fernández <
>>> cristh...@gmail.com> va escriure:
>>>
 Greetings 

 From version 3 I'm getting this error. When I try log in in admin site 
 django closes dev server with no error, only `"POST 
 /admin/login/?next=/admin/ HTTP/1.1" 302 0`` 

 Any suggestion?

 -- 
 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/6b053e2c-d559-44ed-98e0-c7a5f5d3ef9b%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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAK-JoTS34PpgNruQLqzki%3DSrhEJ%3DHie2bMHj%2BTOTGTCJnNTJQg%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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/f3f23188-4ad9-420b-8be7-8af309e87aa9%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/41cdff18-4fe7-4265-a5fe-1be8ae4ec47c%40googlegroups.com.


Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Cristhiam Gabriel Fernández
Awesome! upgrade python to 3.8 and django works again 
Thank you so much

El miércoles, 8 de enero de 2020, 11:30:18 (UTC-5), Jasim Ak escribió:
>
> Update your Python to version 3.8.
>
> Met with the same issue and this worked for me.
>
> On Wed, 8 Jan 2020, 21:43 Cristhiam Gabriel Fernández, <
> cristh...@gmail.com > wrote:
>
>> 3.8? 樂
>> Did you mean 2.2.8?
>> Yes, 2.2.8 works fine.
>>
>> El miércoles, 8 de enero de 2020, 3:11:14 (UTC-5), Alfredo Silveira 
>> escribió:
>>>
>>> Try update your python version to 3.8
>>>
>>>
>>>
>>> On 8 Jan 2020, at 03:59, Gil Obradors  wrote:
>>>
>>> 
>>> Oh yes, sorry, i didnt read right...
>>>
>>> Mn, no more output to paste?
>>> Do you use an IDE?
>>>
>>> i have django 2 and 3 working without this behaveor
>>>
>>> Have you introduced changes to admin?
>>>
>>>
>>> El dc., 8 de gen. 2020, 7:55, Gil Obradors  va 
>>> escriure:
>>>
 Hi, 302 response status isnt an error
 
 https://developer.mozilla.org/es/docs/Web/HTTP/Status/302

 El dc., 8 de gen. 2020, 2:29, Cristhiam Gabriel Fernández <
 cristh...@gmail.com> va escriure:

> Greetings 
>
> From version 3 I'm getting this error. When I try log in in admin site 
> django closes dev server with no error, only `"POST 
> /admin/login/?next=/admin/ HTTP/1.1" 302 0`` 
>
> Any suggestion?
>
> -- 
> 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/6b053e2c-d559-44ed-98e0-c7a5f5d3ef9b%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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAK-JoTS34PpgNruQLqzki%3DSrhEJ%3DHie2bMHj%2BTOTGTCJnNTJQg%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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/f3f23188-4ad9-420b-8be7-8af309e87aa9%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/e6aa96db-903f-4907-ab6f-a0563ee096d9%40googlegroups.com.


Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Alfredo Silveira
Yes, python version 3.8 not Django 



> On 8 Jan 2020, at 13:13, Cristhiam Gabriel Fernández 
>  wrote:
> 
> 
> 3.8? 樂
> Did you mean 2.2.8?
> Yes, 2.2.8 works fine.
> 
> El miércoles, 8 de enero de 2020, 3:11:14 (UTC-5), Alfredo Silveira escribió:
>> 
>> Try update your python version to 3.8
>> 
>> 
>> 
 On 8 Jan 2020, at 03:59, Gil Obradors  wrote:
 
>>> 
>>> Oh yes, sorry, i didnt read right...
>>> 
>>> Mn, no more output to paste?
>>> Do you use an IDE?
>>> 
>>> i have django 2 and 3 working without this behaveor
>>> 
>>> Have you introduced changes to admin?
>>> 
>>> 
>>> El dc., 8 de gen. 2020, 7:55, Gil Obradors  va escriure:
 Hi, 302 response status isnt an error
 
 https://developer.mozilla.org/es/docs/Web/HTTP/Status/302
 
 El dc., 8 de gen. 2020, 2:29, Cristhiam Gabriel Fernández 
  va escriure:
> Greetings 
> 
> From version 3 I'm getting this error. When I try log in in admin site 
> django closes dev server with no error, only `"POST 
> /admin/login/?next=/admin/ HTTP/1.1" 302 0``
> 
> Any suggestion?
> -- 
> 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/6b053e2c-d559-44ed-98e0-c7a5f5d3ef9b%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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAK-JoTS34PpgNruQLqzki%3DSrhEJ%3DHie2bMHj%2BTOTGTCJnNTJQg%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/f3f23188-4ad9-420b-8be7-8af309e87aa9%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/3629-C0CF-4EF2-AFD2-978FE9CA1118%40gmail.com.


Re: Dajgo Validation error

2020-01-08 Thread Soumen Khatua
*seriazlizers.py*






*email =
serializers.EmailField(required=True,validators=[UniqueValidator(queryset=User.objects.all())])
  phone_number = serializers.CharField(required =
True,validators=[UniqueValidator(queryset=User.objects.all())])password
= serializers.CharField(write_only=True,required=True,
  help_text='Leave empty if no change needed',
  style={'input_type': 'password', 'placeholder':
'Password'}*
*) *

*models.py*








* email = models.EmailField(_('email address'), unique=True)
phone_number = models.CharField(max_length=10,unique = True,
blank=False,default = uuid.uuid4().hex[:8])
first_name = models.CharField(_('first name'), max_length=30)last_name
= models.CharField(_('last name'), max_length=30, blank=True)is_active
= models.BooleanField(_('active'), default=True)is_staff =
models.BooleanField(_('staff status'),default=False)date_joined =
models.DateTimeField(_('date joined'), default=timezone.now)*


  I already did that but I want to raise validation error that email should
be unique and password should be alphanumeric character in json format?

On Wed, Jan 8, 2020 at 9:44 PM Suraj Thapa FC 
wrote:

> For email you can set email field in model as unique=True and the password
> should be  stored in hash..
>
> On Wed, 8 Jan 2020, 9:37 pm Soumen Khatua, 
> wrote:
>
>> Hi Folk,
>>
>> What is the process to validate fields in django rest framework?
>> like email and phone number should be unique and password should be
>> alphanumeric character only.
>>
>> Where i need to write the logic inside serializers or views part and how
>> i can do that?
>>
>> Thank you in advance
>>
>> 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/CAPUw6Wb7_45-r165wg10M-w%2B6V6zOheCnEC3_chbJ-GEHRGQLA%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/CAPjsHcFKnaczwY-%3DKWqbPWrUuecv6YYWR19qPwSWmZpSYG%2BW0w%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/CAPUw6WbDFeAtOxksdOijTOidX%3DW8gzCs38fN_nXMSK%3DLFxA1cg%40mail.gmail.com.


Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Jasim Ak
Update your Python to version 3.8.

Met with the same issue and this worked for me.

On Wed, 8 Jan 2020, 21:43 Cristhiam Gabriel Fernández, <
cristhiang...@gmail.com> wrote:

> 3.8? 樂
> Did you mean 2.2.8?
> Yes, 2.2.8 works fine.
>
> El miércoles, 8 de enero de 2020, 3:11:14 (UTC-5), Alfredo Silveira
> escribió:
>>
>> Try update your python version to 3.8
>>
>>
>>
>> On 8 Jan 2020, at 03:59, Gil Obradors  wrote:
>>
>> 
>> Oh yes, sorry, i didnt read right...
>>
>> Mn, no more output to paste?
>> Do you use an IDE?
>>
>> i have django 2 and 3 working without this behaveor
>>
>> Have you introduced changes to admin?
>>
>>
>> El dc., 8 de gen. 2020, 7:55, Gil Obradors  va
>> escriure:
>>
>>> Hi, 302 response status isnt an error
>>> 
>>> https://developer.mozilla.org/es/docs/Web/HTTP/Status/302
>>>
>>> El dc., 8 de gen. 2020, 2:29, Cristhiam Gabriel Fernández <
>>> cristh...@gmail.com> va escriure:
>>>
 Greetings

 From version 3 I'm getting this error. When I try log in in admin site
 django closes dev server with no error, only `"POST
 /admin/login/?next=/admin/ HTTP/1.1" 302 0``

 Any suggestion?

 --
 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/6b053e2c-d559-44ed-98e0-c7a5f5d3ef9b%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...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK-JoTS34PpgNruQLqzki%3DSrhEJ%3DHie2bMHj%2BTOTGTCJnNTJQg%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/f3f23188-4ad9-420b-8be7-8af309e87aa9%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/CABh2F57H04M16HMJ_bifciTfB%3D1J7B2w8pGUEOzv52tq5HN5TQ%40mail.gmail.com.


Re: Necessary to learn React/ Angular with backend Django

2020-01-08 Thread Balaji Shetty
Hello Dear Community

Thank you very much for your nice reply. Definitely your guidance will help
me a lot.



On Wednesday, January 8, 2020, Integr@te System 
wrote:

> Hi Shetty,
>
> You also consider your project serve local users, so unnecessary implement
> high interactive pages from internet clients.
>
> From online docs, you can learn any technique via small best practices and
> apply to your case with basic javascript knowledges or look at python libs,
> and then expand features as business change.
>
> Dont forget systems behide when business move beyond, at least data.
> Nice.
>
>
>
> On Wed, Jan 8, 2020, 01:38 Karan Mittal 
> wrote:
>
>> Hello friend,
>> In my opinion if it is working with current implementation you need not
>> add any react or angular.
>> Learning perspective they are good but implementation of the same in your
>> already working project may raise new errors.
>> That's my opinion, feel free to incorporate them once you have learned
>> and get the response to do so by your users.
>> Regards,
>> Karan Mittal
>>
>> On Tue, 7 Jan, 2020, 11:17 PM Balaji Shetty, 
>> wrote:
>>
>>> Hi
>>>
>>> Currently i deployed application on pythonanywhere. It is online office
>>> file management system with around 100 users under 10 different department
>>> in hierarchical manner.
>>>
>>> User and department may increase in future.
>>>
>>> Entire application is developed in Django back end.
>>>
>>> Used bootstrap for custom report generation.
>>>
>>> question arises in My mind is
>>>
>>> Is it Necessary to learn and implement in React/ Angular for front end.
>>>
>>>
>>> Because I am comfortable with current implementation.
>>>
>>>
>>> May I know what are gains i may get or what are the disadvantage i may
>>> suffer in future.
>>>
>>> Kindly guide me to avoid future inconvenience.
>>>
>>>
>>> --
>>> Mr Shetty Balaji
>>> Asst. Prof.
>>> IT Department
>>> SGGS I
>>> Nanded. My. India
>>>
>>> --
>>> 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/CAECSbOuN%2BBsvoGZ4nBA5D9batL9UAYQ4crZGW
>>> maMxYMJQ5X1sQ%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/CAO24gqwBgRkr8LYhpHXS2A0o2i4Lcx1WdL%3DqnAuQPtOmtmnXvw%
>> 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/CAP5HUWpd7-Y7cV%3DG6UR1h_sPibr9gFmzBTQ0EDcTT7v0cDTWMg%
> 40mail.gmail.com
> 
> .
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I
Nanded. My. India

-- 
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/CAECSbOvqJOyC5moCYaK68eTxp2d3OPXF7EoLQz5jSmAqE4by4g%40mail.gmail.com.


Re: Dajgo Validation error

2020-01-08 Thread Suraj Thapa FC
For email you can set email field in model as unique=True and the password
should be  stored in hash..

On Wed, 8 Jan 2020, 9:37 pm Soumen Khatua, 
wrote:

> Hi Folk,
>
> What is the process to validate fields in django rest framework?
> like email and phone number should be unique and password should be
> alphanumeric character only.
>
> Where i need to write the logic inside serializers or views part and how i
> can do that?
>
> Thank you in advance
>
> 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/CAPUw6Wb7_45-r165wg10M-w%2B6V6zOheCnEC3_chbJ-GEHRGQLA%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/CAPjsHcFKnaczwY-%3DKWqbPWrUuecv6YYWR19qPwSWmZpSYG%2BW0w%40mail.gmail.com.


Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Cristhiam Gabriel Fernández
3.8? 樂
Did you mean 2.2.8?
Yes, 2.2.8 works fine.

El miércoles, 8 de enero de 2020, 3:11:14 (UTC-5), Alfredo Silveira 
escribió:
>
> Try update your python version to 3.8
>
>
>
> On 8 Jan 2020, at 03:59, Gil Obradors > 
> wrote:
>
> 
> Oh yes, sorry, i didnt read right...
>
> Mn, no more output to paste?
> Do you use an IDE?
>
> i have django 2 and 3 working without this behaveor
>
> Have you introduced changes to admin?
>
>
> El dc., 8 de gen. 2020, 7:55, Gil Obradors  > va escriure:
>
>> Hi, 302 response status isnt an error
>> 
>> https://developer.mozilla.org/es/docs/Web/HTTP/Status/302
>>
>> El dc., 8 de gen. 2020, 2:29, Cristhiam Gabriel Fernández <
>> cristh...@gmail.com > va escriure:
>>
>>> Greetings 
>>>
>>> From version 3 I'm getting this error. When I try log in in admin site 
>>> django closes dev server with no error, only `"POST 
>>> /admin/login/?next=/admin/ HTTP/1.1" 302 0`` 
>>>
>>> Any suggestion?
>>>
>>> -- 
>>> 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/6b053e2c-d559-44ed-98e0-c7a5f5d3ef9b%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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAK-JoTS34PpgNruQLqzki%3DSrhEJ%3DHie2bMHj%2BTOTGTCJnNTJQg%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/f3f23188-4ad9-420b-8be7-8af309e87aa9%40googlegroups.com.


Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Cristhiam Gabriel Fernández
No, no more output in terminal.
I'm using Visual Studio Code.
I'm using pipenv also.
Django 2.2.9 works fine.

El miércoles, 8 de enero de 2020, 1:59:21 (UTC-5), Gil Obradors escribió:
>
> Oh yes, sorry, i didnt read right...
>
> Mn, no more output to paste?
> Do you use an IDE?
>
> i have django 2 and 3 working without this behaveor
>
> Have you introduced changes to admin?
>
>
> El dc., 8 de gen. 2020, 7:55, Gil Obradors  > va escriure:
>
>> Hi, 302 response status isnt an error
>> 
>> https://developer.mozilla.org/es/docs/Web/HTTP/Status/302
>>
>> El dc., 8 de gen. 2020, 2:29, Cristhiam Gabriel Fernández <
>> cristh...@gmail.com > va escriure:
>>
>>> Greetings 
>>>
>>> From version 3 I'm getting this error. When I try log in in admin site 
>>> django closes dev server with no error, only `"POST 
>>> /admin/login/?next=/admin/ HTTP/1.1" 302 0`` 
>>>
>>> Any suggestion?
>>>
>>> -- 
>>> 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/6b053e2c-d559-44ed-98e0-c7a5f5d3ef9b%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/9c5d0dfd-5e2e-4244-9a8a-0a938f12d774%40googlegroups.com.


Dajgo Validation error

2020-01-08 Thread Soumen Khatua
Hi Folk,

What is the process to validate fields in django rest framework?
like email and phone number should be unique and password should be
alphanumeric character only.

Where i need to write the logic inside serializers or views part and how i
can do that?

Thank you in advance

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/CAPUw6Wb7_45-r165wg10M-w%2B6V6zOheCnEC3_chbJ-GEHRGQLA%40mail.gmail.com.


Business Opportunity

2020-01-08 Thread Philani Mthembu
Hi, All

I am a co-founder for Digital Tech Proz (Pty)Ltd, It's a startup web 
development agency, I am looking for an experienced programmer to work with 
my company to develop web apps, Mobile apps, and website development.

You must be experienced working with Django, PHP, Laravel, HTML5, 
Bootstrap, MySQL database, and Java

This is not a job offer but a business opportunity with the potential to 
make a minimum of $18 000 for the first year, with a 20% increase annually.

Requirements :
1. Own a Laptop or computer with a webcam.
2. Be on skype
2. Have a reliable internet connection.
3. Fluent in English, verbally and written communication.
4. Good understanding of Django, PHP, Java (Compulsory).
5. Have Bitcoin Wallet or Paypal account to receive your payment.

For more information, kindly reach out to me on my email: 
philanimt...@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/c168e1f5-dd14-4a30-be57-c21bbc21ffdd%40googlegroups.com.


Re: Intern

2020-01-08 Thread Rahul Kumar
Hi Arjun,
Give me a call at 8368529459.
Regards,
Amit Paul

On Mon, Dec 23, 2019 at 11:23 PM Arjun Baidya 
wrote:

> I have completed Bsc in CSE. I have good knowledge about python language
> and machine learning algorithms.
> Now I need a intern job opportunity which i can grow my skill.
> 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/aa184428-6999-4ccc-8c4d-ddea909087cf%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/CAGAOEUhE66ateo5%3DiBx%3DNFDX%2Bux-_5i62vU5YfTU3R%3DRq0KEjQ%40mail.gmail.com.


Re: Authentication of Zendesk

2020-01-08 Thread Kasper Laudrup




On 08/01/2020 12.55, Saswat Ray wrote:

Thanks Kasper.



You're more than welcome.

Be warned that I haven't tried this and have zero experience with 
zendesk, but that's what I would look into if I were you.


Good luck.

Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/405f8481-8fcc-90aa-f955-681109ff6089%40stacktrace.dk.


Re: Authentication of Zendesk

2020-01-08 Thread Saswat Ray
Thanks Kasper.



*Thanks*,
*Saswat*




On Wed, Jan 8, 2020 at 4:39 PM Kasper Laudrup  wrote:

> Hi Saswat,
>
> On 08/01/2020 11.52, Saswat Ray wrote:
> > Hi I want to authenticate Zendesk with my apps.Anyone know how to do in
> > DJANGO
> >
>
> Zendesk seems to support OAuth:
>
>
> https://support.zendesk.com/hc/en-us/articles/203663836-Using-OAuth-authentication-with-your-app
>
> Combining that with Django OAuth should probably do the trick:
>
> https://django-oauth-toolkit.readthedocs.io/en/latest/
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d7822d3c-68d4-1e4e-77b2-8363fc988bfb%40stacktrace.dk
> .
>

-- 
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/CAEhPkLHc82Jgt9zhbeh1my90vUhvFDA0JOnr-FdBk-3QytfV5A%40mail.gmail.com.


Re: Authentication of Zendesk

2020-01-08 Thread Kasper Laudrup

Hi Saswat,

On 08/01/2020 11.52, Saswat Ray wrote:
Hi I want to authenticate Zendesk with my apps.Anyone know how to do in 
DJANGO




Zendesk seems to support OAuth:

https://support.zendesk.com/hc/en-us/articles/203663836-Using-OAuth-authentication-with-your-app

Combining that with Django OAuth should probably do the trick:

https://django-oauth-toolkit.readthedocs.io/en/latest/

Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d7822d3c-68d4-1e4e-77b2-8363fc988bfb%40stacktrace.dk.


Authentication of Zendesk

2020-01-08 Thread Saswat Ray
Hi I want to authenticate Zendesk with my apps.Anyone know how to do in
DJANGO


*Thanks*,
*Saswat*

-- 
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/CAEhPkLGt_qpxCP7f2LXQ9ZJL5jaCSaUpCO_eeADaD5syB4g1_A%40mail.gmail.com.


SQLDecodeError at /accounts/sign-up/ FAILED SQL: SELECT

2020-01-08 Thread nelson mudanya
am getting this error when using mongoengine djongo, 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/498989ee-c004-4ea6-82ad-df5b9e4dd943%40googlegroups.com.


Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Alfredo Silveira
Try update your python version to 3.8



> On 8 Jan 2020, at 03:59, Gil Obradors  wrote:
> 
> 
> Oh yes, sorry, i didnt read right...
> 
> Mn, no more output to paste?
> Do you use an IDE?
> 
> i have django 2 and 3 working without this behaveor
> 
> Have you introduced changes to admin?
> 
> 
> El dc., 8 de gen. 2020, 7:55, Gil Obradors  va 
> escriure:
>> Hi, 302 response status isnt an error
>> 
>> https://developer.mozilla.org/es/docs/Web/HTTP/Status/302
>> 
>> El dc., 8 de gen. 2020, 2:29, Cristhiam Gabriel Fernández 
>>  va escriure:
>>> Greetings 
>>> 
>>> From version 3 I'm getting this error. When I try log in in admin site 
>>> django closes dev server with no error, only `"POST 
>>> /admin/login/?next=/admin/ HTTP/1.1" 302 0``
>>> 
>>> Any suggestion?
>>> -- 
>>> 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/6b053e2c-d559-44ed-98e0-c7a5f5d3ef9b%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/CAK-JoTS34PpgNruQLqzki%3DSrhEJ%3DHie2bMHj%2BTOTGTCJnNTJQg%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/40C363B2-7A31-4881-B786-5C66042CB12F%40gmail.com.