Payment option not diasplay issuse something paytm link

2020-04-27 Thread kkwaqar786
[image: so2.JPG] [image: so.JPG] -- 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

Payment option not diaspla

2020-04-27 Thread kkwaqar786
[image: ex2.JPG] [image: ex.JPG] Payment option not diasplay issuse something paytm file in form tag .. -- 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

Re: select_related() and RawQuerySet

2020-04-27 Thread Alex Scott
This is an insanely old thread, but I couldn't find any updates so was curious if anyone had advice on implementing select_related with a RawQuerySet? It seems prefetch_related() works just fine. On Friday, March 2, 2012 at 11:22:52 AM UTC-8, akaariai wrote: > > On Friday, March 2, 2012 7:24:00

DJANGO-ERROR no reverse for 'user_blog' find solutions here

2020-04-27 Thread Anonymous Patel
https://youtu.be/5hDZ328uKk0 Here is Developers community guys for django errors, i found many solutions videos here in this channel you guys can even search for solutions there. It helped me a lot and many of my Developers friend same from Django channel Link for YouTube is :- https://www.yout

Testing an online payment Form using Django Keep getting Not Authenticated Error. Is it because of the Testing Credit Card numbers?

2020-04-27 Thread Ahmed Khairy
I am making a project for an online payment e-commerce I think I got everything right as am following a Tutorial Keep getting this Error: Not Authenticated Error I used the testing CC Numbers for testing purposes My question is the following codes correct and I'm getting Not Authenticated Er

Re: AttributeError: type object 'User' has no attribute 'objects'

2020-04-27 Thread Kasper Laudrup
Hi Sagar, On 27/04/2020 14.25, sagar ninave wrote: i am getting this error It's hard to guess since you don't show where your User class comes from, but it doesn't seem like its inheriting from the Django model class. The error message is quite clear. Look at your User model. Btw. just a hi

Re: Django Admin Custom View Query Generation

2020-04-27 Thread Derek
Hi I have not worked with visualising script progress before; you probably need to use Celery on the backend - have a look at this blog post: https://buildwithdjango.com/blog/post/celery-progress-bars/ Writing the actual ingestion scripts is very much standard work for any programmer - especial

reg: DRF serializer ot pulling data from User model

