Form field filter

2023-02-19 Thread Sergio Alves
ording to the type of pet, vaccines for dog if the type of pet is dog or cat vaccines if the type of pet is cat. How to do this? I'm using Class-based views. Sergio Alves -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Django: ManyToManyField appears as empty on my template

2020-02-19 Thread Sergio Madueño
I'm having an issue displaying a ManyToManyField in a character profile template using Django. The template has to show an avatar, alongside some information about the character, including a list of guilds this character had joined. But, when I try to display that list, it appears as if it is e

Error with channels and celery

2018-04-18 Thread Sergio Lopez
I'm trying to create a chat that when it meets the condition of "hola" is sent by a task in celery. However, when it enters the condition the status is not updated, can someone help me? I leave my code, please help! Mi error is: raise OSError(err, 'Connect call failed %s' % (address,)) Conn

Problem with Channels and Celery... Please help me!

2018-04-17 Thread Sergio Lopez
I'm trying to create a chat that when it meets the condition of "hola" is sent by a task in celery. However, when it enters the condition the status is not updated, can someone help me? I leave my code, please help! Mi error is: > [2018-04-18 01:11:25,798: WARNING/MainProcess] c:\python\lib\s

Re: I have a problem whit new celery and channels

2018-04-17 Thread Sergio Lopez
> > Hi! > > I'm trying to create a chat that when it meets the condition of "hola" is > sent by a task in celery. However, when it enters the condition the status > is not updated, can someone help me? > > > I leave my code, please help me! > > > Please help me, thx! And sorry for my english :s

I have a problem whit new celery and channels

2018-04-17 Thread Sergio Lopez
Hi! I'm trying to create a chat that when it meets the condition of "hola" is sent by a task in celery. However, when it enters the condition the status is not updated, can someone help me? I leave my code, please help me! Please help me, thx! And sorry for my english :s *consumers.py*

Help with Channels 2.x and Celery 4.x

2018-04-16 Thread Sergio Lopez
Hi!! I need a basic example of a program with channels 2.x (Django 2.x) that when it fulfills a condition, it calls a task celery 4.x and updates its status in a message in the html. (for example https://vincenttide.com/blog/1/django-channels-and-celery-example/) But i have the following error

Re: Django 2.0.2, Channels 2.0.2 and Celery 4.1 Issue

2018-04-16 Thread Sergio Lopez
Plese, Can you send us a basic example of celery 4 and channels 2? El viernes, 2 de marzo de 2018, 19:36:08 (UTC+1), G Broten escribió: > > Hi All: > I'm migrating a small application from Django 1.x/Channels 1.x to Django > 2.0.2 and Channels 2.0. I've run into an issue whose cause I'm trying t

Channels - logout not resetting message.user value on new WebSocket connections

2017-03-26 Thread Sergio Diaz
Hello, I'm trying out Channels in Django 1.11 and set up a few consumers, looking like this: @channel_session_user_from_http def ws_connect(message, slug): if message.user.is_authenticated(): message.reply_channel.send({"accept": True}) else: message.reply_channel.send(

Re: Encoding UTF 8 (añ,etc) and datetime function

2014-01-14 Thread Sergio Garcia
Basically a "# coding=utf-8" at begining of your file and saving it with utf-8 will solve your problem. On Tue, Jan 14, 2014 at 4:58 PM, Sergio Garcia wrote: > I had the some problem (Português tem seus acentos :) ) > > > From the Python reference: > > http://www.

Re: Encoding UTF 8 (añ,etc) and datetime function

2014-01-14 Thread Sergio Garcia
I had the some problem (Português tem seus acentos :) ) >From the Python reference: http://www.python.org/dev/peps/pep-0263/ Python will default to ASCII as standard encoding if no other encoding hints are given. To define a source code encoding, a magic comment must be placed

Re: Any Tutorials on Django similar to Web2py ????????????????

2013-08-20 Thread Sergio Infante Montero
people, when confronted with a problem, think “I know, I'll use regular > expressions.” Now they have two problems. > > Jamie Zawinski, in comp.emacs.xemacs > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. &g

Re: Star Rating System In Django

