How do I set the value of a model object's property after using `get_field()`?

2018-01-21 Thread Tom Tanner
I'm making a terminal command for my Django app: from django.core.management.base import BaseCommand, CommandError from django.core.exceptions import FieldDoesNotExist from django.apps import apps class Command(BaseCommand): def add_arguments(self, parser):

Re: django-payslip

2018-01-21 Thread Ramiro Morales
The detailed error page is giving you all the information you need to diagnose the issue. It tells you you have two paths defined in your URL map: /admin/ and /payslip/ as per their respective documentation. So far so good. But you are accessing / with your browser. Hence the 404 error. Try acces

Re: New project in virtual env referencing another project's default/redirected path

2018-01-21 Thread Doug Nintzel
Ok, makes sense. Thank you very much for the details Daniel. Doug On Sunday, January 21, 2018 at 1:02:33 PM UTC-7, Daniel Hepper wrote: > > Yes, kind of. There are two kinds of redirects, temporary and permanent > redirects. By default Django's redirect() method returns a temporary > redirect. I

django-payslip

2018-01-21 Thread sum abiut
Hi, Has anyone from list have any experience with django-payslip before. I follow direction from https://pypi.python.org/pypi/django-payslip/0.2.2 But i got the error below trying to load the page. Please advise [image: Inline image 1] cheer, -- You received this message because you are subscr

Re: 2 decimals, always

2018-01-21 Thread Carmelo J . Morales Muñoz
thankd for your help its ok thanks!... El viernes, 19 de enero de 2018, 14:13:24 (UTC+1), Kasper Laudrup escribió: > > Hi Carmelo, > > On 2018-01-19 13:24, Carmelo J. Morales Muñoz wrote: > > hello! > > > > I don´t know how solve this... I need django show always float numbers > >

Re: New project in virtual env referencing another project's default/redirected path

2018-01-21 Thread Daniel Hepper
Yes, kind of. There are two kinds of redirects, temporary and permanent redirects. By default Django's redirect() method returns a temporary redirect. If you pass permanent=True, it returns a permanent redirect. So here is what happened in your case: 1. You run the MDN tutorial project and poin

Re: New project in virtual env referencing another project's default/redirected path

2018-01-21 Thread Doug Nintzel
That got it Daniel...thanks for the quick help. Was it " permanent=True" in particular that was the problem? Thanks again, Doug On Sunday, January 21, 2018 at 10:29:33 AM UTC-7, Daniel Hepper wrote: > > I realized that the Mozilla tutorial is a wiki, so I took the liberty to > remove the "perman

Re: Django Http request question.

2018-01-21 Thread Peter of the Norse
There are a bunch of things going on here that aren’t Django questions. First of all, Twilio is a service that connects SMS (or text messages) to your server. This blog post is for experienced Django users to help explain how you can use Twilio with your existing site, and not for people who a

Re: New project in virtual env referencing another project's default/redirected path

2018-01-21 Thread Daniel Hepper
I realized that the Mozilla tutorial is a wiki, so I took the liberty to remove the "permant=True" from the redirect. On Sun, Jan 21, 2018 at 6:23 PM, Daniel Hepper wrote: > It's not the new project referencing the old project, it is actually your > browser caching the redirect from http://127.0

Re: New project in virtual env referencing another project's default/redirected path

2018-01-21 Thread Daniel Hepper
It's not the new project referencing the old project, it is actually your browser caching the redirect from http://127.0.0.1:8000/ to http://127.0.0.1:8000/catalog/. Because it is a permanent redirect, your browser won't access http://127.0.0.1:8000/, it will go http://127.0.0.1:8000/catalog/. You

New project in virtual env referencing another project's default/redirected path

2018-01-21 Thread Doug Nintzel
Hello, I am new to Django and followed this Mozilla Django Tutorial which was very helpful, and created the 'locallibrary' project. As part of the exercise, it has you create a 'catalog' app and has you

Re: Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet)

2018-01-21 Thread Phang Mulianto
Hi If you use ssl on apache, the ssl terminate only on apache request from client, then the wsgi from apache is no https. So ssl handled by your webserver service, whether the webserver you use is apache or nginx. Try access the static file with https is it working? On 21 Jan 2018 4:26 pm, "A

Re: Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet)

2018-01-21 Thread Antonis Christofides
Hello, I'm not certain I understand what you are describing. Is Apache listening on port 8000? How is it possible that you are using "runserver" when you are running Django through mod_wsgi? Something is wrong there. Also, don't put your Django app's files in public_html or any other directory th