This is obviously some type of security feature to prevent someone from
climbing up a directory. You have ".." in your string for the file path
somewhere.
What is the value of "dir_name" when the exception is raised? It should be
in the traceback somewhere. Should help narrow down where it's comin
Hello Django Family, I hope you all are well and in good Health.
I am trying to generating pdf from webpages, using popen subprocess , but
when i call its
view it generates only login page as pdf,
Here is my view
from projName.settings import BASE_DIR
from subprocess import Popen, PIPE, STDO
Hello everyone.
I have a web application built in Django == 1.11.6, when the migrations
were generated in oracle the sequences are created and they can be modified
and even deleted.
When I update to django 3 and I generate the migrations again, it creates
the sequences with a name similar to
Hi group,
I have been updating my django version so as to cover the last security
patch with django version 3.2 (current version 3.2.12).
Unfortunately, after this update the following exception occurs during
execution of testing:
Detected path traversal attempt in '/home/joalbert/Documents/
At the bottom of your code, you need to include the STATICFILES_DIRS =
[BASE_DIR/""].
This tells django where your static files are
On Thu, Feb 3, 2022, 18:49 Opeyemi Ogunsanya
wrote:
> Move the static folder to the Django app folder
>
> On Thu, Feb 3, 2022, 6:01 PM Serge Alard wrote:
>
>> Than
Ok! Actually I had not looked properly to your file. The line that I had
given was already in STATIC_ROOT. If you have debug=False, then you can run
something like this :
python manage.py runserver --insecure
It will serve your static files while the debug mode is set to false.
On Thu, Feb 3, 202
Move the static folder to the Django app folder
On Thu, Feb 3, 2022, 6:01 PM Serge Alard wrote:
> Thank you for the suggestion but it does not work.
> I add 2 things to make easier your helps :
>
>- the settings and wsgi files are in /www/Web_bridge/ Web_bridge/
>- the static files are i
Thank you for the suggestion but it does not work.
I add 2 things to make easier your helps :
- the settings and wsgi files are in /www/Web_bridge/ Web_bridge/
- the static files are in /www/Web_bridge/static/bridge/
Below an example of connexion.html that calls a static file :
{% extends
Hello,
many thanks for your reply!
Am 02.02.22 um 09:17 schrieb Antonis Christofides:
> It is actually FieldFile.open() that is a wrapper around Storage.open().
> Therefore I think I'd rephrase as follows:
>
> FieldFile is a subclass of File. While File is a wrapper around Python's
> built
Please add this line below static_url
STATICFILES_DIRS = [
'static'
]
On Thu, Feb 3, 2022, 20:53 Serge Alard wrote:
> Hello
>
> I developped a project in Django python that works fine. Thus, I deployed
> my project. Everything works but the static files are not found by the
> application.
> I g
Hello
I developped a project in Django python that works fine. Thus, I deployed
my project. Everything works but the static files are not found by the
application.
I give you below the settings and wsgi files.
*WSGI*
import os
from django.core.wsgi import get_wsgi_application
os.environ.setde
I'm having the same issue starting about 10 minutes ago. For
docs.djangoproject.com and code.djangoproject.com. Root domain works fine.
On Wednesday, February 2, 2022 at 11:24:45 PM UTC-5 Mike Dewhirst wrote:
>
> Error 503 certificate has expired
>
> certificate has expired
>
>
> Guru Mediation:
mysql-connector-python 8.0.27 has another bug (see
https://stackoverflow.com/questions/69900463/django-migration-error-typeerror-sequence-item-1-expected-a-bytes-like-object
)
so I did not try it.
mysql-connector-python 8.0.26 did not have this problem with Django 3.1. So
the bug must have been in
can you observe the same behavior in previous versions of connector? You
listed two patch versions, makes me curious where in the 8.x version line
this works. Likely this is an issue with mysql-connector-python, but with
it being an Oracle product, it doesn't have much internal visibility. So
14 matches
Mail list logo