2013-01-10 Thread Sergio Zambrano
I don't know what dJango or agon is, but I created a new rating system using just a font, and css to render e.g. "3.5 out of 5" into three and a half stars, while the html says just that. No divs, no images, no Canvas, no SVG, no JavaScript, no Flash, no extra spans. http://socialblogsitewebde

Re: django-registration - Activate view not works

2011-03-15 Thread Sergio Berlotto Jr
Did not work. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit t

Re: django-registration - Activate view not works

2011-03-14 Thread Sergio Berlotto Jr
I´ll try it.. In my template I wrote the URL manually ! Oh god.. heheh -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-use

Re: django-registration - Activate view not works

2011-03-13 Thread Sergio Berlotto Jr
Well, I'll try the http://django-userena.org becouse django-registration is stoped development since March/2010. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe

Re: django-registration - Activate view not works

2011-03-13 Thread Sergio Berlotto Jr
The variable "activation_key" is blank, with no value, and the result os activation redirect always to activation_failed view. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. T

django-registration - Activate view not works

2011-03-13 Thread Sergio Berlotto Jr
I'm using django-registration. The activation email is generated correctly, but when i'm trying to activate the new user with generated key sent by e-mail, in url http://server.com/accounts/activate/ee3ad866abca8bf0d29d71870a79a3b84cd9c965/ this only returns failure, and not activate the account

Re: how can i define a decimal_separator and a thousand_separator

2010-12-29 Thread Sergio Berlotto Jr
Use the DECIMAL_SEPARATOR, THOUSAND_SEPARATOR and NUMBER_GROUPING settings. See: http://docs.djangoproject.com/en/1.2/ref/settings/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Problems with mod_python and Django

2010-01-03 Thread Sergio Lobo
Hi! I am having a problem to configure mod_python for my Django project. I even created a new project and the problem remains. Below is the relevant part of my http.conf and the error message I get. From what I understand mod_python is not finding my dummy.settings. Any help will be greatly apprec

in modeladmin - show a field to edit only if superuser

2009-10-13 Thread Sergio A.
7;code', ...), ('Product Description', {'fields': ['...]) ... ] how can this be addressed? Thanks, Sergio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

how to get back to a view requiring login

2009-10-11 Thread Sergio A.
I've three views each with different URL. They are visible to logged in users. If a non-logged user tries to access a URL requiring login, I'm able to redirect it to the login page. What I'm missing is how to go back to the initial page, once the user log in the system.

Re: in admin interface - how to edit/show data based on ownership/not ownership

2009-06-14 Thread Sergio A.
I found where to work on. The render_change_form function in the options.py file where the render_change_form is invoked. All the information seem to be available in that context. Sergio On Jun 14, 2:42 pm, "Sergio A." wrote: > I need to identify where to overwrite the template s

Re: in admin interface - how to edit/show data based on ownership/not ownership

2009-06-14 Thread Sergio A.
I need to identify where to overwrite the template selection, and in that place, if I can get current user. I have not found a proper solution yet. Sergio On Jun 11, 10:32 pm, phoebebright wrote: > This post might help > -http://groups.google.com/group/django-users/browse_thread/threa

in admin interface - how to edit/show data based on ownership/not ownership

2009-06-11 Thread Sergio A.
means that I should be able to compare logged user to the data owner and then select a proper template (to change/present) data. Any example on how to do this in the admin module? Thanks, Sergio --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: select template for adminform based on type of user

2009-06-02 Thread Sergio A.
any hint on this issue? Thanks, Sergio On May 29, 12:51 am, "Sergio A." wrote: > Dear all, > > Is it possible to select the template to be applied to an admin form > based on the logged user? > In particular, I've two cases: > > - if super user, a certain

select template for adminform based on type of user

2009-05-28 Thread Sergio A.
user, but the owner of the data, then a third option template should be used I understood that probably the get_form is the right place where to work, but not sure if this can be done. Thanks for your support, Sergio --~--~-~--~~~---~--~~ You received this me

Re: has_add_permission() isn't working properly

2009-05-17 Thread Sergio A.
here it is: http://code.djangoproject.com/ticket/11136 hope this will be considered, since it improves the user experience. Thanks for your feedback, Sergio On May 18, 12:19 am, Alex Gaynor wrote: > On Sun, May 17, 2009 at 5:15 PM, Karen Tracey wrote: > > On Sun, May 17, 2009 a

