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

2022-02-04 Thread Joalbert Palacios
_SAMESITE None LANGUAGE_COOKIE_SECURE False LOCALE_PATHS [] LOGGING {} LOGGING_CONFIG 'logging.config.dictConfig' LOGIN_REDIRECT_URL '/accounts/profile/' LOGIN_URL '/accounts/login/' LOGOUT_REDIRECT_URL None MANAGERS [] MEDIA_ROOT '/home/joalbert/Documents/test/dummy/

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

2022-02-04 Thread Joalbert Palacios
ould be > in the traceback somewhere. Should help narrow down where it's coming from. > Most likely a mistake you made in your settings file concating strings > related to where Django should upload files. > > On Thu, Feb 3, 2022, 2:12 PM Joalbert Palacios wrote: > >

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 '/home/joalbert/Documents/

Re: Ayuda como pasar un sql al ORM Django

2019-12-07 Thread Joalbert Palacios
Hola, por fa revisa lo referente a queryset. Cuando creas un modelo puedes hacer los queries sin necesidad de usar SQL. Si necesitas más detalles por fa envíame la estructura de las tablas y te ayudo con un ejemplo ilustrativo, pero te comento que la documentación de Django está bastante buena en

Re: a variable is not defined

2019-10-18 Thread Joalbert Palacios
Not sure, but I believe that is because scope, given that result variable is defined in the inner method and not defined in search function. On Fri, Oct 18, 2019, 3:49 PM sotiris moustogiannis wrote: > thanks for your help!! > > On Friday, October 18, 2019 at 6:59:05 AM UTC+3, jlgimeno71 wrote:

Re: Should there be separate django app for every user type in a django project?

2019-10-13 Thread Joalbert Palacios
I think you don't need several apps for each user type. You have different ways to approach it, one could be used with permisology policy for each model and each user type in the Django app, other one could be managing the policies by yourself. I suggest to search in Google a entry in the blog sim