Re: RES: How to connect django and React js but getting Error

2020-10-26 Thread David Nugent
In this situation, something you might also consider is FastAPI https://fastapi.tiangolo.com (which is based on Starlette https://www.starlette.io). For the database you'll probably need to use SqlAlchemy vs Django ORM, but if you're serving static content and just need to provide an API it is

Re: Patreon and Django-AllAuth Integration

2020-10-26 Thread Andrew Stringfield
First, thank you for the response! I want to use Patreon as a login account provider for my Patrons. I have been playing around with the code some more. This is what I have so far: I created a view with the contents of: def patreon(request): request_string =

Re: Patreon and Django-AllAuth Integration

2020-10-26 Thread Andréas Kühne
Hi, Django-allauth is used for handling login from SSO third party libraries - EXACTLY what you are getting a response from. Do you want to use Patreon as a login account provider or do you want to do something else? Regards, Andréas Den mån 26 okt. 2020 kl 20:47 skrev Andrew Stringfield <

Re: DJANGO forms: Improve the presentation of the elements

2020-10-26 Thread sarva nithin
guys,can I know that what work you people so,that I can also prepare for that stuff so,please wwranda...@gmail.com reply me bro...waiting for your reply On Mon, 26 Oct 2020 at 21:04, Walter Randazzo wrote: > Hi Sarva, Hope u can aply gsoc!!! > > El lunes, 26 de octubre de 2020 a la(s)

Patreon and Django-AllAuth Integration

2020-10-26 Thread Andrew Stringfield
Hello all, I am trying to use Patreon's API Version 2 with Django 3.1. I read: https://docs.patreon.com/#third-party-libraries and found that Patreon supported the django-allauth library. I installed the library by following the instructions of:

Re: Restarting servers in development

2020-10-26 Thread Abhishek Choudhury
That's exactly what I was looking for. Thanks for your help. Thanks and Regards, Abhishek Choudhury Ph. no: +91 7903717967 On Mon, 26 Oct, 2020, 10:52 PM Andréas Kühne, wrote: > If you are running in production, make sure that you use something like >

Re: Restarting servers in development

2020-10-26 Thread Andréas Kühne
If you are running in production, make sure that you use something like https://docs.djangoproject.com/en/3.1/ref/contrib/staticfiles/#manifeststaticfilesstorage for handling the css and js files. This will solve the problem automatically for you be adding a MD5 hash to the url of the file, which

Re: Restarting servers in development

2020-10-26 Thread Abhishek Choudhury
Thanks a lot for the information. Will definitely try. Thanks and Regards, Abhishek Choudhury Ph. no: +91 7903717967 On Mon, 26 Oct, 2020, 10:26 PM Akinfolarin Stephen, < akinfolarinsteph...@gmail.com> wrote: > The reason why it is so is because of the browser caching capabilities > when the

Re: Restarting servers in development

2020-10-26 Thread Akinfolarin Stephen
The reason why it is so is because of the browser caching capabilities when the browser see that you are trying to visit a page you visited previously it will load it from the cache if you want it to display the current content press CTRL F5 and you will your newly added content On Mon, Oct 26,

Restarting servers in development

2020-10-26 Thread Abhishek Choudhury
I have been working in Django from quite a long time, but every now and then I face the same issue. Why is it like whenever I change the CSS/ JS on the pages, it takes some time or restarting of servers to actually take effect. Can we improve this functionality? I am really passionate about

Re: Recommended way for directory layout?

2020-10-26 Thread dupakoor kannan
Hi, Have you read this https://stackoverflow.com/questions/22841764/best-practice-for-django-project-working-directory-structure On Mon, Oct 26, 2020 at 11:18 AM guettli wrote: > cookiecutter does many things. For me this is way too much. > > I was looking for a **simple** guideline how to

Re: DJANGO forms: Improve the presentation of the elements

2020-10-26 Thread Walter Randazzo
Hi Sarva, Hope u can aply gsoc!!! El lunes, 26 de octubre de 2020 a la(s) 12:18:18 UTC-3, sarva nithin escribió: > hey,guys I'm new for all these present I have been learning python through > python bootcamp course in udemy so, I want to crack GSOC so, I started to > learn stuff like

Re: DJANGO forms: Improve the presentation of the elements

2020-10-26 Thread Walter Randazzo
Hi Derek, Thanks for sharing. im gonna try with crispy forms. El lunes, 26 de octubre de 2020 a la(s) 10:52:24 UTC-3, Derek escribió: > What you want to achieve (labels to the side) is the same example shown in > the Django-crispy-forms README: > >

Re: Recommended way for directory layout?

