Setting recipient name in EmailMultiAlternatives

2023-03-27 Thread Sylvain
Hello, I’m using the following code to send mails to my users, with their name appearing in the `To` header: msg = EmailMultiAlternatives(subject=subject, body=body, to=f"{user.get_full_name()} <{user.email}>") msg.send() It works fine but if you have a special character in your name (such as

Re: Using a lazy value in a queryset filter?

2022-06-17 Thread Sylvain
leaned_data["confirm"]: delete_form.save() return redirect(...) else: return render(request, "delete_confirm.html", {"form": delete_form}) ... On Sunday, June 12, 2022 at 11:14:41 PM UTC+2 Ryan Nowakowski wrote: > On Sun, Jun 1

Using a lazy value in a queryset filter?

2022-06-12 Thread Sylvain
queryset call to the form __init__? Using django.utils.functional.lazy doesn’t work either because the value needs to be resolved in the filter. Thanks! Sylvain -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

DEPLOYEMENT

2019-03-25 Thread Sylvain Tshiasuma
Salut, tous Je suis tout nouveau Quelqu'un peut m'aider à comment heberger mon site sur webfaction.com? Someone can help me to deploy my site on webfaction.com? -- You received this message because you are subscribed to the

Test database issue when multiple database

2017-01-13 Thread Sylvain Duquenne
this issue before? Let me know what you think about it before I create a bug report. Thanks in advance, Sylvain -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send a

Re: Drawback of delete all migrations file

2016-12-09 Thread Sylvain Dégué
NVM i read loaddata documentation Le vendredi 9 décembre 2016 19:49:50 UTC-5, Sylvain Dégué a écrit : > > Thanks guy!!But how do I reload the my previous data to the new database > if the model changed?? > > Le vendredi 9 décembre 2016 13:39:50 UTC-5, Sylvain Dégué a écrit : &g

Re: Drawback of delete all migrations file

2016-12-09 Thread Sylvain Dégué
Thanks guy!!But how do I reload the my previous data to the new database if the model changed?? Le vendredi 9 décembre 2016 13:39:50 UTC-5, Sylvain Dégué a écrit : > > Im about to lauch a project that uses django for the api. So im only using > the admin side for now. Ive been havin

Drawback of delete all migrations file

2016-12-09 Thread Sylvain Dégué
Im about to lauch a project that uses django for the api. So im only using the admin side for now. Ive been having problem concerning the database and forms. Ive made many mistake while updating the database, when certain field didnt allow null. It caused IntegrityError, which I was able to fix

Re: cant start a new project ,just installed django

2016-10-03 Thread Sylvain Dégué
What Django & python version do you have? Le lundi 3 octobre 2016 19:07:03 UTC-4, new user a écrit : > > followed the intro: > https://docs.djangoproject.com/en/1.10/intro/tutorial01/ > > when i run django-admin startproject mysite > > its prompt : "manage.py already exists, overlaying a project o

Composite pattern for models

2016-10-03 Thread Sylvain Dégué
Hi, I was wondering if it was possible to apply the Composite Pattern in the models. If yes, how? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop re

Re: How to Let a User add a Video not a image as a post?

2016-09-04 Thread Sylvain GROS-DESORMEAUX
Hi, have you even tried to search using google? https://pypi.python.org/pypi/django-embed-video https://djangopackages.org/grids/g/video/ https://github.com/jazzband/django-embed-video You're welcome. 2016-09-01 10:53 GMT-04:00 djangorobert : > I have researched this issue with django for yea

Django Rest Framework inside of Django Project

2016-08-26 Thread Sylvain Dégué
Hi, I am building a mobile application and I need a Rest API and a web version of my app. So I was wondering if I could make a website with Django Rest Framework or if I have create a Django project for my website and a Django Rest Framwork for my API -- You received this message because you

Rest Api NoSql

2015-08-22 Thread Sylvain Chateau
I'm looking for an app that allows to do a Rest API. However I need to use MongoDB with this Rest Api I saw django-rest-framework-mongoengine and django-tastypie-mongoengine. But these project seems like they are dying. Maybe is a good choice to use them I need some advice and maybe they will

Re: Invalid syntax in url.py

2015-08-07 Thread Sylvain James
= [ url(r'^$', newsletter_views.home, name="home") # url(r'^admin/', include(admin.site.urls)), Hope it helps, Sylvain Le jeudi 6 août 2015 21:57:45 UTC+2, Matthew Yankey a écrit : > > this is the url.py > > > from django.conf.u

Re: Python Nested For Looping MultiTable Association Question

2014-05-07 Thread Sylvain GROS-DESORMEAUX
use == instead of = in your if statement. On Wed, May 7, 2014 at 4:18 PM, G Z wrote: > out of my stupidity i refined it a bit > > {% for e in customers %} > {% for d in vms %} > {% if e.id = d.CUSTOMERID %} > {{

Can't get the CsrfMiddleware to work with Ajax requests

2009-02-26 Thread Sylvain
Hello everybody, I've been hitting my head against the walls for the last two days because I can't figure out what I'm doing wrong with this middleware. I added the middleware in my MIDDLEWARE_CLASSES that way : MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.

Set a URL to be handled by PHP

2009-02-20 Thread Sylvain
Hi everybody, I'm looking for a way to handle a given URL with PHP. For the moment, the root URL is handled by mod_python as explained in the docs : SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE myproject.settings PythonPath

Re: Cookie authentication

2009-02-10 Thread Sylvain
Hello everybody, I still haven't found any solution for this problem, although it seems quite simple and common... any idea ? Thank you ! On 26 jan, 13:15, Sylvain wrote: > Hello everybody, > > I'm trying to create a cookie-based authentication so that the users > do

Cookie authentication

2009-01-26 Thread Sylvain
Hello everybody, I'm trying to create a cookie-based authentication so that the users don't have to login each time they visit the website. I'm already using django.contrib.auth to log the users in and it works pretty well with a custom authentication backend (because I'm importing the users from

get_profile() generates a huge amount of queries

2008-09-06 Thread Sylvain
Hi everybody, Today I wanted to add an "avatar" feature to my app, so I created a user profile and put a "get_avatar" method which retrieves the Punbb avatar of the user. Now I'm able to display the users' avatars next to their usernames in their comments, which is nice. What is not nice is that

Re: ContentTypes Framework and generic relations : no index on object_id ?

2008-09-06 Thread Sylvain
Hi Bruno, first of all thanks for your anser. On 6 sep, 01:13, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 5 sep, 23:52, Sylvain <[EMAIL PROTECTED]> wrote: > > > Hi everybody, > > > Today I was hunting down some serious performance problems in my app

ContentTypes Framework and generic relations : no index on object_id ?

2008-09-05 Thread Sylvain
Hi everybody, Today I was hunting down some serious performance problems in my app and I found something pretty "confusing". I realized that, when creating generic relations with the ContentTypes framework (http:// docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#id1) Django does create a

Look at my city!

2007-09-03 Thread Sylvain
Hi everyone! I've just created my city, in France. You can visit it here : http://val-daxance.miniville.fr/ Let you be welcome in Val d'Axance! The Mayor, Sylvain --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Look at my city!

2007-09-03 Thread Sylvain
Hi everyone! I've just created my city, in France. You can visit it here : http://val-daxance.miniville.fr/ Let you be welcome in Val d'Axance! The Mayor, Sylvain --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: pure-HTTP deployment?

2006-12-27 Thread Sylvain Hellegouarch
e could then help you out. - Sylvain --~--~-~--~~~---~--~~ 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

Re: pure-HTTP deployment?

2006-12-21 Thread Sylvain Hellegouarch
They are indeed. I'd be interested to know which version of CP Simon was running. CP3 is way more stable, efficient and comprehensive that CP2 (and its WSGI server is like ten steps ahead). - Sylvain --~--~-~--~~~---~--~~ You received this message because you are