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xqsFxnAhnecjdMCv/TJLXMNk9LihEeUEZo
4U7bitCfyO17dt6NC/7wbGZCJmNPO7V3YYeI8MwzOkvmXqLcHz0IPQATuLMB1HKr
oG/Vrwq029ftqnuDluS/DzmuIqWLuAT+2nIe1JLWFlS9OUTi4i+y0NDlxWCZOaGp
ucR+ueFKv1de3nVjdd6oN+MIO9gQ3NE53FrO46A3APy6Ex02Mxub8nNnQjXcStHZ
BHO6KilQ+QLzSektD8IpHM7tR6P+5PP6AQ==
=NePe
-----END PGP PUBLIC KEY BLOCK-----
On 29/05/2023 04.24, Obiorah Callistus wrote:
> please how can i display .css and .js files in my template
>
Have you considered reading the documentation?
Kind regards,
Kasper Laudrup
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ce267e59-2518-f897-d1b4-be148feaef98%40stacktrace.dk.
Monday, May 29, 2023
Re: UPLOAD STATIC FILES
Load static
Open a folder call it static then open another file within the static forder.
Now type {load static/custom.css }on the html file it will see the static that has the css and javascript file
On Mon, May 29, 2023, 4:31 PM Obiorah Callistus <ockpaul1@gmail.com> wrote:
please how can i display .css and .js files in my template --
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5a2ceeec-20f1-46aa-98b9-717c9965b82dn%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEXS5w%2B5m5ASCFR0YL%3Dt7CPWk%3DM__UVtTtHfLyJ1xcBZzFaEXw%40mail.gmail.com.
Sunday, May 28, 2023
Re: 'WSGIRequest' object has no attribute 'Files'
Your python script should use
Request.FILES to get the MemoryUploadedFiles from your form.
On Sat, May 27, 2023, 9:51 PM Ryan Nowakowski <ryan@fattuba.com> wrote:
--I believe it should be all lower case request.filesOn May 22, 2023 4:36:36 AM AKDT, Sanket Chudasama <sanket.dev025@gmail.com> wrote:p_form = ProfileUpdateForm(data= request.POST, files= request.Files, instance = request.user)On Tuesday, 16 April 2019 at 12:35:15 UTC+5:30 Soumen Khatua wrote:Hi Folks,
I'm getting this error 'WSGIRequest' object has no attribute 'Files' and i didn't get proper solution in google also. I alredaty took enctype="multipart/form-data" in my forms tag. Here is my code snippet please provide me the solution it's urgent.Thank you in advance..html<form class="" method="post" enctype="multipart/form-data">{% csrf_token %}{{ p_form.as_p }}<input type="submit" name="" value="Change"></form>models.pyclass Profile(models.Model):user = models.OneToOneField(User, on_delete=models.CASCADE)bio = models.TextField(blank=True, null=True)image = models.ImageField(default='profile/default.jpg', upload_to='profile')views.pydef profile_view(request):if request.method == 'POST':print("this is update form post method")p_form = ProfileUpdateForm(request.POST,request.Files,instance = request.user.profile)if p_form.is_valid():p_form.save()return redirect('profile')Error:'WSGIRequest' object has no attribute 'Files'
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/81312FDA-D855-460D-8F04-04CB112F629E%40fattuba.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJ4Kmg6j49X8ioUAB5NMyHrPjjEoMJBLmGjxFG%3DpZ7Om8vptdQ%40mail.gmail.com.
Saturday, May 27, 2023
Re: 'WSGIRequest' object has no attribute 'Files'
Files is all uppercase ,see https://docs.djangoproject.com/en/1.11/ref/request-response/#django.http.HttpRequest.FILES
On Sun, May 28, 2023, 2:21 AM Ryan Nowakowski <ryan@fattuba.com> wrote:
--I believe it should be all lower case request.filesOn May 22, 2023 4:36:36 AM AKDT, Sanket Chudasama <sanket.dev025@gmail.com> wrote:p_form = ProfileUpdateForm(data= request.POST, files= request.Files, instance = request.user)On Tuesday, 16 April 2019 at 12:35:15 UTC+5:30 Soumen Khatua wrote:Hi Folks,
I'm getting this error 'WSGIRequest' object has no attribute 'Files' and i didn't get proper solution in google also. I alredaty took enctype="multipart/form-data" in my forms tag. Here is my code snippet please provide me the solution it's urgent.Thank you in advance..html<form class="" method="post" enctype="multipart/form-data">{% csrf_token %}{{ p_form.as_p }}<input type="submit" name="" value="Change"></form>models.pyclass Profile(models.Model):user = models.OneToOneField(User, on_delete=models.CASCADE)bio = models.TextField(blank=True, null=True)image = models.ImageField(default='profile/default.jpg', upload_to='profile')views.pydef profile_view(request):if request.method == 'POST':print("this is update form post method")p_form = ProfileUpdateForm(request.POST,request.Files,instance = request.user.profile)if p_form.is_valid():p_form.save()return redirect('profile')Error:'WSGIRequest' object has no attribute 'Files'
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/81312FDA-D855-460D-8F04-04CB112F629E%40fattuba.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BZJHEoSCMeLPmcYf148iK0ACDPmGx9_gB6zkNav_UBNdmNtmg%40mail.gmail.com.
Re: 'WSGIRequest' object has no attribute 'Files'
I believe it should be all lower case request.files
On May 22, 2023 4:36:36 AM AKDT, Sanket Chudasama <sanket.dev025@gmail.com> wrote:
p_form = ProfileUpdateForm(data= request.POST, files= request.Files, instance = request.user)On Tuesday, 16 April 2019 at 12:35:15 UTC+5:30 Soumen Khatua wrote:Hi Folks,
I'm getting this error 'WSGIRequest' object has no attribute 'Files' and i didn't get proper solution in google also. I alredaty took enctype="multipart/form-data" in my forms tag. Here is my code snippet please provide me the solution it's urgent.Thank you in advance..html<form class="" method="post" enctype="multipart/form-data">{% csrf_token %}{{ p_form.as_p }}<input type="submit" name="" value="Change"></form>models.pyclass Profile(models.Model):user = models.OneToOneField(User, on_delete=models.CASCADE)bio = models.TextField(blank=True, null=True)image = models.ImageField(default='profile/default.jpg', upload_to='profile')views.pydef profile_view(request):if request.method == 'POST':print("this is update form post method")p_form = ProfileUpdateForm(request.POST,request.Files,instance = request.user.profile)if p_form.is_valid():p_form.save()return redirect('profile')Error:'WSGIRequest' object has no attribute 'Files'
Friday, May 26, 2023
Re: Tokenized Authentication for subdomains
On Thu, May 25, 2023 at 7:35 AM André Lewis <iamandrelewis@gmail.com> wrote:
--Hi,I'm currently working on a project with subdomains, and I wanted to authenticate the user across the site, regardless of the url. I did some digging and found some ideas for implementing Oauth/openID connect authentication in Django (wasn't much help). Seeing, I don't intend on using third-party providers for this one.I have an idea of how it should work 'on paper', but it gets fuzzy when I start thinking about server-end verification; how the token is generated, and how I get access to it for later verification.Any suggestions, would be really helpful?Thanks in advance.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJN6x_gEgbE87yg0NpzhS_Rr_BEwWwo7HkWT02JRccfCfWS2Gw%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACaE8x4AXKD7AUqk2%2B4Ck_%2Bp-zc5jOW%2BVDDXF7NMVLm6%3DYkW%3DQ%40mail.gmail.com.
Re: Tokenized Authentication for subdomains
Do all the subdomains share a common domain? Ex:
sub1.example.com
sub2.example.com
...
sub1.example.com
sub2.example.com
...
On May 24, 2023 6:05:21 PM AKDT, "André Lewis" <iamandrelewis@gmail.com> wrote:
Hi,I'm currently working on a project with subdomains, and I wanted to authenticate the user across the site, regardless of the url. I did some digging and found some ideas for implementing Oauth/openID connect authentication in Django (wasn't much help). Seeing, I don't intend on using third-party providers for this one.I have an idea of how it should work 'on paper', but it gets fuzzy when I start thinking about server-end verification; how the token is generated, and how I get access to it for later verification.Any suggestions, would be really helpful?Thanks in advance.
Subscribe to:
Posts (Atom)