2020-10-26 Thread guettli
cookiecutter does many things. For me this is way too much. I was looking for a **simple** guideline how to structure a simple Django App at github. But nevertheless thank you for your reply. yemin...@gmail.com schrieb am Sonntag, 25. Oktober 2020 um 10:55:28 UTC+1: > You can check this one

Re: DJANGO forms: Improve the presentation of the elements

2020-10-26 Thread sarva nithin
hey,guys I'm new for all these present I have been learning python through python bootcamp course in udemy so, I want to crack GSOC so, I started to learn stuff like contribute organisations so, I don't understand where to start so, please if anybody can help me please reply and I have also

Re: DJANGO forms: Improve the presentation of the elements

2020-10-26 Thread Derek
What you want to achieve (labels to the side) is the same example shown in the Django-crispy-forms README: https://github.com/django-crispy-forms/django-crispy-forms On Sunday, 25 October 2020 at 19:46:54 UTC+2 wwran...@gmail.com wrote: > Hi guys, > > Is there any way to improve the

Re: Login Default admin page

2020-10-26 Thread Walter Randazzo
Could please share more about the background? Code, setup, etc? Errors 4xx refers to the client side... El lun., 26 oct. 2020 a las 8:52, waqar khan () escribió: > i have many small project all my project same issues , > before properly work , > How can solve this is my problems > > On Sun,

RES: Filtering combobox according to a project list created by logged user

2020-10-26 Thread Samuel Nogueira
The error is probably in your forms.py problably here  self.fields['projeto'].queryset = Projeto.objects.filter( projeto=Projeto.nomeProjeto) . your atribute ‘projeto‘ don’t exist in Projeto.objects.filter(projeto=Projeto.nomeProjeto). to do the correct way I recomment you to look at how to filter

Re: Login Default admin page

2020-10-26 Thread Farai M
Try to share the cmd logs because that error will definitely log On Mon, Oct 26, 2020, 1:52 PM waqar khan wrote: > i have many small project all my project same issues , > before properly work , > How can solve this is my problems > > On Sun, Oct 25, 2020 at 9:54 PM waqar khan wrote: > >> I

Re: Login Default admin page

2020-10-26 Thread waqar khan
i have many small project all my project same issues , before properly work , How can solve this is my problems On Sun, Oct 25, 2020 at 9:54 PM waqar khan wrote: > I have created createsuperuser > > but login time Error Show > 403 Forbidden > How can solve this problem > > -- > You received

Re: How to connect django and React js but getting Error

2020-10-26 Thread Omkar Parab
In Trmplates  os.path.join(BASE_DIR, 'new/build') At the bottom  STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'new/build/static') ] On Mon, Oct 26, 2020, 3:24 PM Vineeth wrote: > I am using django 3.1 version how to connect django and react i am trying > to connect but > getting

RES: testing class based generic views

2020-10-26 Thread Samuel Nogueira
I don’t know a test tutorial, but I think you can get some help in the Django docs. https://docs.djangoproject.com/en/3.1/topics/testing/tools/  -Samuel Nogueira Bacelar GitHub:

Re: How to connect django and React js but getting Error

2020-10-26 Thread Ayser shuhaib
Your view must return a Jason response and not render a html file. You should learn Django Rest Framework for that This is an example here for how your view will look like: API View https://youtu.be/-x_Z_V9HXZE On Mon, 26 Oct 2020 at 13:08, Samuel Nogueira wrote: > Please can you show me

RES: How to connect django and React js but getting Error

2020-10-26 Thread Samuel Nogueira
Also you should follow Farai’s recommendation and use DRF in your applicaiton. -Samuel Nogueira Bacelar GitHub: https://github.com/SamuelNoB Linkedin:

RES: How to connect django and React js but getting Error

2020-10-26 Thread Samuel Nogueira
Please can you show me your views.py? -Samuel Nogueira Bacelar GitHub: https://github.com/SamuelNoB Linkedin: https://www.linkedin.com/in/samuel-nogueira-87800b1aa/ 

Re: How to connect django and React js but getting Error

2020-10-26 Thread Farai M
Why don't you use django rest framework API then separate your front end to your back end.That why you will not have to deal with integration issues On Mon, Oct 26, 2020, 11:55 AM Vineeth wrote: > I am using django 3.1 version how to connect django and react i am trying > to connect but >

Re: Error at the return of an AJAX POST in DJANGO

2020-10-26 Thread Nikitha Bangalore Escorts
hmm On Monday, October 26, 2020 at 2:35:28 AM UTC+5:30 wwran...@gmail.com wrote: > Hi buddies, I have a POST request from ajax. At the backend some records > are updated in the django view, this is done fine but an error comes up and > the page isnt reloaded. > > ***This is the error:*** > >