Re: Hosting a django/python website/web app

2017-11-03 Thread Tim Chase
On 2017-11-03 09:20, Basilaik wrote: > I have completed my my website using django/python, and got a > hosting account with hostgator, i tried uploading it to the cpanel, > but i dont know how to do the configuration. > has any one ever hosted a website done with django on cpanel? While I've not t

Re: Hosting a django/python website/web app

2017-11-03 Thread ADEWALE ADISA
Is Hostigator support django app ? On Nov 3, 2017 5:34 PM, "Basilaik" wrote: I have completed my my website using django/python, and got a hosting account with hostgator, i tried uploading it to the cpanel, but i dont know how to do the configuration. has any one ever hosted a website done with d

Re: Using iPage for email host

2017-11-03 Thread Sören Mindorf
Hi Lucas, I checked the FAQ from ipage. You should use startssl for Port 587. It is described in the Django email instructions. EMAIL_USE_TLS is needed! Kind regards, Soeren Am 03.11.2017 19:06 schrieb "Lucas McBride" : > Does anyone have any experience using iPage as an email host? > > I've

Re: Using iPage for email host

2017-11-03 Thread Sören Mindorf
Hi Lucas, i don't know this provider, maybe there is something not correct. Did you try to deliver an email via telnet to see what is going wrong? https://mediatemple.net/community/products/dv/204404584/sending-or-viewing-emails-using-telnet But remember to use port 587. Kind regards, Soeren

Using iPage for email host

2017-11-03 Thread Lucas McBride
Does anyone have any experience using iPage for an email host with Django? I've tried using the instructions on the Django Docs to send emails but it doesn't seem to work: EMAIL_HOST = 'smtp.ipage.com' EMAIL_HOST_USER = 'info@be-a.rocks' EM

Re: Using iPage for email host

2017-11-03 Thread Lucas McBride
Hi Soeren! Thanks for responding! I tried using the new port and it is now a new error. There is a SMTPRecipientsRefused error: {'mcbride.luc...@gmail.com': (451, b'Temporary local problem - please try later')} Any idea what this means? Thanks again! Lucas On Friday, November 3, 2017 a

Re: Using iPage for email host

2017-11-03 Thread Sören Mindorf
Hey Lucas, you tried the imap Port not the smtp port. Dovecot is an imap service not smtp! Try port 587 this should be the right post to deliver emails as client. Kind Regards, Soeren Am 03.11.2017 19:06 schrieb "Lucas McBride" : Does anyone have any experience using iPage as an email host? I

Using iPage for email host

2017-11-03 Thread Lucas McBride
Does anyone have any experience using iPage as an email host? I've tried using the instructions on the Django Docs for setting up email hosts: EMAIL_HOST = 'smtp.ipage.com' EMAIL_HOST_USER = 'info@be-a.rocks' EMAIL_HOST_PASSWORD = '***

Re: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-11-03 Thread fábio andrews rocha marques
I'm using python code to verify the fields. I'm doing it on a View. But with javascript maybe I can solve this issue where i don't need to reload the page. But if i do that, can i do things like check the database to see if it already contains some value? Or store something on request.session f

Hosting a django/python website/web app

2017-11-03 Thread Basilaik
I have completed my my website using django/python, and got a hosting account with hostgator, i tried uploading it to the cpanel, but i dont know how to do the configuration. has any one ever hosted a website done with django on cpanel? -- You received this message because you are subscribed to

Re: Unable to use custom StaticFilesStorage

2017-11-03 Thread James Schneider
On Wed, Nov 1, 2017 at 11:35 AM, Stodge wrote: > I'm trying to add an extra directory for each app that will contain > Javascript/CSS files. I created a custom storage.py in my app containing a > copy of the code from Django's AppDirectoriesFinder class, but I changed > source_dir from "static" t

executing python script in html button

2017-11-03 Thread Rizal M.
I have custom python script for twitter sentiment analysis, let's call it sentiment.py it has two inputs, topic query and number of tweets. this is the full code import sys import csv import tweepy import matplotlib.pyplot as plt from collections import Counter from aylienapiclient import texta

Hello all, try to make dropdown in form

2017-11-03 Thread JP
Hello all, any help would be appreciated, I think this is basic stuff but can find how to do it online So I made the class and the form and the view every thing works but the background color of the drop down menu in the form is black and txt is grey (white when mouse is over). I don t think

ManytoMany field in Django admin not appearing

2017-11-03 Thread Paul
I have a Product model, an Image Model and a Category Model. A Product can have multiple Images(Foreign Key) and a Product can be in multiple Categories a Category can contain multiple Products. A Category can have multiple subcategories(key to itself). class Category(MetaData): parent =

Re: return jwt token as json

2017-11-03 Thread Jani Tiainen
According to pyjwt docs it can be either datetime object or number (unix epoch) https://pyjwt.readthedocs.io/en/latest/usage.html#expiration-time-claim-exp 3.11.2017 9.37 "James Schneider" kirjoitti: > > > On Oct 31, 2017 4:36 AM, "Rakhee Menon" wrote: > > > > class Login(APIView): > >def

Re: return jwt token as json

2017-11-03 Thread James Schneider
if user: payload = { 'id': user.pk, 'username': user.username, 'staff': user.email, 'exp': datetime.utcnow() I think that datetime.utcnow() returns a datetime object, not a string, and I don't think it can be serialized

Re: return jwt token as json

2017-11-03 Thread James Schneider
On Oct 31, 2017 4:36 AM, "Rakhee Menon" wrote: class Login(APIView): def post(self, request, *args, **kwargs): import ipdb;ipdb.set_trace() username = request.POST.get('username') password = request.POST.get('password') user = Person.objects.get(username=username