Re: Why does Django say my login form is invalid? How can I find out why Django thinks it is?

2017-11-29 Thread Tom Tanner
I removed that line, but nothing changed. On Wednesday, November 29, 2017 at 11:58:28 PM UTC-5, Matemática A3K wrote: > > > > On Thu, Nov 30, 2017 at 12:35 AM, Tom Tanner > wrote: > >> What would I need to change? >> >> I tried changing the ... >> fields= ("username",)

Re: Why does Django say my login form is invalid? How can I find out why Django thinks it is?

2017-11-29 Thread Matemática A3K
On Thu, Nov 30, 2017 at 12:35 AM, Tom Tanner wrote: > What would I need to change? > > I tried changing the ... > fields= ("username",) > > ... to ... > fields= ("username","email",) > or... > fields= ("email",) > > Nothing seemed to change. the

Re: Why does Django say my login form is invalid? How can I find out why Django thinks it is?

2017-11-29 Thread Tom Tanner
What would I need to change? I tried changing the ... fields= ("username",) ... to ... fields= ("username","email",) or... fields= ("email",) Nothing seemed to change. the `login_form.is_valid()` still is `False`. Sorry if the question is dumb, I'm still learning Django thru working with it.

can't encode characters error while using django-admin

2017-11-29 Thread Javad Mokhtari Koushyar
Hi, this is the question: https://stackoverflow.com/questions/47560019/ascii-codec-cant-encode-characters-in-position-0-3-ordinal-not-in-range128?noredirect=1#comment82077811_47560019 thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: How to configure NGINX to run Django app in a subpath?

2017-11-29 Thread Etienne Robillard
Whats wrong in using FastCGI for your specific use-case ? Etienne Le 2017-11-29 à 15:45, Luca Moiana a écrit : Following this tutorial I came up with this NGINX server: | upstream app_name { server unix:/home/geouser/pmapp/pmapp.sock fail_timeout=10; } server { listen 80; root

Re: How to configure NGINX to run Django app in a subpath?

2017-11-29 Thread Luca Moiana
Following this tutorial I came up with this NGINX server: upstream app_name { server unix:/home/geouser/pmapp/pmapp.sock fail_timeout=10; } server { listen 80; root /home/geouser/pmapp; server_name www.officinecartografiche.it, officinecartografiche.it, 207.154.206.172;

RE: Recursive Queries - CTEs

2017-11-29 Thread Matthew Pava
I’ve done more research. The proper term of these Recursive Queries is Common Table Expressions (CTEs). I learned that a developer had already worked on trying to get these in Django more towards the beginning of this year, but it doesn’t look like it was taken. Django-mptt looks like it

Re: Recursive Queries

2017-11-29 Thread Jason
If I understand you correctly, you're looking for something similar to a tree structure, but with a regular SQL db. > > If so, there are two projects you can consider: https://github.com/django-treebeard/django-treebeard https://github.com/django-mptt/django-mptt -- You received this message

Re: Error on execute migration (create index) when set db_name with quoted string

2017-11-29 Thread Carlos Leite
Sure, its great to help the project. thanks for your attention. tonight (brazil) I will prepare the ticket. cheers - Cadu Leite | Twitter | Medium Blog | Google + | | @cadu_leite |

Recursive Queries

2017-11-29 Thread Matthew Pava
I have a problem in which I would like to solve with SQL recursive queries using the ORM (a bill of materials tree, actually). In particular, I was looking at PostgreSQL's WITH RECURSIVE statement. I discovered this paper in my research, which seems to indicate that Django had such a feature

Re: Admin many-to-many inlines - show editable fields from parent models

2017-11-29 Thread Matemática A3K
On Wed, Nov 29, 2017 at 6:29 AM, Jan Hartman wrote: > Either by specifying PairRecipeCategory or using > Categories.recipes.through, I am referencing the model that manages the > many-to-many relation. If I wouldn't create an intermediary model myself, > Django would do it

Re: Admin many-to-many inlines - show editable fields from parent models

2017-11-29 Thread Jan Hartman
Either by specifying PairRecipeCategory or using Categories.recipes.through, I am referencing the model that manages the many-to-many relation. If I wouldn't create an intermediary model myself, Django would do it for me. Both options leave me with the same result - being unable to access the