[How to enter the virtual environment created by Django Web Project in VS2019]

2023-03-10 Thread 徐捷耀
Hello, I am Jiao.
  
I would want to know how enter the virtual environment created by "Django 
Web Project" in Visual Studio.

WHAT I DID?
I enter the file path  "~MyProjectname\env\Scripts" and type "activate", 
but nothing happen. Thanks for help!

Jiao

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/0432becc-afd7-43f1-933c-ec51515eaa22n%40googlegroups.com.


How to implement visa card and debit card payment in django

2023-03-10 Thread Ntanda Aloysius
how can I implement payment integartion in my Django ecommerce website

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/237a1781-6ddf-4197-8f9b-baed338bf13an%40googlegroups.com.


You do not have permission to perform this action

2023-03-10 Thread praveen raj
If I add a login required I get the error "You do not have permission to 
perform this action".
How do I solve this problem?
   @login_required
def resolve_all_projects(self,info,**kwargs):
qs = Projects.objects.all()
print(qs.query)
return qs

[image: Capture.PNG]

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/97f7b4c6-56f4-4071-9c6c-67e42db3cd62n%40googlegroups.com.


Re: Trying to render images from database

2023-03-10 Thread Michael Starr
I don't understand what you mean. There are no images. There's no img src 
except in code. I can't just right click on it because it's not there.

And I know the src of the image, because I'm the one who coded it. Also it 
spits it out when I print the coded url. This was all in a previous post in 
this thread.

On Tuesday, March 7, 2023 at 4:09:04 PM UTC-8 Red Plant wrote:

> If not, check each img src using your browser's dev tools.
>
> On Wed, Mar 8, 2023 at 8:07 AM Red Plant  wrote:
>
>> Have you checked each img src?
>>
>> On Wed, Mar 8, 2023 at 6:17 AM Michael Starr  wrote:
>>
>>> I am using FireFox.
>>>
>>> On Tuesday, March 7, 2023 at 2:11:38 PM UTC-8 Michael Starr wrote:
>>>
 this.window.gBrowserInit is undefined ext-browser.js:1134
 get activeTab chrome://browser/content/parent/ext-browser.js:1134
 candidates chrome://extensions/content/parent/ext-tabs-base.js:2091
 next self-hosted:1743
 query chrome://extensions/content/parent/ext-tabs-base.js:2113
 next self-hosted:1743
 from self-hosted:516
 query chrome://browser/content/parent/ext-tabs.js:1000
 query self-hosted:1359
 result resource://gre/modules/ExtensionParent.jsm:1156
 withCallContextData resource://gre/modules/ExtensionParent.jsm:639
 result resource://gre/modules/ExtensionParent.jsm:1155
 withPendingBrowser resource://gre/modules/ExtensionParent.jsm:649
 result resource://gre/modules/ExtensionParent.jsm:1154
 callAndLog resource://gre/modules/ExtensionParent.jsm:1107
 recvAPICall resource://gre/modules/ExtensionParent.jsm:1153
 AsyncFunctionNext self-hosted:810


 On Tuesday, March 7, 2023 at 1:58:12 PM UTC-8 Red Plant wrote:

> What's showing on the browser console?
>
> If you're using chrome, press F12 to open developer tools, then find 
> the console tab.
>
> On Wed, Mar 8, 2023, 1:31 AM Michael Starr  wrote:
>
>> Well, my privilege of posting "" on SO was revoked so I can't get my 
>> questions answered anymore. So I guess I just won't be a developer now. 
>> Or 
>> the alternative, reinvent all code and the internet.
>> The answer the dude gave me wasn't sufficient and he was like, 
>> "Accept the answer!" Devious prick. And then he was like "share your 
>> code 
>> with me!" And what he does is copy your code into his github account and 
>> claim he "helped" you.
>> Blah. What a loser.
>> So anyway, it still shows img alt text BUT now when I upload a photo 
>> into the pet_photo object, it appends a six digit ASCII text thingy to 
>> the 
>> filename, so the filename isn't actually correct even, anymore.
>> So many problems. Django is NOT the api for perfectionists with 
>> deadlines.
>> Mike
>>
>> On Saturday, March 4, 2023 at 3:31:30 PM UTC-8 Michael Starr wrote:
>>
>>> Thank you Sandip. I missed that.
>>>
>>> In any case I have revamped the code with some help from stack 
>>> overflow here 
>>> https://stackoverflow.com/questions/75632266/displaying-an-image-stored-in-a-django-database
>>> However the image alt text instead of the image displays! So weird! 
>>>
>>> class PetOwnerDetailView(DetailView):
>>> model = PetOwner
>>> context_object_name = "owner"
>>> template_name = "pet_owner_profile.html"
>>> def get_context_data(self, *args, **kwargs):
>>> context = super().get_context_data(**kwargs)
>>> pets = Pet.objects.all()
>>> pet_data = {}
>>> for pet in pets:
>>> pet_data[pet] = PetPhoto.objects.filter(pets=pet)
>>> context['pet_data'] = pet_data
>>> return context
>>>
>>> {% extends "base.html" %}
>>> {% block header %}
>>> {% endblock %}
>>> {% block content %}
>>> {{ owner.name }}
>>> {{ owner.age }}
>>> {{ owner.location }}
>>> {{ owner.profile_photo }}
>>> {% for pet in owner.pets.all %}
>>> {{ pet.name }}
>>> {{ pet.animaltype }}
>>> {{ pet.age }}
>>> 
>>> {{ pet.name }} Photos
>>> {% for pet, photos in pet_data.items %}
>>> {{ pet.name }}
>>> {% for photo in photos %}
>>> 
>>> {% endfor %}
>>> {% endfor %}
>>> {% endfor %}
>>> {% endblock %}
>>>
>>> [image: Screenshot 2023-03-04 153038.png]
>>>
>>> So close yet so far! Argh! lol
>>>
>>> Mike
>>>
>>> On Saturday, March 4, 2023 at 1:37:26 AM UTC-8 Sandip Bhattacharya 
>>> wrote:
>>>
 Are you sure this is the right query? This is looking for pet 
 owners with the name “pets”. 

 pets = PetOwner.objects.filter(name = "pets”) 

 Perhaps, you mean: 
 pets =

Re:

2023-03-10 Thread Mir Junaid
what kind of dashboard
and for what purpose


On Fri, 10 Mar 2023 at 11:20, Praveen Kumar 
wrote:

> Hello Team,
>
> Need help on creating one dashboard using Django. Please help me with it.
>
> Thanks &Regards,
> Praveen
> 333286
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/CACdZTY8aAWA_zKQBY_M_yztot33i0rEX6E9arD4y6P-hFXKV9Q%40mail.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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM%2BpT8yAnunx-%2BhyhOS%3D-Vj%3DCQjJtLmyXiguHFrMj229wpu1EQ%40mail.gmail.com.


Need help with Authenticating and Authorizing

2023-03-10 Thread linda jean-philippe
I do not know what I am missing. My login page and register page have 
rendered, but when I try to sign up with new credentials, it does not save. 
And on the Django Admin page, it says invalid password and username with 
each attempt.

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/b9c56cc4-6ab6-4f2b-81f0-48e256ff3685n%40googlegroups.com.


Re: [How to enter the virtual environment created by Django Web Project in VS2019]

2023-03-10 Thread Omkar Parab
Try running 👇 inside the env folder.

.\Scripts\activate




शुक्र, १०, मार्च २०२३, ८:३२ म.उ. ला 徐捷耀 ने  लिहीला:

> Hello, I am Jiao.
>
> I would want to know how enter the virtual environment created by "Django
> Web Project" in Visual Studio.
>
> WHAT I DID?
> I enter the file path  "~MyProjectname\env\Scripts" and type "activate",
> but nothing happen. Thanks for help!
>
> Jiao
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/0432becc-afd7-43f1-933c-ec51515eaa22n%40googlegroups.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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJY8mfzsE%3DknmY3LfnUtTXAq-0NxwNA5PsG4ndOe74iOOzfd4A%40mail.gmail.com.


Re: Need help with Authenticating and Authorizing

2023-03-10 Thread Namanya Daniel
how have you saved your password in registration?

On Fri, 10 Mar 2023 at 18:02, linda jean-philippe <
jeanphilippe.li...@gmail.com> wrote:

> I do not know what I am missing. My login page and register page have
> rendered, but when I try to sign up with new credentials, it does not save.
> And on the Django Admin page, it says invalid password and username with
> each attempt.
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/b9c56cc4-6ab6-4f2b-81f0-48e256ff3685n%40googlegroups.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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP4VW2X_K03C1ZoZZoCVfCbRBia5SX6OqsPygMixPReHWXe75Q%40mail.gmail.com.


Re: Need help with Authenticating and Authorizing

2023-03-10 Thread linda jean-philippe
I created 2 accounts with the django admin page, but the credentials do not work on the login page. When I create new credentials with the register page I made, it doesn’t save. I think it’s supposed to save to the database.On Mar 10, 2023, at 1:06 PM, Namanya Daniel  wrote:how have you saved your password in registration? On Fri, 10 Mar 2023 at 18:02, linda jean-philippe  wrote:I do not know what I am missing. My login page and register page have rendered, but when I try to sign up with new credentials, it does not save. And on the Django Admin page, it says invalid password and username with each attempt.



-- 
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 visit https://groups.google.com/d/msgid/django-users/b9c56cc4-6ab6-4f2b-81f0-48e256ff3685n%40googlegroups.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 discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP4VW2X_K03C1ZoZZoCVfCbRBia5SX6OqsPygMixPReHWXe75Q%40mail.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 discussion on the web visit https://groups.google.com/d/msgid/django-users/C005769D-7154-43A2-9D0E-A9A53A62148F%40gmail.com.


Re: Need help with Authenticating and Authorizing

2023-03-10 Thread Namanya Daniel
1. Have you tried to check from the django admin end, the user is not
saved?
2. If the user is saved, did you create a hashed password before saving
data in your views?

On Fri, 10 Mar 2023 at 21:15, linda jean-philippe <
jeanphilippe.li...@gmail.com> wrote:

> I created 2 accounts with the django admin page, but the credentials do
> not work on the login page. When I create new credentials with the register
> page I made, it doesn’t save. I think it’s supposed to save to the database.
>
> On Mar 10, 2023, at 1:06 PM, Namanya Daniel 
> wrote:
>
> 
>
> how have you saved your password in registration?
>
> On Fri, 10 Mar 2023 at 18:02, linda jean-philippe <
> jeanphilippe.li...@gmail.com> wrote:
>
>> I do not know what I am missing. My login page and register page have
>> rendered, but when I try to sign up with new credentials, it does not save.
>> And on the Django Admin page, it says invalid password and username with
>> each attempt.
>>
>> --
>> 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 visit
>> https://groups.google.com/d/msgid/django-users/b9c56cc4-6ab6-4f2b-81f0-48e256ff3685n%40googlegroups.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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAP4VW2X_K03C1ZoZZoCVfCbRBia5SX6OqsPygMixPReHWXe75Q%40mail.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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/C005769D-7154-43A2-9D0E-A9A53A62148F%40gmail.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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP4VW2XfYKiajXg5GYbEs75BRDLa5aD1%2Bbiii__YnWHT0YyE8w%40mail.gmail.com.


Re: Need help with Authenticating and Authorizing

2023-03-10 Thread linda jean-philippe
Yes the user is saved and I can see it on the django admin page and no I
have not hashed the password.

On Fri, Mar 10, 2023 at 1:33 PM Namanya Daniel 
wrote:

> 1. Have you tried to check from the django admin end, the user is not
> saved?
> 2. If the user is saved, did you create a hashed password before saving
> data in your views?
>
> On Fri, 10 Mar 2023 at 21:15, linda jean-philippe <
> jeanphilippe.li...@gmail.com> wrote:
>
>> I created 2 accounts with the django admin page, but the credentials do
>> not work on the login page. When I create new credentials with the register
>> page I made, it doesn’t save. I think it’s supposed to save to the database.
>>
>> On Mar 10, 2023, at 1:06 PM, Namanya Daniel 
>> wrote:
>>
>> 
>>
>> how have you saved your password in registration?
>>
>> On Fri, 10 Mar 2023 at 18:02, linda jean-philippe <
>> jeanphilippe.li...@gmail.com> wrote:
>>
>>> I do not know what I am missing. My login page and register page have
>>> rendered, but when I try to sign up with new credentials, it does not save.
>>> And on the Django Admin page, it says invalid password and username with
>>> each attempt.
>>>
>>> --
>>> 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 visit
>>> https://groups.google.com/d/msgid/django-users/b9c56cc4-6ab6-4f2b-81f0-48e256ff3685n%40googlegroups.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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAP4VW2X_K03C1ZoZZoCVfCbRBia5SX6OqsPygMixPReHWXe75Q%40mail.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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/C005769D-7154-43A2-9D0E-A9A53A62148F%40gmail.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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAP4VW2XfYKiajXg5GYbEs75BRDLa5aD1%2Bbiii__YnWHT0YyE8w%40mail.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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAeZjhhHaER0308c704JeKrf-P91q8FrF2KjWJpBzwZFmK22bA%40mail.gmail.com.


Re: Need help with Authenticating and Authorizing

2023-03-10 Thread Namanya Daniel
Right there, all the best

On Fri, 10 Mar 2023 at 22:31, linda jean-philippe <
jeanphilippe.li...@gmail.com> wrote:

> Yes the user is saved and I can see it on the django admin page and no I
> have not hashed the password.
>
> On Fri, Mar 10, 2023 at 1:33 PM Namanya Daniel 
> wrote:
>
>> 1. Have you tried to check from the django admin end, the user is not
>> saved?
>> 2. If the user is saved, did you create a hashed password before saving
>> data in your views?
>>
>> On Fri, 10 Mar 2023 at 21:15, linda jean-philippe <
>> jeanphilippe.li...@gmail.com> wrote:
>>
>>> I created 2 accounts with the django admin page, but the credentials do
>>> not work on the login page. When I create new credentials with the register
>>> page I made, it doesn’t save. I think it’s supposed to save to the database.
>>>
>>> On Mar 10, 2023, at 1:06 PM, Namanya Daniel 
>>> wrote:
>>>
>>> 
>>>
>>> how have you saved your password in registration?
>>>
>>> On Fri, 10 Mar 2023 at 18:02, linda jean-philippe <
>>> jeanphilippe.li...@gmail.com> wrote:
>>>
 I do not know what I am missing. My login page and register page have
 rendered, but when I try to sign up with new credentials, it does not save.
 And on the Django Admin page, it says invalid password and username with
 each attempt.

 --
 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 visit
 https://groups.google.com/d/msgid/django-users/b9c56cc4-6ab6-4f2b-81f0-48e256ff3685n%40googlegroups.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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAP4VW2X_K03C1ZoZZoCVfCbRBia5SX6OqsPygMixPReHWXe75Q%40mail.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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/C005769D-7154-43A2-9D0E-A9A53A62148F%40gmail.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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAP4VW2XfYKiajXg5GYbEs75BRDLa5aD1%2Bbiii__YnWHT0YyE8w%40mail.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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAAeZjhhHaER0308c704JeKrf-P91q8FrF2KjWJpBzwZFmK22bA%40mail.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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP4VW2UXPnxm_Lmch18E5jqRNPx-Aprpe2QMe%2B2cVTY-13ey-w%40mail.gmail.com.


Re: static files

2023-03-10 Thread André Hangalo
Show your settings file configuration!

On Fri, 10/03/2023 at 22:14 Usra Saeed  wrote:

> Hi,  I am uing django 3.2. My template and static folder are in the main
> directory.  But my static files are not loading.
> I have one app. In this I have one template name "signin.html". I am using
> {% extends "base.html" %}
> {% load static %}
> {% block content %}
>  Hello World 
>
> {% endblock %}
>
> In main directory template folder I have base.html .
>
>
>
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/759ee88b-13f6-457b-8abf-1212b30b6628n%40googlegroups.com
> 
> .
>
-- 
RICK DEU

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/CACQ9QcF-AfLAV1ZoMDXWyuT2-WYjtWShc0U8quw84NSUKbRg%3Dw%40mail.gmail.com.