Re: Improperly Configured at /blog/write/

2021-03-19 Thread Omkar Parab
Post the screen-shot of app/urls.py file. On Sat, Mar 20, 2021, 4:05 AM Noyon Barman wrote: > > > On Sat, Mar 20, 2021 at 4:00 AM Anornymous u > wrote: > >> Send the error displayed on the browser in red >> >> On Sat, Mar 20, 2021, 00:54 Noyon Barman >> wrote: >> >>> >>> >>> On Sat, Mar 20, 20

Re: Improperly Configured at /blog/write/

2021-03-19 Thread Anornymous u
Bro, I mean send me the error displayed on the browser in red, that will help a little bit. On Sat, Mar 20, 2021, 01:36 Noyon Barman wrote: > > > On Sat, Mar 20, 2021 at 4:00 AM Anornymous u > wrote: > >> Send the error displayed on the browser in red >> >> On Sat, Mar 20, 2021, 00:54 Noyon Bar

Re: View / Query Set not showing with filter

2021-03-19 Thread Héctor Alonso Lozada Echezuría
my friend, I'm checking your code, and I can't continue without seeing the template and how you make the request. However I will try to make a dissection of the code to evaluate what happens, so I will forward your code to you in the pastebin link with some notes: https://pastebin.com/QbxqcTrh N

Auto assigning using python/Django

2021-03-19 Thread Azharul Islam Somon
Hello there, Have a safe day. I am making a supporting app, which will take the problem from the customer, and our staff team will response to the customer with a solution. So, If a customer sends problem, i want to distribute the problem among our staff equally. Suppose, customer A , write a p

Re: View / Query Set not showing with filter

2021-03-19 Thread Arisophy
Hi Manuelf I understand what you say. Now, I think It's not the problem of Querym , too. The problem is that field data is not displayed in HTML. You use the wrong variable name "office" in Template. try this. (View) context['office'] = ↓ context['offices'] = ... (Template) × {% for off

Re: Improperly Configured at /blog/write/

2021-03-19 Thread Noyon Barman
On Sat, Mar 20, 2021 at 4:00 AM Anornymous u wrote: > Send the error displayed on the browser in red > > On Sat, Mar 20, 2021, 00:54 Noyon Barman > wrote: > >> >> >> On Sat, Mar 20, 2021 at 3:31 AM Noyon Barman >> wrote: >> >>> >>> >>> On Sat, Mar 20, 2021 at 3:26 AM Héctor Alonso Lozada Echezu

Re: View / Query Set not showing with filter

