Re: How to run django server locally, if there are multiple settings file in Django Project. if the repo is cloned from Office work space to local(newly hired as intern) (no requirements.txt)

2020-04-21 Thread chaitanya orakala
Thanks, I will definitely look into it. On Tue, Apr 21, 2020 at 5:13 PM ELMER IBAYAN wrote: > Hi Chaitan, > > After some googling around, i found this article which I believe would > help you. > >

Re: save() got an unexpected keyword argument 'force_insert'

2020-04-21 Thread Motaz Hejaze
nice to know, good luck On Wed, Apr 22, 2020 at 5:35 AM Ahmed Khairy wrote: > Thank you so much it is realyy helpfull. Fixed it > > On Tuesday, April 21, 2020 at 11:23:10 PM UTC-4, Motaz Hejaze wrote: >> >> check this out >> >>

While executing a Celery Task : 'AsyncResult' object is not iterable

2020-04-21 Thread Dilipkumar Noone
I am Using Celery to perform a task in the background on form submission. As soon as form is submitted during POST request, I have created a task to execute in the back ground using delay method. This task processes some click operations on some other web using selenium web driver and return

Re: save() got an unexpected keyword argument 'force_insert'

2020-04-21 Thread Ahmed Khairy
Thank you so much it is realyy helpfull. Fixed it On Tuesday, April 21, 2020 at 11:23:10 PM UTC-4, Motaz Hejaze wrote: > > check this out > > https://wsvincent.com/django-allauth-tutorial-custom-user-model/ > > On Wed, Apr 22, 2020 at 5:18 AM Ahmed Khairy > wrote: > >> What do you mean ?

Re: save() got an unexpected keyword argument 'force_insert'

2020-04-21 Thread Ahmed Khairy
Thank you so much it realyy helpfull. Fixed it On Tuesday, April 21, 2020 at 11:23:10 PM UTC-4, Motaz Hejaze wrote: > > check this out > > https://wsvincent.com/django-allauth-tutorial-custom-user-model/ > > On Wed, Apr 22, 2020 at 5:18 AM Ahmed Khairy > wrote: > >> What do you mean ? >>

Re: save() got an unexpected keyword argument 'force_insert'

2020-04-21 Thread Motaz Hejaze
check this out https://wsvincent.com/django-allauth-tutorial-custom-user-model/ On Wed, Apr 22, 2020 at 5:18 AM Ahmed Khairy wrote: > What do you mean ? > > On Tuesday, April 21, 2020 at 11:13:16 PM UTC-4, Motaz Hejaze wrote: >> >> did you define managers ? >> >> On Wed, Apr 22, 2020 at 5:06

Re: save() got an unexpected keyword argument 'force_insert'

2020-04-21 Thread Ahmed Khairy
What do you mean ? On Tuesday, April 21, 2020 at 11:13:16 PM UTC-4, Motaz Hejaze wrote: > > did you define managers ? > > On Wed, Apr 22, 2020 at 5:06 AM Ahmed Khairy > wrote: > >> Model Form >> >> UserCreationForm >> >> On Tuesday, April 21, 2020 at 11:02:13 PM UTC-4, Motaz Hejaze wrote: >>>

Re: save() got an unexpected keyword argument 'force_insert'

2020-04-21 Thread Motaz Hejaze
did you define managers ? On Wed, Apr 22, 2020 at 5:06 AM Ahmed Khairy wrote: > Model Form > > UserCreationForm > > On Tuesday, April 21, 2020 at 11:02:13 PM UTC-4, Motaz Hejaze wrote: >> >> what kind of forms is this ? regular form or model form ? >> >> >> On Wed, Apr 22, 2020 at 4:57 AM Ahmed

Re: save() got an unexpected keyword argument 'force_insert'

2020-04-21 Thread Ahmed Khairy
Model Form UserCreationForm On Tuesday, April 21, 2020 at 11:02:13 PM UTC-4, Motaz Hejaze wrote: > > what kind of forms is this ? regular form or model form ? > > > On Wed, Apr 22, 2020 at 4:57 AM Ahmed Khairy > wrote: > >> Hi all, >> >> Got this unexpected error all of a sudden, how to fix

Re: save() got an unexpected keyword argument 'force_insert'

2020-04-21 Thread Motaz Hejaze
what kind of forms is this ? regular form or model form ? On Wed, Apr 22, 2020 at 4:57 AM Ahmed Khairy wrote: > Hi all, > > Got this unexpected error all of a sudden, how to fix it. > > save() got an unexpected keyword argument 'force_insert' > > > > def register(request): > if

save() got an unexpected keyword argument 'force_insert'

2020-04-21 Thread Ahmed Khairy
Hi all, Got this unexpected error all of a sudden, how to fix it. save() got an unexpected keyword argument 'force_insert' def register(request): if request.method == 'POST': form = UserRegisterForm(request.POST) if form.is_valid(): form.save()

Whats the best package for Django-admin styling

