help me to fix this issue with database connection

2019-08-28 Thread leb dev
i have a django project that need to be connected to MS SQL Server i am using *pyodbc package.* *once i run the program the system display the below error:* djago.db.utils.operationalError:('08001','[08001] [microsoft][odbc sql server driver]neither dsn nor server keyword supplied (0)

Re: Django sockets

2019-08-28 Thread Suraj Thapa FC
Thanks i did it with Django channels On Wed, 28 Aug, 2019, 7:20 PM nm, wrote: > > Perhaps you're looking for Django Channels? > > > On Tuesday, 27 August 2019 15:08:47 UTC+2, Suraj Thapa FC wrote: >> >> Anyone know making chat app using sockets in

PasswordResetDoneView not using custom template in Django

2019-08-28 Thread siva reddy
PasswordResetDoneView.as_view is not loading custom template I'm using Django 2.2 version I have created a custom template and add the path to the accounts app URL

Re: Reverse for 'modification' with no arguments not found issue

2019-08-28 Thread James Schneider
On Wed, Aug 28, 2019, 2:00 AM Ali IMRANE wrote: > Thanks James for your help. > > Indeed, I tought about that problem but I already managed to see an number > on an other page, as well as using that ID to read information behind my > informations (as you can see in the third line I gave on

Re: For validation not working for UserCreationForm

2019-08-28 Thread 'Amitesh Sahay' via Django users
Hey Kean,  I am already working on some Djago user authentication . Below are my codes, may be they would help you. views.py from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib import messages from django.contrib.auth.forms

Re: Rest framework

2019-08-28 Thread Soumen Khatua
Thanks for your support.I got that,now I'm trying to figure out the coding convention. Thank You Regards, Soumen On Wed, Aug 28, 2019 at 10:32 PM Andréas Kühne wrote: > All of the code is documented and there should be some readme to help you > get started. > > Regards, > > Andréas > > >

Re: Rest framework

2019-08-28 Thread Andréas Kühne
All of the code is documented and there should be some readme to help you get started. Regards, Andréas Den ons 28 aug. 2019 kl 15:30 skrev Soumen Khatua : > Hi Andres, > Thank you for your suggestions,Yes the database architecture is wrong. > Now I'm doing the practise to all the possible

For validation not working for UserCreationForm

2019-08-28 Thread Kean
Hi, New to Django. I've created a registration form which inherits from a User form. The issue is none of the validators are working. e.g reporting to user password miss-match, or any other error if user enters data incorrect to validation. The form simply validates with errors and redirect

Re: Channels: launching a custom co-routine from SyncConsumer

2019-08-28 Thread Dan Merillat
On 8/15/19 11:10 PM, Andrew Godwin wrote: > SyncConsumer isn't async - it runs inside a separate synchronous thread. > You'll need to get the event loop from the other thread and use > call_soon_threadsafe instead! Sorry for the delay in getting back to you, it took me a while to go through the

Re: Django sockets

2019-08-28 Thread nm
Perhaps you're looking for Django Channels? On Tuesday, 27 August 2019 15:08:47 UTC+2, Suraj Thapa FC wrote: > > Anyone know making chat app using sockets in rest api > -- You received this message because you are subscribed to the Google Groups

Unsynchronized sequence

2019-08-28 Thread Ezequias Rocha
Hello everyone I am using django rest framework and I noticed that even I changing the current sequence in my database (PostgreSQL) the next element in database (generated by django) isn't created as I expect. Could someone tell me if you have experienced this before? Best regards Ezequias

Re: Rest framework

2019-08-28 Thread Soumen Khatua
Hi Andres, Thank you for your suggestions,Yes the database architecture is wrong. Now I'm doing the practise to all the possible way to solve this problem. But how I can use this plugin to solve problem meanwhile Do you have any documentation for this plugin. Thank You Regards, Soumen On Wed,

confusing about running some codes in django

2019-08-28 Thread Vahid Asadi
Hi . when i read the django docs,it suggested that running some code but it does not note that where to write this piece of code . the code is : from django.contrib.auth.models import User u = User.objects.get(username='john') u.set_password('new password') u.save() i know that i can run

How to order by prefetched set values?

2019-08-28 Thread Vlasov Vitaly
For example, i have 2 models Person and Numbers( number and ForeignKey(Person) In queryset i get all persons with their related numbers. And i use `queryset` parameter to `Prefetch` object to filter these numbers. Result numbers_set can contain only 1 or 0 Number object. Number's table can

Re: Rest framework

2019-08-28 Thread Andréas Kühne
Hi, This is possible if you have a nested serializer that allow creation. We have created a plugin for that : https://pypi.org/project/drf-nested/ There are several others out there that do this also - so it's completely possible. However when looking at your code - I think the relationship

Re: Django Multiple File Upload for latest versions

2019-08-28 Thread Abu Yusuf
Thanks for your valuable feedback. I will try to fix all those. On Tue, Aug 27, 2019 at 4:46 PM Sim wrote: > here is my newbie opinion : > https://github.com/Revel109/django-multiupload-lts/issues/1 > > good luck > > On Tue, Aug 27, 2019 at 9:30 AM Abu Yusuf > wrote: > >> Hey there, I have

Re: Please help me to resolve this issue .............................[WinError 10061] No connection could be made because the target machine actively refused it

2019-08-28 Thread Kasper Laudrup
Hi Wagas, This can only be a guess, since you haven't provided much relevant information, but this exception: > *Exception Type: ConnectionRefusedError at /accounts/register/* > *Exception Value: [WinError 10061] No connection could be made because > the target machine actively refused it* is

Re: i need a project developed in django +mysql database and front end in bootstrap-4

2019-08-28 Thread Desh Deepak
Hi, Waqas I am Desh Deepak from New Delhi, My Qualification MCA done from IGNOU. I am experience in Python technology like python based frameworks: Django, flask and also knowledge about MySQL8.0. My github id: deshxpm (https://www.github.com/deshxpm) and linkedin id: deshdeepak...@gmail.com

Please help me to resolve this issue .............................[WinError 10061] No connection could be made because the target machine actively refused it

2019-08-28 Thread Waqas Ahmad
*Environment:* *Request Method: POST* *Request URL: http://127.0.0.1:8000/accounts/register/* *Django Version: 2.2.4* *Python Version: 3.7.1* *Installed Applications:* *['crispy_forms',* * 'django.contrib.auth',* * 'django.contrib.contenttypes',* * 'django.contrib.sessions',* *

i need a project developed in django +mysql database and front end in bootstrap-4

2019-08-28 Thread Waqas Ahmad
For Contact me ::: waqasahmadtarar...@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

Rest framework

2019-08-28 Thread Soumen Khatua
Hi Folks, I have three models like Company,Employee and images. Images is foreignkey in my Company table. At the time of creating Company deatils I want to add image also, How I add these image in my image tables and at the time to get method how i can show company details along with image using

Re: Reverse for 'modification' with no arguments not found issue

2019-08-28 Thread Ali IMRANE
Thanks James for your help. Indeed, I tought about that problem but I already managed to see an number on an other page, as well as using that ID to read information behind my informations (as you can see in the third line I gave on "lire.html"). A number is printed. How can I know that it is

Re: User Register form not validating or returning errors.

2019-08-28 Thread 'Amitesh Sahay' via Django users
May be you can try the below in-built django feature for the registration form creation: from django.contrib.auth.forms import UserCreationFormdef register_user(request): if request.method == 'POST': form = UserCreationForm(request.POST) if form.is_valid():

Re: User Register form not validating or returning errors.

2019-08-28 Thread Tosin Ayoola
You didn't close the form tag that why you getting this error On Aug 27, 2019 21:41, "K. KOFFI" wrote: > please put « > » before the csrf tag > > > Le 27 août 2019 à 16:30 +0100, Kean , a écrit : > > Hi Ajeet, thanks for code, > however after i press submit i get the > > Forbidden (403) > CSRF

Re: views and manager files according to MVT design pattern

2019-08-28 Thread Tosin Ayoola
Instead of splitting your view, why not create a new app that way the project will b manageable On Aug 27, 2019 23:45, "Mike Dewhirst" wrote: > On 28/08/2019 4:01 am, Alejandro Cuara wrote: > >> Hi, >> I would like to know if does make sense to split my views.py file into >> multiple view