Nice but i am always with nginx and i dont know if it has the same problem
or not
On Fri, 15 Nov 2019, 18:02 Patrick Carra, wrote:
> In case anyone is interested I fixed this with some simple regex in my
> view. I identified the patterns for which apache was removing the // and
> replacing
In case anyone is interested I fixed this with some simple regex in my
view. I identified the patterns for which apache was removing the // and
replacing with a single / and then wrote some rules around that and
replaced the single / with the // before passing it to my query.
--
You received
Or send it as a post and finish your problem
On Thu, 14 Nov 2019, 21:59 DANIEL URBANO DE LA RUA, <
dannybombas...@gmail.com> wrote:
> Yes at the moment because is all related to the slash character
>
> On Thu, 14 Nov 2019, 21:57 Patrick Carra, wrote:
>
>> Yea I think what I may have to do is
Yes at the moment because is all related to the slash character
On Thu, 14 Nov 2019, 21:57 Patrick Carra, wrote:
> Yea I think what I may have to do is write some regex in the template to
> catch anytime there is a // and convert it to something that won't
> interfere with the apache/mod_wsgi
Yea I think what I may have to do is write some regex in the template to
catch anytime there is a // and convert it to something that won't
interfere with the apache/mod_wsgi due to the url and then when I pass it
back into my view convert it back to the original in order to perform the
query
>>> r.encoding
'utf-8'
>>> r.encoding = 'ISO-8859-1'
r is your request use different encoding
El jue., 14 nov. 2019 a las 21:29, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:
> https://www.webforefront.com/django/regexpdjangourls.html?
> is maybe something related to your url
https://www.webforefront.com/django/regexpdjangourls.html?
is maybe something related to your url pattern i don't know but something
is wrong because is not working or did you found a solutions?
El jue., 14 nov. 2019 a las 21:21, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:
>
https://docs.djangoproject.com/en/2.2/_modules/django/utils/html/
here you have some tricks to do on your view maybe
El jue., 14 nov. 2019 a las 21:18, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:
> the main problem is tha you have especial character in a url and the
>
the main problem is tha you have especial character in a url and the
codification on an url does this to transport the data and your have to fix
it in the request then
at least tray using urllib.parse from python check some where an example
El jue., 14 nov. 2019 a las 21:15, Patrick Carra ()
I think my assumption was wrong stackoverflow is down right now so I can't
go to the link but it seems like somebody is suggesting this is an
apache/mod_wsgi error
https://code.djangoproject.com/ticket/14346
--
You received this message because you are subscribed to the Google Groups
"Django
No change Daniel I looked that up and I think that is used for something
else. The name makes since but its purpose is for something else.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving
or try to send another unique value it will be easy
El jue., 14 nov. 2019 a las 20:56, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:
> or |escape is the same
>
>
> El jue., 14 nov. 2019 a las 20:55, DANIEL URBANO DE LA RUA (<
> dannybombas...@gmail.com>) escribió:
>
>> {%
or |escape is the same
El jue., 14 nov. 2019 a las 20:55, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:
> {% autoescape on %}
> {{ post.content }}
> {% endautoescape %}
>
>
>
> try this
>
> El jue., 14 nov. 2019 a las 20:53, Patrick Carra ()
> escribió:
>
>> There was no
{% autoescape on %}
{{ post.content }}
{% endautoescape %}
try this
El jue., 14 nov. 2019 a las 20:53, Patrick Carra ()
escribió:
> There was no change after adding |safe after the value within {{}}
> example: class="view-item" title="View">View
>
> --
> You received this message because
There was no change after adding |safe after the value within {{}}
example: View
--
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
then use |safe template tag from django
El jue., 14 nov. 2019 a las 20:44, Patrick Carra ()
escribió:
> and the actual value is OQYX/173774//ZYO but Django is interpreting it as
> OQYX/173774/ZYO/
>
> On Thursday, November 14, 2019 at 1:41:35 PM UTC-6, Patrick Carra wrote:
>>
>> That is a value
That is a value from the table in models called Circuitinfotable and the
field it is pulled from is called circuitid.
--
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
) escribió:
> then use |safe template tag from django
>
> El jue., 14 nov. 2019 a las 20:44, Patrick Carra ()
> escribió:
>
>> and the actual value is OQYX/173774//ZYO but Django is interpreting it
>> as OQYX/173774/ZYO/
>>
>> On Thursday, November 14, 2019 at 1:41:35 PM UTC-6, Patrick Carra
and the actual value is OQYX/173774//ZYO but Django is interpreting it as
OQYX/173774/ZYO/
On Thursday, November 14, 2019 at 1:41:35 PM UTC-6, Patrick Carra wrote:
>
> That is a value from the table in models called Circuitinfotable and the
> field it is pulled from is called circuitid.
>
--
is this your id OQYX/173774/ZYO/ i mean the if from your model?
El jue., 14 nov. 2019 a las 20:33, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:
> mmm sorry you are pasing the id you dont have any weird character let me
> see
>
> El jue., 14 nov. 2019 a las 20:28, DANIEL
mmm sorry you are pasing the id you dont have any weird character let me
see
El jue., 14 nov. 2019 a las 20:28, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:
> ok i didn't see your app name is viewList sorry uset templatetag to scape
> weird character because you are using url
ok i didn't see your app name is viewList sorry uset templatetag to scape
weird character because you are using url encoding
El jue., 14 nov. 2019 a las 20:26, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:
> then use the templatetag |safe
>
> El jue., 14 nov. 2019 a las 18:05,
then use the templatetag |safe
El jue., 14 nov. 2019 a las 18:05, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:
> a href="/viewLit/{{ circuit.circuitid }}" t
>
> and in your urls.py
>
> path(r'/', views.viewLit, name='viewLit'),
>
> El jue., 14 nov. 2019 a las 18:04, DANIEL
Could you provide an example of what you mean? I'm not sure what you mean
by method call must include an object instance as argument. This code
works for other values of circuitid but does not work for one that contains
a //. This tells me, along with the traceback code, that django at some
Daniel thank you but I'm not sure what you mean. The a href link works for
everything so far except in the case that the circuitid contains a //. So
I don't think its that my url's are not routing properly it seems to me
like a // is being interpreted as an escape character. I looked over my
a href="/viewLit/{{ circuit.circuitid }}" t
and in your urls.py
path(r'/', views.viewLit, name='viewLit'),
El jue., 14 nov. 2019 a las 18:04, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:
> check on your a link you are including vieset/ and there is not on your url
>
> El
check on your a link you are including vieset/ and there is not on your url
El jue., 14 nov. 2019 a las 17:17, Integr@te System (<
datacentral...@gmail.com>) escribió:
> Hi Informer,
> check you model Circuitinfotable,
> Method call must include object instance as argument.
>
>
> On Thu, Nov 14,
Hi Informer,
check you model Circuitinfotable,
Method call must include object instance as argument.
On Thu, Nov 14, 2019, 21:42 Patrick Carra wrote:
> I am passing a parameter in a url to another view and during the process
> it gets changed. An original parameter example that produces the
I am passing a parameter in a url to another view and during the process it
gets changed. An original parameter example that produces the error
is OQYX/173774//ZYO but gets changed to '/viewLit/OQYX/173774/ZYO/' It
drops the second / between 173774 and ZYO. I assumed this was because it
was
29 matches
Mail list logo