2020-04-21 Thread suman patel
Hi, We are having Django admin used extensively in our project. Any suggestions for adding more style and features to it. I searched Django- grappelli. Anyone using it. Any feedback and basic features you have used so far. Thx patel -- You received this message because you are subscribed to

Re: Getting approval from Admin first before posting a blog in Django

2020-04-21 Thread Motaz Hejaze
in post model add a boolean field ( approved : default = false ) .. and in your views filter only approved posts before showing them ... this way admin can login to admin panel , check the latest posts and approve them ( make approve = True ) then and only then they will be viewed in your

Getting approval from Admin first before posting a blog in Django

2020-04-21 Thread Ahmed Khairy
Hi all, I have made a blog as a project and I have set users to submit posts for the blog directly but i want to direct this post to the admin first for approval before showing on the website. here is the Post Create View Class. class PostCreateView(CreateView): model = Post fields =

Re: How to run django server locally, if there are multiple settings file in Django Project. if the repo is cloned from Office work space to local(newly hired as intern) (no requirements.txt)

2020-04-21 Thread ELMER IBAYAN
Hi Chaitan, After some googling around, i found this article which I believe would help you. https://simpleisbetterthancomplex.com/tips/2017/07/03/django-tip-20-working-with-multiple-settings-modules.html By the way, i find the project seems interesting from looking at the settings. Would you

Django pdfs

2020-04-21 Thread Perceval Maturure
Hi Django Users I am developing a Django document management system which will cater for pdf file uploads. What is the best resource to use (tutorial) as I want to have the pdfs accessible from admin. Can I do this with Django filer Regards Perceval -- You received this message because you

How to run django server locally, if there are multiple settings file in Django Project. if the repo is cloned from Office work space to local(newly hired as intern) (no requirements.txt)

2020-04-21 Thread chaitan sai
Hi Django Aspirants, I am trying to run localhost:8000 to run the server after the cloning the project. from GitHub. I figured out the process to follow after downloading the project. I can open all files from the sublime text editor and saw multiple settings.py files in the main project. I am

Collaborators wanted

2020-04-21 Thread John McClain
Hello all, I have developed an eCommerce marketplace and am looking for collaborators to help with further iteration work as I would like to concentrate primarily on promoting the launch and refining the marketing of the beta release I have an immediate need to refactor some of the existing

Re: Problem in polls app(ques text will not display)

2020-04-21 Thread LGBS fine soul coders
Try to send your source code On Tue, 21 Apr 2020, 23:28 Antje Kazimiers, wrote: > It sounds like your database is empty. Did you check if there are any > Question records in your admin view? Under > > 127.0.0.1:8000/admin > > You should see an entry for Questions and you can create question >

Re: Problem in polls app(ques text will not display)

2020-04-21 Thread Antje Kazimiers
It sounds like your database is empty. Did you check if there are any Question records in your admin view? Under 127.0.0.1:8000/admin You should see an entry for Questions and you can create question records there. Here they describe, how to create those records using the django management

Re: CSRF token still needed today?

2020-04-21 Thread David Merrick
Hi if you have an url with stuff?Stuff=Stuff the URL can be changed. See the link below. https://portswigger.net/web-security/csrf On Wed, Apr 22, 2020 at 6:16 AM guettli wrote: > Hi David, could you please explain how cross site forgery requests can > happen > with the current default for

Re: CSRF token still needed today?

2020-04-21 Thread Kenny Loveall
The original blog post you posted seems to answer this question. Further it states "It's going to be a long time until we can consider removing traditional anti-CSRF mechanisms but adding SameSite on top of those gives us an incredibly robust defence." Like most things in security, I think this is

Problem in polls app(ques text will not display)

2020-04-21 Thread Balkrishana Gaur
Dear sir i am new to django. And following each and every step to create my first app. Almost done. But at the time of polls question no text will display while i use to run 127.0.0.1/8000/polls What can i do -- You received this message because you are subscribed to the Google Groups "Django

Re: CSRF token still needed today?

2020-04-21 Thread guettli
Am Sonntag, 19. April 2020 23:11:59 UTC+2 schrieb Alex Heyden: > > Django supports samesite on session cookies now, and it's on (set to lax) > by default. Whether or not that completely covers your surface risk to CSRF > attacks is a somewhat different question. > > AFAIK they can not happen.

Re: CSRF token still needed today?

2020-04-21 Thread guettli
Hi Andreas. I try to avoid doing things which are not needed. Some call doing things which are not needed "useless", some even call it "stupid", but that's rude. Am Montag, 20. April 2020 12:46:14 UTC+2 schrieb Andréas Kühne: > > Why is it a problem to have? You add one specific command on all

Re: CSRF token still needed today?

2020-04-21 Thread guettli
Hi David, could you please explain how cross site forgery requests can happen with the current default for cookies (SameSite=Lax)? Am Montag, 20. April 2020 14:43:10 UTC+2 schrieb David Merrick: > > if you want cross site forgery requests get rid off it > > On Mon, Apr 20, 2020 at 10:45 PM

Re: Channels/Daphne offloading SSL Certs to AWS ELB fails to establish socket

