Re: Problem: Ajax post method to django views

2019-11-08 Thread Integr@te System
Hi Issuer, Plz check doc and do accordingly: Section Setting the token on the AJAX request https://docs.djangoproject.com/en/dev/ref/csrf/#ajax On Sat, Nov 9, 2019, 05:23 Mikko Meronen wrote: > Hi, > > I have a problem to pass a json value to Django views and use the value to > retrieve data

Disabling Django Admin, and creating my own three custom admin dashboards

2019-11-08 Thread Wim Olivier
Hi everyone, I would like to disable the Django Admin, and create my own custom admin dashboards. There must be three different types of admin dashboards: - one for Customers (normal users) where they can do CRUD on their profile and services (URI: /customer/dashboard) - one for Partners where

Django 2.2.2 having problems with daylight savings time

2019-11-08 Thread Jim Illback
Is anyone else having an issue with Django (2.2.2), giving an error for a date time within the daylight savings change over period (11/3/2019 01:00 to 11/3/2019 02:00)? My settings have TIME_ZONE = ‘America/Los_Angeles’. However, a transactional time such as ‘2019-11-03 01:18:34:12345-08’

Violation settimeout handler took 65ms

2019-11-08 Thread Amit Agarwal
Hi, i am making an http request to Django server through angular, I am rcvng violation settimeout handler took 65ms. I have just written code http call in angular and displaying the response in console.log If I hit the URL to server directly from web browser, it works fine Plz guide -- You

Django 1.4 urls.py deprecated, urlpatterns to change

2019-11-08 Thread Mdlr
I try to compile an old code in Django 1.4 Many things are deprecated. I manage to change some of them but I don't knwo how to go futher on the urls.py here is the old code *from django.conf.urls.defaults import * from django.conf import settings dynurls = patterns('minesweepr.views',

Problem: Ajax post method to django views

2019-11-08 Thread Mikko Meronen
Hi, I have a problem to pass a json value to Django views and use the value to retrieve data from my database. Anyone could help me? I get the ajax error message and the following error in chrome console: jquery.js:8475 POST http://www.topithenewsdoggy.com/history/ 403 (Forbidden) *views.py*

Re: Sending mail

2019-11-08 Thread DANIEL URBANO DE LA RUA
Hablas español? On Fri, 8 Nov 2019, 17:59 Daniel Angel, wrote: > LOGIN.HTML > > {% extends "register/base.html" %} > {% block content %} > > > > > > "100"> > > > > {{ form.non_field_errors }} > {% for field in form %}

Re: Microservice with django

2019-11-08 Thread salimon jamiu olashile
I’ve a group project to work on. It’s a bug tracking system & we decided to go with a microservice architecture which is the best solution for the assumed business scenario. I am to build the Reporting functionality as a seperate service. On Fri, 8 Nov 2019 at 7:26 PM, Murilo A. Gigliotti <

Re: Microservice with django

2019-11-08 Thread Nick Sarbicki
There is not really anything that requires doing to make Django work with microservices or as a microservice. It is completely agnostic to your overall architecture. Just simply create a new django project for each microservice you want to create. There honestly is nothing else to it. - Nick

Re: Microservice with django

