You are using positional arguments when you should be using named args. Change
the line to
return reverse('blog-detail', kwargs = {‘slug’:item.slug,
‘year’:str(item.blog_published_at.year),
‘month’:str(item.blog_published_at.month),
‘day’:str(item.blog_published_at.day)})
> On Feb 22, 2020,
New to Django.
I'm trying to set up a simple comment form where I can add a title for the
comment, content of the comment, and attach the username of the user that
is currently signed in and posting it.
I run into the following error when running it:
Cannot assign "'john'": "Entry.author" must
Greetings,
Using configure() didn't helped me much. I implemented settings validation
checks by extending system checks and called that validation check function
in tests. This does not required me to make Django Sever perform system
checks again,
On Fri, Feb 28, 2020 at 5:57 PM Naveen Arora
wro
Here:
https://docs.djangoproject.com/en/3.0/topics/auth/default/#django.contrib.auth.views.PasswordChangeView
This line: template_name: The full name of a template to use for displaying
the password change form. Defaults to
registration/password_change_form.html if not supplied.
The "password
>From html make check boxes submit services ids ..
After form submittion the choosen services ids will be submitted as an
array in request.POST or request.GET
Loop through this array , query the model that contain the service price
with each service id , and save all service data in the chosen mo
On Wed, Mar 4, 2020 at 8:40 AM Alaydyn Gholechragh
wrote:
> Hi
> I search a lot in Google to find best methods for uploads big file with
> progressbar to my site and i can't find any solution
> And other things for protecting my file (zip or rar) from Anonymous user..
> Because I want to create a
Hi
I search a lot in Google to find best methods for uploads big file with
progressbar to my site and i can't find any solution
And other things for protecting my file (zip or rar) from Anonymous user..
Because I want to create a web site for selling some files
Please help me and give me best ex
i'm working on a project that render services to client, for client to
subscribe to a package the select service the want after that they click
submit to proceed to payment, now i have the services listed in html, my
challenge is how do i save this selected services to django models
alongside the p
the project is a services subscription platform, i wan to list out services
offered, then user make a selection for the choice the wan, after that the
click submit to make payment, now i have the services listed in html, my
challenge is how do i save this selected services to django models
alongsid
I would the users of my django app to be able to use SSO using their Azure
AD creds. To me SSO means if they have already logged in to something using
their ADA creds then when they go to my django app they get in
without having to enter any creds. I found a few packages that support
logging in wit
Thank you for this hint.
Am Montag, 2. März 2020 23:04:38 UTC+1 schrieb Ernest Thuku:
>
> first I can advice you to learn the function based views. They will give
> you a good foundation of how views work and after that switch to Class
> Based Views(they are magical and easy to use).
>
> On Tue,
Hi all,
We currently send an AMQP message to a RabbitMQ Broker if a certain
condition is met during the request and response cycle. In order to send
the message, we open a connection to the broker, send the message, then
close the connection.
This is clearly not as efficient as it could be, and I
Solution found. For some reason, you must pass the cookie to the session
object itself.
sess = requests.Session()
cj=requests.utils.cookiejar_from_dict(cookie)
sess.cookies=cj
In this post() and get() requests I did not change:
# (3) get to create
r3=sess.get(url, cookies = cookie)
# (4) p
Hi Omar
Actually I do not know why apache is better than the development webserver
from django or gunicorn, but I wanted to give it a try. The installation
worked.
Now I am not sure what I am doing wrong:
gunicorn project/wsgi.py:application
[2020-03-04 13:46:26 +] [28939] [INFO] Starting
saving values of a checkbox to the database
On Wed, Mar 4, 2020 at 1:23 AM Motaz Hejaze wrote:
> Please let me know exactly the problem , i dont remember the case you
> talking about
>
> On Tue, 3 Mar 2020, 8:47 pm Tosin Ayoola, wrote:
>
>> halo.
>> good day to you, thank for you response to m
Details are available on the Django project weblog:
https://www.djangoproject.com/weblog/2020/mar/04/security-releases/
--
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 em
*Versions*
* - Django version: 1.9- Python: 3.5- Django Rest Framework: 3.5.4*
*Error Observed:*
ErrorTraceback (most recent call last):
File "/Users/ds/git/some_repo/integration/test_multiple_login.py", line 32,
in test_two
self.client.force_login(self.user)
File
"/Users/ds/.pyenv/
17 matches
Mail list logo