Re: Sending Email from form

2019-06-28 Thread Emmanuel klutse
Thank you Dube!!! Will check it out and update shortly. Sent from my iPhone > On 29 Jun 2019, at 2:27 AM, Sithembewena L. Dube wrote: > > I just finished a project where I did the same thing you require. > > I used the Mailgun API. > > The relevant documentation can be found here: >

Re: Sending Email from form

2019-06-28 Thread Sithembewena L. Dube
I just finished a project where I did the same thing you require. I used the Mailgun API. The relevant documentation can be found here: https://documentation.mailgun.com/en/latest/user_manual.html#sending-via-api Kind regards, Lloyd *Sent with Shift

Re: Sending Email from form

2019-06-28 Thread Charlotte Wood
I need this too!! On Fri, Jun 28, 2019, 1:22 PM Emmanuel klutse wrote: > Hello Team. > I’m new to programming and I’ve been studying Django for 6 months now. I > just started my first project and i need help with handling sending emails > from a user form. > I am using send_mail function to

Re: need help - following django tutorial to create polls database - missing "on delete cascade" - using django 2.2.1 with mysql 8.0

2019-06-28 Thread Joe Reitman
The notes say: - The exact output will vary depending on the database you are using. The example above is generated for* PostgreSQL.* Are you using the default SQLite? You could try running migrate and then checking the tables to see if the constraint was added using a DB admin viewer.

Sending Email from form

2019-06-28 Thread Emmanuel klutse
Hello Team. I’m new to programming and I’ve been studying Django for 6 months now. I just started my first project and i need help with handling sending emails from a user form. I am using send_mail function to allow anyone who wants to contact me through my contact page. Its is working fine

Re: need help - following django tutorial to create polls database - missing "on delete cascade" - using django 2.2.1 with mysql 8.0

2019-06-28 Thread Jasmine Smith
Looking into, will get back to you soon. Thanks. On Thu, Jun 27, 2019 at 8:15 PM Rudy Quiroga Gamboa wrote: > Hi, I have the same problem, did you find the problem or the solution ? > > > El martes, 28 de mayo de 2019, 20:44:44 (UTC-4), K Tan escribió: >> >> Hi, everyone, >> >> This is my first

Modal Form reusable.

2019-06-28 Thread Julio Parra-Sanchez
Buenos Dias Amigos, Alguno de ustedes ha utilizado los modal de bootstrap y reutilizarlo como template, pasandole como variable el modal que van a renderizar? Gracias y espero me haya explicado bien. -- Hello Guys, Have any of you used

Feature Request: set default model primary key to UUID or something else for entire project

2019-06-28 Thread Brian Carter
I am aware that I can specify any model's primary key by adding that kwarg to a field within the model. I currently do this with most my models, using UUIDField as the primary key: class MyModel(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)

Re: Running tests creates many unnecessary files

2019-06-28 Thread Phako Perez
As per my understanding all test runs in a virtual environment and all data(files, variables databases) are deleted once test clmpletes, how are you running these test, are you using a specific library from python or using own tests in a personal file? Sent from my iPhone > On Jun 28, 2019,

Re: Beginner's question regarding prefetch_related

2019-06-28 Thread jjmutumi
Hi there, I think you can use values() to do a group by. Something along these lines should be able to do it in 3 queries: from django.models import Max # aggregate grouping by submission

Re: Searching with respect to gender and BY name

2019-06-28 Thread jjmutumi
Hello, I think it should work if you build the query sequentially. Like: def search(request): if request.method=='POST': srch = request.POST['srh'] srchs = request.POST['gender'] if srchs or srch: query = Snippet.objects if srch: query = query.filter(Q(name__istartswith=srch)) if srchs: query =

Re: Internal Server Error

2019-06-28 Thread jjmutumi
Hi there, It would be helpful if you can look at the logs for your application. Check in /var/log/. For example you could check: /var/log/apache2 /var/log/nginx /var/log/postgresql /var/log/uwsgi /var/log/syslog Which will exist depending on your setup. You can also configure the email for

Running tests creates many unnecessary files

2019-06-28 Thread אורי
Hi, I found out that in the directory media of Speedy Net ( https://github.com/speedy-net/speedy-net) on my computer, there are more than 200,000 unnecessary files and more than 20,000 folders. I checked the time the files were created and it seems that they were created because I ran Django

Searching with respect to gender and BY name

2019-06-28 Thread Surya Adhikari
# my coding looks like this in views.py but somehow it only search by name no matter which gender i select .what am i doing wrong? def search(request): if request.method=='POST': srch = request.POST['srh'] srchs = request.POST['gender'] if srch and srchs: match =

Why does SelectDateWidget ignore empty_label when field is required?

2019-06-28 Thread Aaron Scruggs
Greetings, I have a ModelForm with a required date field that I am using SelectDateWidget with. I would like to default the select fields to empty placeholder values and force the user to pick a specific date, rather than defaulting to the first possible one. However when I pass empty_label to

Re: Error when displaying videos on iOS and Safari, but fine in Chrome

2019-06-28 Thread Walker O'Brien
They’re either mp4 mov or m4v video files Sent from my iPhone > On Jun 28, 2019, at 6:43 AM, Joe Reitman wrote: > > What is the format of the video? iOS and Safari won't play back WebM. > >> On Thursday, June 27, 2019 at 9:16:35 PM UTC-5, Walker Obrien wrote: >> I have a social media

Re: Error when displaying videos on iOS and Safari, but fine in Chrome

2019-06-28 Thread Joe Reitman
What is the format of the video? iOS and Safari won't play back WebM. On Thursday, June 27, 2019 at 9:16:35 PM UTC-5, Walker Obrien wrote: > > I have a social media application in the early stages of deployment, and > when videos are uploaded they are getting displayed perfectly fine when >

Internal Server Error

2019-06-28 Thread Soumen Khatua
Hi Folks, I'm using digital ocean provided Ubuntu 16.04 version yesterday I was trying to configure PostgreSQL remotely.So I did some changes in this path: /etc/postgresql/9.5/main/pg-hba.conf and postgresql.conf. After that I cahnge it as it wasbut still I'm getting Internal server error at the

Re: Beginner's question regarding prefetch_related

2019-06-28 Thread swimmer
I want to display a complete list of all submissions, and depending on the status of the most recent assessment for each submission, I want to display some additional information for each submission. In the system, there might be thousands of submissions and a handful of assessments for each of

Re: Minimum Hardware requirement - reg

2019-06-28 Thread Raja Sekar Sampath
Thanks to all for the valuable reply On Wed, 26 Jun 2019 at 08:57, Aldian Fazrihady wrote: > Can you convince your client to use clouds instead of self hosting? > Cloud such as AWS or GCP is easily scriptable, allowing to create > critical/important automation scripts. > > Regards, > > Aldian