2019-11-08 Thread Ing.Daniel Bojorge
Me too!!! Dios L@s Bendiga Saludos, [image: --] daniel.bojorge [image: http://]about.me/daniel.bojorge [image: snake]*Curso Desarrollo Web con Python usando Django 2.2 Para Principiantes con Descuento 95%

RES: Microservice with django

2019-11-08 Thread Murilo A. Gigliotti
All, Good question! I would like more details... Thank you! Rgds, _ Murilo Gigliotti, Odoo icone2 Odoo Business Partner Mais informações visite http://www.gigliottitech.com.br/ De: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Em

Help

2019-11-08 Thread Fasetire Babatunde Gbolahan
conda.core.link:_execute_actions(337): An error occurred while installing package 'anaconda::sqlparse-0.3.0-py_0'. CondaError: Cannot link a source that does not exist. C:\Users\fashflash\Anacond a3\Scripts\conda.exe Running `conda clean --packages` may resolve your problem. Attempting to roll

Re: Microservice with django

2019-11-08 Thread Salim Kachemela
I was wondering the same thing On Fri, 8 Nov 2019, 20:15 salimon jamiu olashile, wrote: > Hello all, > > How can I build a Django project/app that follow the microservice > architecture? > > Looking to be pointed in the right direction. > > Best regards. > > > > > -- > You received this message

Microservice with django

2019-11-08 Thread salimon jamiu olashile
Hello all, How can I build a Django project/app that follow the microservice architecture? Looking to be pointed in the right direction. Best regards. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Sending mail

2019-11-08 Thread Daniel Angel
LOGIN.HTML {% extends "register/base.html" %} {% block content %} {{ form.non_field_errors }} {% for field in form %} {{ field }} {{ field.errors }}

Re:

2019-11-08 Thread Paras Jain
no worries but thanks for the solution bro really appreciate it On Fri, Nov 8, 2019 at 8:14 PM Nijo Joseph wrote: > In the add function. Sorry for the breaking emails sending from phone. > > On Fri, 8 Nov 2019, 8:11 pm Nijo Joseph, wrote: > >> Or the either way round instead of form = >>

Re:

2019-11-08 Thread Nijo Joseph
In the add function. Sorry for the breaking emails sending from phone. On Fri, 8 Nov 2019, 8:11 pm Nijo Joseph, wrote: > Or the either way round instead of form = CompanyForm(request.POST), > make it PersonForm(request.POST). > > On Fri, 8 Nov 2019, 4:26 pm Paras Jain, wrote: > >> Hy, i

Re:

2019-11-08 Thread Nijo Joseph
Or the either way round instead of form = CompanyForm(request.POST), make it PersonForm(request.POST). On Fri, 8 Nov 2019, 4:26 pm Paras Jain, wrote: > Hy, i am not getting my all fields on the my page which is written inside > the forms.py of 'PersonForm' > > > models.py: > from django.db

Re:

2019-11-08 Thread Nijo Joseph
def add(request): form= PersonForm() if request.method == "POST": form = CompanyForm(request.POST) if form.is_valid(): form.save(commit=True) return render(request, 'add.html', {'form':form}) What is this form for? Adding into Company table. Then make

Re: Converting requests

2019-11-08 Thread Kasper Laudrup
Hi Suraj, On 08/11/2019 13.19, Suraj Thapa FC wrote: I'm integrating the payment gateway in a website... They provided the documentation in python... All I have to do is make a post request to that url with the given data... Do you have any questions or do you just feel like sharing what

Re: Converting requests

2019-11-08 Thread Suraj Thapa FC
I'm integrating the payment gateway in a website... They provided the documentation in python... All I have to do is make a post request to that url with the given data... On Fri, 8 Nov 2019, 5:02 pm Kasper Laudrup, wrote: > Hi Suraj, > > On 08/11/2019 12.06, Suraj Thapa FC wrote: > > Actually

Re: Converting requests

2019-11-08 Thread Kasper Laudrup
Hi Suraj, On 08/11/2019 12.06, Suraj Thapa FC wrote: Actually i want to made a post request to the url with post_data OK, so you want to do something completely different than what you wrote originally? Thankfully, the line of code you shared does exactly that assuming you are using the

Re: Converting requests

2019-11-08 Thread Suraj Thapa FC
Actually i want to made a post request to the url with post_data On Fri, 8 Nov 2019, 2:27 pm Kasper Laudrup, wrote: > Hi Suraj, > > On 08/11/2019 08.26, Suraj Thapa FC wrote: > > How do I convert the requests into render or redirect > > > > response = requests.post(url,data=post_data,

[no subject]

2019-11-08 Thread Paras Jain
Hy, i am not getting my all fields on the my page which is written inside the forms.py of 'PersonForm' models.py: from django.db import models # Create your models here. TITLE_CHOICES = ( ('Normal', 'Manager'), ) class Company(models.Model): email = models.EmailField() def

Re: Converting requests

2019-11-08 Thread Kasper Laudrup
Hi Suraj, On 08/11/2019 08.26, Suraj Thapa FC wrote: How do I convert the requests into render or redirect response = requests.post(url,data=post_data, headers={"Content-type" :"application/json" }).json() You question doesn't make much sense since you don't write what you want to