Re: Help with Python Django Chat

2024-08-05 Thread massimo burlando
I think you used ChatGPT right? On Friday, August 2, 2024 at 3:59:02 PM UTC+2 Tarantula “Menace” wrote: > how can one run this code? > > On Monday 29 July 2024 at 21:48:36 UTC+2 joey buonocore wrote: > >> Hello everyone! I'm currently developing an app which users can chat with >> eachother on,

Django memcached sessions engine over SSL

2018-01-31 Thread massimo
Hi guys, It is possible to use the django.core.cache.backends.memcached.MemcachedCache backend for caching and use it over SSL/TLS ? I'm using Openstack Horizon, and i want to encrypt the connection between the horizon server and the memcached host. Thanks !! -- You received this messag

Django and SQL Server

2016-07-04 Thread Massimo Barbierato
Hi everybody. I have a little problem with SQL Server. I'm using django-pyodbc as db backend but when i run inspectdb it occurs an error because some of the tables in the SQL Server database have unicode chars (an example: the table name is 'Attività'). How can I resolve that? I can't change t

ModelFormSet submit with JQuey

2012-04-14 Thread Massimo Barbierato
I need to submit two "forms" with "jquery" because i don't want to put two input buttons in the template. The problem is that one of them is a model_formset and it needs {{ formset.management_form }}, and i inserted it in the template, but i still receive the error "ValidationError: ManagementF

ModelFormSet submit with JQuey

2012-04-14 Thread Massimo Barbierato
I need to submit two forms with jquery and not with two input buttons. One of them is a model_formset so i have to add {{ form.management_form }}, and i did it, but i still receive the error: "ManagementForm data is missing or has been tampered with". How can i resolve it? Thanks Max -- You

Re: Form Validation and unique_together on update a model

2012-04-13 Thread Massimo Barbierato
Thanks Tom, you're right!!! I solved it passing 'edit' again. Thanks again Max (I'm speculating a little) > > In your code snippet, lines 36-38: > > sale = None > if 'edit' in request.GET: > sale = Sales.objects.get(sale_id=request.GET['edit']) > > When you submit the form again

Form Validation and unique_together on update a model

2012-04-13 Thread Massimo Barbierato
Hi all, i'm new. I searched in the group for answers to my problem, but i didn't find anything :( My problem is this: i have a model with two fields in unique_together, the related ModelForm and the view. When i pass an instance of my model to the form to update it and then save it, i receive

Re: [Django] Error (EXTERNAL IP): /add_comment/10/

2011-05-04 Thread Massimo
Yes, I get an email when someone writes a comment. (Sorry but I do not speak English). If I run with "python manage.py runserver" the email arrives well, if run with apache wsgy the result is the error ! 2011/5/4 Xavier Ordoquy > > Le 4 mai 2011 à 13:44, Aragorn a écrit : > > > HI, > > > > I ca

install admin-files

2011-04-12 Thread Massimo
Hi all, I'm trying to install django-adminfiles, but I have some difficulty understanding a passage: To use django-adminfiles in your Django project: 1) Add 'adminfiles' to your INSTALLED_APPS setting. 2) Make the contents of the adminfiles/media/adminfiles directory available at MEDIA_URL/admin

django and its interactive shell on osx

2010-02-21 Thread Massimo Di Stefano
Hi All, I'm on osx 10.6.x (system python, django trunk, ipython from bazar repository) tring to run the django shell i have : MacBook-Pro-15-di-Massimo-Di-Stefano:geodjango sasha$ python manage.py shellTraceback (most recent call last): File "manage.py", line 11, in