2020-04-27 Thread 'Amitesh Sahay' via Django users
Hello All, DRF failing to pull the data from User model I have two Serializers for Two models(User model and UserProfile). models.py--class UserProfile(models.Model): Photo = models.FileField(upload_to='documents/%Y/%m/%d/', null=True) uploaded_at = models.DateTimeField(auto_now_ad

Re: Question regarding Interactive Python shell response and django

2020-04-27 Thread Derek
I think you are better off creating a proper API for your Django project, using something like DRF. The Django shell is meant for direct use by an administrator working on the server. On Sunday, 26 April 2020 16:05:02 UTC+2, Michael Karikari wrote: > > So I find myself in a pickle. > I'm using

Re: AttributeError: type object 'User' has no attribute 'objects'

2020-04-27 Thread sagar ninave
i got answer i was doing this: from .models import User user = User.objects.filter(pk=user_id) instead i do this: from .models import MyUser user = MyUser.objects.filter(pk=user_id) error gone On Mon, Apr 27, 2020 at 6:57 AM Kasper Laudrup wrote: > Hi Sagar, > > On 27/04/2020 14.25, saga

Implement querystring using Search option + Pagination

2020-04-27 Thread Gurmeet Kaur
Hi All, I have a situation where currently, I am showing data using views.py function on the template and the template shows data on the page. The html page also has search dropdowns and those dropdowns are getting data from the landing view function itself. Note - This landing function is the o

AttributeError

2020-04-27 Thread DimGo
from django import forms from django.core.exceptions import ValidationError class SearchProduct(forms.Form): text=forms.CharField(label='Search ') date=forms.DateField(required=False) t = SearchProduct() print(t.date) Error: AttributeError: 'SearchProduct' object has no attribute 'date'

Re: AttributeError

2020-04-27 Thread Phako Perez
I think issue is how you are trying to access the attribute This is a form and must be accessed through a post call. Can you share your html form??? Sent from my iPhone > On 27 Apr 2020, at 10:29, DimGo wrote: > >  > from django import forms > from django.core.exceptions import ValidationErro

Re: AttributeError with forms

2020-04-27 Thread Phako Perez
In addition, you must define your model in models.py And to get this attributes on your views.py from a post request, you could use like {{ form.attribute }} Regards Sent from my iPhone > On 27 Apr 2020, at 10:29, DimGo wrote: > >  > Why is this this strange error? > -- > You received thi

Re: AttributeError with forms

2020-04-27 Thread Ethem Güner
It's not strange. You can't access to an attribute of a form class directly. Remember how do you define the form in a view. You're passing arguments such as *data=request.POST*. You're trying to access an undefined attribute. Because It's a form class and needs input. Try to print *t.__dict__ *yo

Django with Python Machine leaning

2020-04-27 Thread Lansana Sangare
Good evening everyone, I have a little doubt, I am new in Django but I attended the basic courses. Now I'm trying to display a machine learning script in django application on my web interface. Is there any way to do that with django. In my python script a video with keypoint and 3D reconstr

Re: AttributeError with forms

2020-04-27 Thread 'Amitesh Sahay' via Django users
I couldn't open the screenshot . But to work with the django forms you need to perform below tasks. 1) create model of your choice in models.py.2).  Python manage.py makemigrations3) python manage py migrate.4 create a python file called forms.py inside your app.5) import your models there ( fro

Django framework with machine learning

2020-04-27 Thread Lansana Sangare
Good evening, I am a new developer in Django but I have the basic knowledge. I wanted to know if someone has experience with django and machine learning. I have a script in python that shows a video with keypoints and 3D reconstruction. Is it possible with django framework to execute and disp

Re: AttributeError

2020-04-27 Thread 'Amitesh Sahay' via Django users
Do you have a "date" field in your models.py.? Please share models.py, and views.py as well Sent from Yahoo Mail on Android On Mon, 27 Apr 2020 at 22:44, Phako Perez<13.phak...@gmail.com> wrote: I think issue is how you are trying to access the attributeThis is a form and must be accesse

RE: Django with Python Machine leaning

2020-04-27 Thread Mike Dewhirst
Look at brython.infoMight be interesting.Mike Original message From: Lansana Sangare Date: 28/4/20 03:52 (GMT+10:00) To: Django users Subject: Django with Python Machine leaning Good evening everyone,I have a little doubt, I am new in Django but I attended the basic courses

[no subject]

2020-04-27 Thread fahad rasool
How to retrieve data from database and display on web page ,example i want to display the details of the user on a web page which he has entered in a form which is stored in database. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

auto-populate Model-B with Model-A and/or Model-C

2020-04-27 Thread user-django
firstly abstractly speaking - each time i create an order via Model A i want to auto-populate Model B with the data from Model-A and/or Model-C. now straight to the point - i want both, the customer's name & the product (which they are purchasing) to automatically appear as a concatenated strin

DateTime

2020-04-27 Thread Kushal Neupane
How to make date time as per my region? -- 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

Unable to establish odbc connection to MS SQL Server

2020-04-27 Thread Kirk Brown
I'm getting an error when I try to runserver. Here is my code in manage.py: DATABASES = { 'default': { 'ENGINE': 'sql_server.pyodbc', 'NAME': 'database', 'HOST': 'localhost', 'USER': 'user', 'PASSWORD': 'password', 'OPTIONS': {'O

Re: Unable to establish odbc connection to MS SQL Server

2020-04-27 Thread Gurmeet Kaur
Hi There, I have also implemented this in my project. The code in my settings.py is below. You could also try the same. DATABASES = { 'default': { 'ENGINE': 'sql_server.pyodbc', 'NAME': 'MyDbName', 'USER': 'user', 'PASSWORD': 'password', 'HOST': 'DbHost

Re: Unable to establish odbc connection to MS SQL Server

2020-04-27 Thread Darren Williams
Lets On Apr 27, 2020 10:31 PM, "Gurmeet Kaur" wrote: Hi There, I have also implemented this in my project. The code in my settings.py is below. You could also try the same. DATABASES = { 'default': { 'ENGINE': 'sql_server.pyodbc', 'NAME': 'MyDbName', 'USER': 'user'

Re:

2020-04-27 Thread _M_A_Y_A_N_K_
You can create a function based view or class based view (views.py) where you can have our own queryset to retrieve the data from database. And pass the same into the html. Thanks & Regards, - Mayank Tripathi "Do what you can, with what you have, where you are -by Theodore Roo

database is not working

2020-04-27 Thread Balkrishana Gaur
Dear friends as per django project app mysite/polls After creationnof the database 1st entry was " whats new? ". When i login to the admin site than only question object is available. What can i do. -- You received this message because you are subscribed to the Google Groups "Django users" gr

Re:

2020-04-27 Thread Chucky Mada Madamombe
You can use generic class based views and an html template. Regards Chuck G. Madamombe NAM: +264 81 842 1284 RSA: +27 78 208 7034 Twitter: @chuckygari Skype: chuckygari Facebook: Chucky Mada Madamombe LinkedIn: Chucknorris Garikayi Madamombe On Tue, 28 Apr 2020, 02:11 fahad rasool wrote: > How

RE:

2020-04-27 Thread ngallen4
Hello Fahad If you didn’t extend user model your view.py it will be like @login_required def userdetails(request): user_details = User.objects.get(username=request.user) context { "user_details": user_details, } return render(request, 'accounts/profile.html', contex