Re: Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-03 Thread Jacob Greene
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

Login page download as pdf instead of the other url page.

2022-02-03 Thread Aadil Rashid
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,

Oracle database sequences generated by Django

2022-02-03 Thread Harold Achipiz
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

Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-03 Thread Joalbert Palacios
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

Re: Static files not found

2022-02-03 Thread Muhammad Muhammad inuwa
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: > >>

Re: Static files not found

2022-02-03 Thread Lakshyaraj Dash X-D 25
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,

Re: Static files not found

2022-02-03 Thread Opeyemi Ogunsanya
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

Re: Static files not found

2022-02-03 Thread Serge Alard
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

Re: Resource leaks from FieldFile's implicit open?

2022-02-03 Thread Carsten Fuchs
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 >

Re: Static files not found

2022-02-03 Thread Lakshyaraj Dash X-D 25
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

Static files not found

2022-02-03 Thread Serge Alard
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

Re: Django docs failing with search docs - certificate has expired

2022-02-03 Thread Will
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:

Re: Potential bug: mysql-connector-python Django 3.2.11 and third-party packages that populate the Admin Site

2022-02-03 Thread Richard Mayebo
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

Re: Potential bug: mysql-connector-python Django 3.2.11 and third-party packages that populate the Admin Site

2022-02-03 Thread Jason
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.