2021-03-19 Thread Manuel Buri
*Booking Model* from django.db import models from django.utils import timezone from users.models import Account from organization.models import Organization, Office class Booking(models.Model): LOCATION_OPTIONS = ( ('H', 'Home Office'), ('O', 'Office'), ('N

Re: View / Query Set not showing with filter

2021-03-19 Thread Héctor Alonso Lozada Echezuría
Can you share your "Booking" model and the view (function or class) that renders the template?, and I beg you, please use pastebin.com for share your code :D El vie, 19 mar 2021 a las 16:17, Manuel Buri () escribió: > @anornymou...@gmail.com and ima...@gmail.com > your suggestion is unfortunately

Re: View / Query Set not showing with filter

2021-03-19 Thread Manuel Buri
@anornymou...@gmail.com and ima...@gmail.com your suggestion is unfortunately not working too @All: So as said my queryset is not empty, meaning that the query works. However, the results is not in the rendered HTML file. This would imply that with my template is something wrong, don't you think?

Re: Improperly Configured at /blog/write/

2021-03-19 Thread Anornymous u
Send the error displayed on the browser in red On Sat, Mar 20, 2021, 00:54 Noyon Barman wrote: > > > On Sat, Mar 20, 2021 at 3:31 AM Noyon Barman > wrote: > >> >> >> On Sat, Mar 20, 2021 at 3:26 AM Héctor Alonso Lozada Echezuría < >> ima...@gmail.com> wrote: >> >>> Exactly >>> >>> El vie, 19 ma

Re: Improperly Configured at /blog/write/

2021-03-19 Thread Anornymous u
Delete the keyword argument commit=False On Sat, Mar 20, 2021, 00:39 Noyon Barman wrote: > > > On Sat, Mar 20, 2021 at 3:26 AM Héctor Alonso Lozada Echezuría < > ima...@gmail.com> wrote: > >> Exactly >> >> El vie, 19 mar 2021 a las 15:25, Anornymous u () >> escribió: >> >>> Line 17 not 14 >>> >>

Invalid filter: 'unlocalize' (Django 3.1.7, Python 3.7.3)

2021-03-19 Thread Jaap van Wingerde
I try to use the filter 'localize' in a template. Django says 'TemplateSyntaxError': TemplateSyntaxError at /beelden-en-glas/zomergeluid/ Invalid filter: 'unlocalize' Request Method: GET Request URL

Re: View / Query Set not showing with filter

2021-03-19 Thread Thomas Lockhart
Why use Q? afaict simple filter syntax should get you what you want. Booking.objects.filter(organization_id=request.user.organization_id, booking_time__range= (start_date, end_date)) Not sure if this will get you closer to the query you expect. You might also find it useful to use "./manage.py

Re: Improperly Configured at /blog/write/

2021-03-19 Thread Héctor Alonso Lozada Echezuría
Exactly El vie, 19 mar 2021 a las 15:25, Anornymous u () escribió: > Line 17 not 14 > > On Sat, Mar 20, 2021, 00:22 Héctor Alonso Lozada Echezuría < > ima...@gmail.com> wrote: > >> Line 14: fields not feilds >> >> El vie, 19 mar 2021 a las 15:17, Noyon Barman () >> escribió: >> >>> What happens h

Re: Improperly Configured at /blog/write/

2021-03-19 Thread Anornymous u
Line 17 not 14 On Sat, Mar 20, 2021, 00:22 Héctor Alonso Lozada Echezuría wrote: > Line 14: fields not feilds > > El vie, 19 mar 2021 a las 15:17, Noyon Barman () > escribió: > >> What happens here? How do I solve this problem? >> >> -- >> You received this message because you are subscribed to

Re: Improperly Configured at /blog/write/

2021-03-19 Thread Anornymous u
Share source for blog model On Sat, Mar 20, 2021, 00:17 Noyon Barman wrote: > What happens here? How do I solve this problem? > > -- > 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

Re: Improperly Configured at /blog/write/

2021-03-19 Thread Héctor Alonso Lozada Echezuría
Line 14: fields not feilds El vie, 19 mar 2021 a las 15:17, Noyon Barman () escribió: > What happens here? How do I solve this problem? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving em

Re: View / Query Set not showing with filter

2021-03-19 Thread Anornymous u
Yes, I this can work On Sat, Mar 20, 2021, 00:17 Héctor Alonso Lozada Echezuría wrote: > I think you should reconsider the query > > context['bookings']=Booking.objects.filter(Q(organization_id=request.user.organization_id), > Q(booking_time__date__gte=start_date), > Q(booking_time__date__lte=e

Re: View / Query Set not showing with filter

2021-03-19 Thread Héctor Alonso Lozada Echezuría
I think you should reconsider the query context['bookings']=Booking.objects.filter(Q(organization_id=request.user.organization_id), Q(booking_time__date__gte=start_date), Q(booking_time__date__lte=end_date))) El vie, 19 mar 2021 a las 15:14, Héctor Alonso Lozada Echezuría (< ima...@gmail.com>) es

Re: View / Query Set not showing with filter

2021-03-19 Thread Héctor Alonso Lozada Echezuría
https://docs.djangoproject.com/en/3.1/ref/models/querysets/#range [image: image.png] El vie, 19 mar 2021 a las 15:12, Manuel Buri () escribió: > I want to fetch all bookings for the users organization_id between > start_date and end_date. > I am achieving this via this queryset, however, as soon

Re: View / Query Set not showing with filter

2021-03-19 Thread Manuel Buri
I want to fetch all bookings for the users organization_id between start_date and end_date. I am achieving this via this queryset, however, as soon as I add the second filter (*bold*), it is not rendered in the template anymore and I, therefore, do not see it in my HTML file. context['bookings']=Bo

Re: View / Query Set not showing with filter

2021-03-19 Thread Anornymous u
I mean what you want to fetch and the conditions On Fri, Mar 19, 2021, 16:01 Manuel Buri wrote: > Hi, > > I am having this query set in my view: > context['bookings']=Booking.objects.filter( > Q(organization_id=request.user.organization_id), *Q(booking_time__range= > (start_date, end_date))*) >

Re: View / Query Set not showing with filter

2021-03-19 Thread Anornymous u
Tell us exactly what you are looking for from your query On Fri, Mar 19, 2021, 16:01 Manuel Buri wrote: > Hi, > > I am having this query set in my view: > context['bookings']=Booking.objects.filter( > Q(organization_id=request.user.organization_id), *Q(booking_time__range= > (start_date, end_dat

Re: View / Query Set not showing with filter

2021-03-19 Thread Manuel Buri
the field is this (copied from my Model): booking_time= models.DateTimeField(default=timezone.now) sent from my phone. sorry for typos. On Fri, 19 Mar 2021, 21:28 Anornymous u, wrote: > What is the name of the field, this part that reads range > > On Fri, Mar 19, 2021, 16:01 Manuel Bu

Re: View / Query Set not showing with filter

2021-03-19 Thread Anornymous u
What is the name of the field, this part that reads range On Fri, Mar 19, 2021, 16:01 Manuel Buri wrote: > Hi, > > I am having this query set in my view: > context['bookings']=Booking.objects.filter( > Q(organization_id=request.user.organization_id), *Q(booking_time__range= > (start_date, end_da

Re: View / Query Set not showing with filter

2021-03-19 Thread Manuel Buri
Hi Tom, thanks for getting back to me. As said, it is super weird: both start_date and end_date are both datetime.datetime. furthermore the queryset is as said non-empty: ), 'location': 'H'}, {'id': 10, 'account_id': 4, 'organization_id': 11, 'office_id': 1, 'booking_time': datetime.datetime(2021

Re: View / Query Set not showing with filter

2021-03-19 Thread Thomas Lockhart
Almost certainly start_date and end_date are not what you expect. Do the types match? In any case print them out and see what you are actually getting. hth - Tom > On Mar 19, 2021, at 6:00 AM, Manuel Buri wrote: > > Hi, > > I am having this query set in my view: > context['bookings']=Bookin

Re: View / Query Set not showing with filter

2021-03-19 Thread Manuel Buri
Hi Nagaraju May I ask if your question is related to my post? Thanks a lot, Manuel sent from my phone. sorry for typos. On Fri, 19 Mar 2021, 19:10 Nagaraju Singothu, wrote: > Dear connectors, > > Please let me know, what is double tap in python?. Any tutorials > available in YouTube. > >

Re: View / Query Set not showing with filter

2021-03-19 Thread Nagaraju Singothu
Dear connectors, Please let me know, what is double tap in python?. Any tutorials available in YouTube. On Fri 19 Mar, 2021, 6:31 PM Manuel Buri, wrote: > Hi, > > I am having this query set in my view: > context['bookings']=Booking.objects.filter( > Q(organization_id=request.user.organizati

load standard user settings per view

2021-03-19 Thread sebasti...@gmail.com
Hello, i have a addresslistview that also take parameter like pagingsize and ordering over url. For example https://localhost:8000/addresslist?pagingsize=25&ordering=Id Now when a user get a request like https://localhost:8000/addresslist?pagingsize=25&ordering=Id then parameter ?pagingsize=2

Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-19 Thread Anornymous u
Yoh, join WhatsApp group and share error https://chat.whatsapp.com/Fb4d6Ivkio7H3EXKxNFI5q On Thu, Mar 18, 2021, 21:47 Kasper Laudrup wrote: > On 18/03/2021 19.04, Simon Lankwagh wrote: > > I have installed python 3.9 and selected 'add to path' during > > installation, i am now trying to install

Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-19 Thread choyon saha
Please chack does you install django if not Install pip install django On Fri, Mar 19, 2021, 4:44 PM Simon Lankwagh wrote: > > thank you all, i created a virtual environment and installed it. > > On Thursday, March 18, 2021 at 9:20:56 PM UTC+1 ule...@gmail.com wrote: > >> After installing python

Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-19 Thread Joao Frankmann
How are you trying to install Django? Globaly? or on a Virtual Enviroment? Try to install on a Venv. Did you install python 3.9 in a new machine or did you have any previous versions installed on it? Try to remove any previous python version installed. Can you please post the errors here, so it

Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-19 Thread Rizky Muhammad Faris Prakoso
Install pipenv then type this in powershell : pipenv install --python 3.9 pipenv install django On Fri, Mar 19, 2021 at 1:10 AM Simon Lankwagh < simmonshasbounced...@gmail.com> wrote: > I have installed python 3.9 and selected 'add to path' during > installation, i am now trying to install djang

View / Query Set not showing with filter

2021-03-19 Thread Manuel Buri
Hi, I am having this query set in my view: context['bookings']=Booking.objects.filter( Q(organization_id=request.user.organization_id), *Q(booking_time__range= (start_date, end_date))*) It produces a *non-empty* query set! However, I am NOT able to display it in my template. If I get *rid* of

Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-19 Thread Simon Lankwagh
thank you all, i created a virtual environment and installed it. On Thursday, March 18, 2021 at 9:20:56 PM UTC+1 ule...@gmail.com wrote: > After installing python, you have to install PIP. > To install PIP type in the following: > python get-pip.py > > To install django tye in the following : >

Re: 2 Almost equal Context with non-empty query set: 1 works, 1 returns nothing

2021-03-19 Thread Manuel Buri
thank you so much Arisophy. I am not able to fix the problem with your suggestions. Please be aware that I am not having any empty query sets while filtering etc. So it must be a problem with getting the context to HTML, however, it is super weird, because as long as I am not filtering for a dat

Re: File Input from User

2021-03-19 Thread Kumar Gaurav
I made one separate table for storing all the image sets and I am able to view it on the template. But while uploading, how to assign it to the post file input, there I am stuck ?? The post image field is configured to get image from the user's system. On Friday, March 19, 2021 at 12:15:18 PM