Re: How to validate xl data

2022-02-14 Thread Sebastian Jung
Hello, Validation is very easy in django. Here a tutorial http://www.learningaboutelectronics.com/Articles/How-to-create-a-custom-field-validator-in-Django.php Sujata Aghor schrieb am Di., 15. Feb. 2022, 06:24: > Hi Prashant, > If you are talking about server side validations, then you can do

Re: collectstatic files chown'ed by root

2022-02-14 Thread Antonis Christofides
Everything works fine except for the collectstatic command (in entrypoint.sh), which creates the "staticfiles" directory but it's owned by root. This is not possible. If "manage.py" is running as a non-root user, it wouldn't be possible for it to create a directory owned by root. Something else

Re: How to validate xl data

2022-02-14 Thread Sujata Aghor
Hi Prashant, If you are talking about server side validations, then you can do that for each row/ cell values before inserting data into db. Regards! On Mon, Feb 14, 2022 at 12:05 PM Prashanth Patelc wrote: > i am working on xl sheets , when im uploading the xl sheet it is storing > into the

Re: collectstatic files chown'ed by root

2022-02-14 Thread Mike Dewhirst
On 14/02/2022 10:14 pm, 'Tim' via Django users wrote: Hi all, I'm deploying Django 4 via docker-compose. For security reasons, the Dockerfile creates a non-root user before running the entrypoint.sh script (which does migrations, collectstatic and starts the server with gunicorn). All app

Migrating from django-redis to Django 4 new redis back-end

2022-02-14 Thread Benedikt Vogler
Hi! I wanted to migrate from django-redis to the new built-in Redis caching back-end. Previously I could access the existing connection with *django_redis.get_redis_connection* to get a redis-py client. For example, explained here

collectstatic files chown'ed by root

2022-02-14 Thread 'Tim' via Django users
Hi all, I'm deploying Django 4 via docker-compose. For security reasons, the Dockerfile creates a non-root user before running the entrypoint.sh script (which does migrations, collectstatic and starts the server with gunicorn). All app files are "chown"ed by this non-root user. Everything

Re: Ajax call not working with X-editable

2022-02-14 Thread Sujata Aghor
> > You must send in all post and ajax post everytime CSRF Token. Please try > it. > Yes ..Yes .. I am sending a csrf token. > When you send it which response you get from django? ajax call is not getting called only. The same ajax call is working for other use cases, but not getting called

Re: Ajax call not working with X-editable

2022-02-14 Thread Sebastian Jung
Hello, You must send in all post and ajax post everytime CSRF Token. Please try it. When you send it which response you get from django? Regards Sujata Aghor schrieb am Mo., 14. Feb. 2022, 07:03: > Hello Django lovers, > > I am trying to use inline edit using X-editable >