Re: has_add_permission() isn't working properly

2009-05-17 Thread Sergio A.
B element. Therefore I see a pop-up with permission denied. How to fix this? Cheers, Sergio On Mar 25, 7:14 pm, Alex Gaynor wrote: > 2009/3/25 João Olavo Baião de Vasconcelos > > > > > On Wed, Mar 25, 2009 at 10:25 AM, Karen Tracey wrote: > > >> Probably a missed bi

Re: Django turns?

2009-04-22 Thread Sergio Durand
Hi, Visit swingtime project: http://code.google.com/p/django-swingtime/ Maybe it's what you are looking for... -- Sergio Durand Juanjo Conti escreveu: > Hi! > > I wonder know if there is a Django app suitable to handle turns as the > ones given by a doctor to his paci

Problem to install psycopg

2009-04-16 Thread Sergio González - Paraguay
Hello everybody I'm trying to install psycopg2 in my fedora. this is the error in the command line: [...@machine psycopg2-2.0.9]$ python setup.py build running build running build_py running build_ext error: No such file or directory [...@machine psycopg2-2.0.9]$ Can someone help me please --

Re: Running django on a web hosting account

2009-04-07 Thread Sergio Durand
atik escreveu: > Is there any free hosting site that provide django support? > I know 2 django free hostings: - Google App Engine[1] - you will need adapt somethings in your code. - Always Data[2] - they offer django free host with database and ssh support but it's in french and you will have

latitude/longitude field type

2009-03-15 Thread Sergio
heers, Sergio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django

Re: about checking if CharField value is empty

2009-03-14 Thread Sergio
t;: self._errors["B"] = ErrorList(["B must be filled because A is filled"]) is this ok and independent from all DB backends as opposed to (if A is not None and B is None) which seems not work? Cheers, Sergio On Mar 14, 3:58 am, Malcolm Tredinnick wrote: > On Fri, 2

Re: about checking if CharField value is empty

2009-03-13 Thread Sergio
e? "When using the Oracle database backend, the null=True option will be coerced for string-based fields that have the empty string as a possible value, and the value NULL will be stored to denote the empty string." http://docs.djangoproject.com/en/dev/ref/models

about checking if CharField value is empty

2009-03-13 Thread Sergio
(variable != ""). Am I right? Cheers, Sergio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubsc

Re: Creating a Symbolic Link using Windows

2009-03-06 Thread Sergio Durand
d "***NOT actual severhost info" Look into your settings.py files more specifically on database settings. Tip: use sqlite3 for learning django. It's very simple database easy to configure. Sergio Durand --~--~-~--~~~---~--~~ You received this mes

Re: Creating a Symbolic Link using Windows

2009-03-03 Thread Sergio Durand
snaggz03 escreveu: > Thanks, Sergio. I have now confirmed that dajngo-admin.py is located > in C:\Python2.6\Scripts . So the symlink wasn not what was keepig my > admin site from working properly or at all. I was following along > with the django tutorial from www.djangoproject.com

Re: Creating a Symbolic Link using Windows

2009-03-03 Thread Sergio Durand
Hi, snaggz03 escreveu: > I am attempting to create a database using django on a server which I > did not create so... I was told Python was set up on the server. How > do I determine if djano-admin.py is on my system path? If it is not, > then how do I go about "symlinking to django-admin.py f

Re: Uploading files to subdirectories

2008-05-16 Thread Sergio
;, > file_contents). Adding extra folders to the path (i.e. path = greg/ > holiday.rtf) doesn't work - I assume this is a security restriction. > > I am using the SVN version of Django. Any help would be appreciated. > > Regards, > James > > > > > --

Localflavor and newforms-admin

2008-05-07 Thread Sergio
.py", line 211, in activate _active[currentThread()] = translation(language) File "/usr/lib/python2.5/site-packages/django/utils/translation/trans_real.py", line 200, in translation default_translation = _fetch(settings.LANGUAGE_CODE) File "/usr/lib/python2.5/sit

Access this site - Project Management

2007-12-20 Thread Sergio Laranja
Access this site - Project Management http://sergiolaranja.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To uns