Can u plz tell what you have done so we can learn also.
On Thu, 22 Aug, 2019, 11:16 AM RONAK JAIN, wrote:
> Thank you so much all of you for your kind of help.
>
>
> I have done this Task.
>
>
> Thanks
>
>
>
>
>
> On Thu, Aug 22, 2019 at 10:21 AM Sipum wrote:
>
>> Hey Ronak,
>>
>> At first u
Thank you so much all of you for your kind of help.
I have done this Task.
Thanks
On Thu, Aug 22, 2019 at 10:21 AM Sipum wrote:
> Hey Ronak,
>
> At first u did wrong in import.
>
> Do as below and compare what u have done.
>
> From django.contrib.auth.models import User
> From
Yes it has
Can you write the query for the above question asked
On Wed, 21 Aug, 2019, 10:51 PM 'Amitesh Sahay' via Django users, <
django-users@googlegroups.com> wrote:
> I am not much of a database guy. But if you wish to get something from
> different table, then there has to be some
token = request. Meta['HTTP_AUTHORIZATION']
data = {'token' : token}
payload_decoded = jwt.decode(token, settings.SECRET_KEY)
try:
valid_data = VerifyJSONWebTokenSerilaizer().validate(data)
user = valid_data['user']
self.request.user = user
except:
pass
On Thu, 22 Aug,
Hey Ronak,
At first u did wrong in import.
Do as below and compare what u have done.
>From django.contrib.auth.models import User
>From django.contrib import auth
Then when u are creating user do as-
user = User.objects.create_user(uanme,pwd,email)
THEN for login after sign up use as below -
Greetings,
I would like to ask if anyone has a suggested way for creating a 3D object
which can be interacted with on Django. Any suggestions are welcomed.
Thanks in advance.
Regards,
Kai Wey
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
Have you tried Gooey https://pypi.org/project/Gooey/ ,
PyQt https://pypi.org/project/PyQt5/
On Wed, 21 Aug 2019 at 23:31, ARAVIND BALAKRISHNAN <
aravindbalan...@gmail.com> wrote:
> Can anyone suggest me any modern UIs for python application in windows
> other than electron
>
> --
> You
in register method
add user.set_password = request.POST.get('password') before user.save()
On Wed, Aug 21, 2019 at 10:56 PM 'Amitesh Sahay' via Django users <
django-users@googlegroups.com> wrote:
> I guess you have forgotten to mention the APP name under which the pages
> are created. Please
I get that clearly
But how to get the Response
Sorry I'm new
On Thu, Aug 22, 2019, 4:37 AM Ronit Mishra
wrote:
> You woulld be having some api/profile endpoint, in your project where user
> details would be available. Send a post request with access token just like
> I explained in the previous
You woulld be having some api/profile endpoint, in your project where user
details would be available. Send a post request with access token just like
I explained in the previous email and you should get the response with
profile details.
On Thu, Aug 22, 2019 at 5:13 AM Mohammad Kokhaee wrote:
Thanks for your explanation
After the user send the token to server
What Should I do with the token to access to user id and user name and etc .
This is project is mostly like blog web and when the user authenticate API
returns just post of this user .
I don't know how to reach user information
Hi,
First step is to authenticate and obtain the token. For instance, lets say
your endpoint is /api/token, so it'll only accepts POST requests.
>> post http://127.0.0.1:8000/api/token/ username=mohammad password=123
You can use cURL, or HTTPie or Python's requests module to test this.. Heck
Hello guys
I've created token by JWT and
My questions
1-how to access to user information by token ?
2-Is that the Right way and is that secure?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop
Hi.
Wouldn't it be much better to improve DRF documentation itself rather than
create yet an another documentation that you have to maintain?
ke 21. elok. 2019 klo 19.58 Charles Thayer kirjoitti:
> I've been using Django with DRF off and on for probably over 5 years now.
> There are still
Are there any ready to use user authentication API for Django where user
can register not only with username, password and email but also with date
of birth, profile-url, picture etc?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
Maybe we should make one
> On 21 Aug 2019, at 19:58, Charles Thayer wrote:
>
> I've been using Django with DRF off and on for probably over 5 years now.
> There are still parts that I'm always needing to look up and review. Anyone
> know of a one-pager cheatsheet that covers all the
Can anyone suggest me any modern UIs for python application in windows
other than electron
--
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
I guess you have forgotten to mention the APP name under which the pages are
created. Please cross-verify on my observation .
Regards,
Amitesh Sahay91-750 797 8619
On Wednesday, 21 August, 2019, 12:35:28 pm IST, RONAK JAIN
wrote:
Hey I tried but still getting like that...
Attached
I am not much of a database guy. But if you wish to get something from
different table, then there has to be some foreignkey there I guess your
"courses" table should have CID as foreignkey. May be I am wrong.
On Wednesday, 21 August, 2019, 08:26:52 pm IST, Suraj Thapa FC
wrote:
Generally SqlLite is enough for any testing. However, if you are planning to
test it with par the other regular DBs, then do not do it. I have seen your
GIT-HUB code. Use postgres, you will be happy .
On Wednesday, 21 August, 2019, 10:12:38 pm IST, Jonathan Mrutu
wrote:
Hi Jaemin,
I've been using Django with DRF off and on for probably over 5 years now.
There are still parts that I'm always needing to look up and review. Anyone
know of a one-pager cheatsheet that covers all the annoying details well,
like read_only vs write_only vs required, and nesting serializers,
Hi Jaemin,
You can try to post this question on stack overflow, but why don't you use
PostgreSQL this is recommended.
SQLite as the name implies it's more for testing purpose in a small project
environment.
//Jona
You must secure your endpoints with authentication mechanism and on top of
that you might consider using
django-rest-knox
//Jona
On Wed, Aug 21, 2019 at 5:57 PM Yoo wrote:
> Hi,
> Thanks for the prompt response (and sorry for such a late one). I suppose
> I'm simply asking about JSON in
Hi,
Thanks for the prompt response (and sorry for such a late one). I suppose
I'm simply asking about JSON in general and DRF validation. Using the
general serializer (serializer.Serializers), DRF validates the JSON itself,
right? So, if some malicious person sent Python code via the JSON using
Thanks...
On Wed, 21 Aug, 2019, 6:24 PM Sundararajan Seshadri,
wrote:
> What you need to appreciate is that the foreign key field gives you the
> full record (corresponding to the foreign key).
>
> So, if you fetch all records as course_rating.objects.all() then c.cid
> will also be an object
What is the Transaction class which your model inherits from ? Is it just a
base model ?
Let’s do an experiment
Print(“object created”) right after the create() method
Print(“callback requested”) on top of your callback method
Which one do you see first ?
Sent from my iPhone
> On 21 Aug
That's the class, nothing different other than HTTP requests
class CashPayment(BasePayment):
"""Cash Payment Wrapper Class"""
integration_id = CASH_INTEGRATION_ID
def __init__(self, amount_cents: int, billing_data: dict):
super().__init__(amount_cents, billing_data)
def pay_request(self):
the response to my callback quicker than saving the object?! it's highly
unlikely! there's something else I don't understand. The step that
`pay_request()` is the last before getting the response from XPAY's server.
I tried to put it after saving the transaction object. same error occurred!
I
if you are able to share more code from the `utils.CashPayment` call that
may help us
On Wed, Aug 21, 2019 at 4:37 PM mohamed habib wrote:
> I highly doubt its related to ORM or postgres, the creation of the record
> is synchronous so you can be sure that the record exists after the create()
>
I highly doubt its related to ORM or postgres, the creation of the record
is synchronous so you can be sure that the record exists after the create()
call.
Since you are sure that you are fetching the data properly we can rule out
this possibility
Its probably a race condition of the callback
I tried, same happened. it's related to how Postgres works internally with
the Django-ORM.
On Wednesday, August 21, 2019 at 3:07:47 PM UTC+2, mohamed habib wrote:
>
> Wild guess in the dark here, as I am unfamiliar with this API. you are
> doing:
>
> `payment.pay_request()`
>
> before
Wild guess in the dark here, as I am unfamiliar with this API. you are
doing:
`payment.pay_request()`
before creating the WeacceptTransaction object.
Maybe this line needs to move below:
`models.WeAcceptTransaction.objects.create(...)` ?
At what point is the callback request triggered ?
On
What you need to appreciate is that the foreign key field gives you the
full record (corresponding to the foreign key).
So, if you fetch all records as course_rating.objects.all() then c.cid will
also be an object giving you the corresponding foreign key record. So, you
can access c.cid.cid
Transaction model:
class WeacceptTransaction(Transaction):
"""Weaccept's Transaction model"""
# before frontend interaction
auth_token = models.TextField() # got from step 1
order_id = models.IntegerField(verbose_name="Accept's Order ID") # id
from step 2
order_url =
Are you sure the callback request passes the right parameters ?
Could you share some of your views code from the 6 steps, and your Transaction
model ?
Sent from my iPhone
> On 21 Aug 2019, at 14:46, Ahmed Shahwan wrote:
>
> Hi,
>
> I have a very strange problem that I don't know why it
Hi,
I have a very strange problem that I don't know why it happens.
I'm creating a REST API service that wraps another REST API payment
service, let's call the other services XPAY. It has various payment options
(Card, eWallet, Kiosk, and Cash). The steps required to use the services
(to make
Hello.
My application is currently in a development state, so it's using SQLite as
a database backend at the moment.
Due to the bad design decisions, my application has a migration with raw
CREATE VIEW statements and unmanaged models. These VIEWs refer other tables
with JOIN clauses.
The
This is my model
class courses(models.Model):
cid = models.UUIDField(default=uuid.uuid4, editable=True, primary_key=True)
course_title = models.CharField(max_length=255, default="")
class course_rating(models.Model):
cr_id = models.BigAutoField(primary_key=True)
cid =
Hi Folks,
I want to implemnet something like if user type any query parameter then
matched string should come first then if the typed words contains in
between records then short length of string should come second and so on,as
an example:
*http://127.0.0.1:8000/get/search/?word=the
Using httpRedirect to d view 4 the URL u want user to b redirected to
On Aug 21, 2019 06:21, "RONAK JAIN" wrote:
> I am trying to redirect my registration page but, I am not getting *please
> check my attached screenshot* and please let me know where I am doing
> wrong...
>
>
>
> On Tue, Aug
40 matches
Mail list logo