2020-04-21 Thread Andrew C.
I’m about to create a PR (or not, not sure) with an AWS ALB setup for cookiecutter django. The gist of it really is that there’s an article my msaizar that has a good nginx configuration setup. Remove traefik and add nginx. Your target group in AWS should have all machines registered on port 80

Re: Channels/Daphne offloading SSL Certs to AWS ELB fails to establish socket

2020-04-21 Thread Shaheed Haque
On Tue, 21 Apr 2020 at 00:30, Tim Nelson wrote: > Well if you want the clients IP logged or need to do something with it on > the request: > >set_real_ip_from 0.0.0.0/0; >real_ip_header X-Forwarded-For; >real_ip_recursive on; > Thanks for the tip. I'll have to look into those in due

RE: Problema con instalar django 3.0.5

2020-04-21 Thread german salcedo aragon
Gracias Sr. Daniel. Enviado desde Correo para Windows 10 De: django-users@googlegroups.com en nombre de Ing.Daniel Bojorge Enviado: Monday, April 20, 2020 12:35:17 PM Para: django-users@googlegroups.com Asunto:

Initialize a formset with manytomany relationship

2020-04-21 Thread rahul sharma
I have two models connected by manytomany relationship and I am trying to use `formset` to create a dynamic form. I am able to save the form but the problem arise when I am trying to edit the saved instance, I don't know how to properly pass the instance to the formset such that it shows the

RelatedObjectDoesNotExist: User has no profile, Django error || unable to login after signup

2020-04-21 Thread Anonymous Patel
https://youtu.be/QDk3rI_H3ks here is the video for the error from this awesome community of developers, @errormania they provide solution all programming errors. they reply in a day or come up with a solution to your errors. they help as much as they can -- You received this message because

errormania a developers community

2020-04-21 Thread Anonymous Patel
https://www.youtube.com/channel/UCxxPBCkto7W8MX6TMctgLqw join this open community of developers, they help us to solve programming errors you can directly ask them in their telegram channel they comeup with solution video in a day and reply urgently on telegram. -- You received this message

Expecting JSON object instead of JSON Array

2020-04-21 Thread Salah Abdul Gafoor
In my django application with database engine djongo, I'm trying to return a JSON response by retrieving from my database. But, I'm receiving JSON array instead of JSON object. Currently, there is only one record in my database. Please see the code below. model.py class

Expecting JSON object instead of JSON Array

2020-04-21 Thread Salah Abdul Gafoor
In my django application with database engine djongo, I'm trying to return a JSON response by retrieving from my database. But, I'm receiving JSON array instead of JSON object. Currently, there is only one record in my database. Please see the code below. model.py class

Re: Reg: Django signal not working

2020-04-21 Thread sahil khan
Hello i am from google group plz see this video chennel and solve your problem https://youtu.be/QDk3rI_H3ks like comment and subscribe and share so that another people get help this channel On Mon, 20 Apr 2020, 4:28 pm Aditya Singh, wrote: > What's the original issue please, seems like you

Re: stack

2020-04-21 Thread Anonymous Patel
https://www.youtube.com/channel/UCxxPBCkto7W8MX6TMctgLqw watch this channel if you get some error errormania is open developers community you can join them and ask your doubts while development. and even upload your own video. if you face error and solve it than help others to solve solve it

Notifications in DRF

2020-04-21 Thread shreehari Vaasistha L
if anyone has implemented FCM in django rest framework using https://github.com/xtrinch/fcm-django or anyother packages, please share it with me. need to send notifications to devices. Thanks in Advance ! -- You received this message because you are subscribed to the Google Groups "Django

RE: Re: stack

2020-04-21 Thread Tejasri Mamidi
Sure,thank Sent from Mail for Windows 10 From: Rok KlancarSent: 20 April 2020 21:57To: Django usersSubject: Re: stack Do the official Django tutorial-- You received this message because you are subscribed to the Google Groups "Django users" group.To unsubscribe from this group and stop receiving

Re: Reg: Django signal not working

2020-04-21 Thread Anonymous Patel
https://youtu.be/QDk3rI_H3ks Checkout this video from errormania They explained about signal. If that doesn't help leave comment there they provide you with a video in a day Raj Patel On Tue, 21 Apr, 2020, 9:34 am 'Amitesh Sahay' via Django users, < django-users@googlegroups.com> wrote: > Hello

Watch "RelatedObjectDoesNotExist: User has no profile, Django error || unable to login after signup" on YouTube

2020-04-21 Thread Anonymous Patel
https://youtu.be/QDk3rI_H3ks Raj Patel -- 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

DRF instance page sends GET instead of DELETE with both Firefox and Chromium

2020-04-21 Thread Olivier
Hello, I'm discovering DRF. When I type http://foo/api/friends/3/ in my browser, I'm seeing content describing Friend 2 or Friend 3 instance. When I type curl -X DELETE http://foo/api/friends/2/ a DELETE request is sent to my Django app and everything works OK as Friend 2 is removed from