RE: [OT] Is Trump planning to break the Internet?

2017-12-11 Thread Matthew Pava
>> Please keep your political rhetoric and irresponsible scaremongering off >> this list. >> All the net neutrality repeal will do is restore some of the permissionless >> innovation that allowed the internet to blossom in the first place. Dear Larry, Please read what you just wrote. On the

Re: Why get "Server Error 500" instead of 404 template?

2017-12-11 Thread Chris Seberino
> > For more information, you need to show us your nginx configuration and > your wsgi server configuration. > > > Thanks a million. Here is what you asked for... --- %

Re: [OT] Is Trump planning to break the Internet?

2017-12-11 Thread Larry Martell
On Mon, Dec 11, 2017 at 9:24 AM, Matthew Pava wrote: >>> Please keep your political rhetoric and irresponsible scaremongering off >>> this list. > >>> All the net neutrality repeal will do is restore some of the permissionless >>> innovation that allowed the internet to

How to run

2017-12-11 Thread Mukesh Jain
I download Django from git clone https://github.com/django/django.git But i want to know how to run this code -- 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 an email to

Re: Why get "Server Error 500" instead of 404 template?

2017-12-11 Thread Antonis Christofides
Hello, Usually when you get a mere "Server error 500" without it showing you the Debug page though you have DEBUG=True, this means that the error occurs very early, before Django has had the opportunity to run. In that case, the error should have been logged in the gunicorn/uwsgi/whatever log,

Re: DJango 2.0 request.path

2017-12-11 Thread 'Michael Schietzsch' via Django users
Works with {% if request.path == '/profile/' %} I kind of forgot that I used a URL module with 1.11... Am Montag, 11. Dezember 2017 13:11:20 UTC+1 schrieb Michael Schietzsch: > > Hi, > > I am pretty new to Django (and therefore python). I started to write a > website with Django 1.11 and now

Re: How to run

2017-12-11 Thread Andréas Kühne
Hi, I would recommend that you look at the tutorials that explain a lot. Start with the django tutorial at: https://docs.djangoproject.com/en/2.0/intro/tutorial01/ If you need to do more or get a deeper explanation check out the django girls tutorial: https://tutorial.djangogirls.org/en/ Both

DJango 2.0 request.path

2017-12-11 Thread 'Michael Schietzsch' via Django users
Hi, I am pretty new to Django (and therefore python). I started to write a website with Django 1.11 and now tried to migrate it to 2.0 I got most working with the help of the new documentation, but I have a problem with request.path usage in a template. It worked fine with 1.11 but not with

Re: Mysql-python in Windows

2017-12-11 Thread Julián Melero Hidalgo
I resolved adding to manage.py:import pymysqlpymysql.install_as_MySQLdb():D :DEl 11 de diciembre de 2017 a las 1:26 Egor Smolyakov escribió:Hello.Take a look at https://pypi.python.org/pypi/PyMySQL/0.7.11On 10/12/2017, Julián Melero Hidalgo wrote:Hi all!I'm trying to install pip install

Re: Mysql-python in Windows

2017-12-11 Thread Julián Melero Hidalgo
Hi.I installed it. But when I run "runserver" I have this error: "Did you install mysqlclient or MySQL-python?".:(El 11 de diciembre de 2017 a las 1:26 Egor Smolyakov escribió:Hello.Take a look at https://pypi.python.org/pypi/PyMySQL/0.7.11On 10/12/2017, Julián Melero Hidalgo wrote:Hi all!I'm

Django 2.0 change in request.path ?

2017-12-11 Thread 'Michael Schietzsch' via Django users
Hi, I just recently started with Django (and python for that matter). I started to create a page using Django 1.11 and now migrated it to 2.0 I have for one small problem, and that is that a request.path in my tempalte is not working anymore, and I can not figure out why. I could not find any

Re: tutorial on mongodb and django

2017-12-11 Thread Jason
I would avoid mongo, because Django's ORM is explicitly designed for relations and doesn't translate well to NoSQL DBs. As an alternative, look into mysql or postgres, with a big recommendation of the latter. On Sunday, December 10, 2017 at 4:34:18 PM UTC-5, Krishna Neupane wrote: > > Hey I am

PRIMARY KEY in view PostgreSQL

2017-12-11 Thread Matthew Pava
Fellow users, I have an unmanaged model that references a view in my PostgreSQL 9.5 backend. I am trying to apply an annotation through the ORM in that model's manager. Unfortunately, I am getting an error that some fields "must appear in the GROUP BY clause or be used in an aggregate

Re: About 'main' app, and using it from other apps.

2017-12-11 Thread Marsanghas
Thank you. Took your advise and created a seperate app for some common stuff + homepage. > Original Message > Subject: Re: About 'main' app, and using it from other apps. > Local Time: December 10, 2017 7:42 PM > UTC Time: December 10, 2017 6:42 PM > From: dreinh...@gmail.com >

Re: PRIMARY KEY in view PostgreSQL

2017-12-11 Thread Simon Charette
Hello Matthew, This should be fixed in Django 2.0 by daf2bd3efe53cbfc1c9fd00222b8315708023792[0]. I'd appreciate if you could chime in the related django-developer thread[1] to mention you were using an unmanaged model to query views as there was no consensus regarding whether or not the patch

Re: Why get "Server Error 500" instead of 404 template?

2017-12-11 Thread Chris Seberino
I didn't have logging enabled in my settings.py. Problem solved. > > > > --- > % more nginx.conf > > server { > server_name

RE: PRIMARY KEY in view PostgreSQL

2017-12-11 Thread Matthew Pava
Thank you so much, Simon, for that response! I do wish I could use Django 2.0, but some of my third-party apps haven’t been updated yet. I’m using Django 1.11. With the clues provided, I was able to test my query by adding all of the columns into the GROUP BY clause in my PostgreSQL SQL

Re:

2017-12-11 Thread sum abiut
You may also want to try django-oscar out. https://github.com/django-oscar/django-oscar cheers, On Sun, Dec 10, 2017 at 6:46 AM, Etienne Robillard wrote: > Hi Chaitanya, > > If you're not afraid of getting your hands dirty by playing with > django-hotsauce, you could try

Re: tutorial on mongodb and django

2017-12-11 Thread Ruben Alves
I've seen someone posting here some time ago the Djongo (Django + Mongo): https://github.com/nesdis/djongo Em domingo, 10 de dezembro de 2017 19:34:18 UTC-2, Krishna Neupane escreveu: > > Hey I am trying to learn Django and wanted to implement it with mongoDB. > Are there any pointers where I

Please explain "TypeError: handle_404() got an unexpected keyword argument 'exception'"

2017-12-11 Thread Chris Seberino
I'm trying to get a 404 page to show instead of a 500 error when Django app sees a nonexistent URL. I'm still getting 500 errors with this clue in logs but I don't know what it means Please explain "TypeError: handle_404() got an unexpected keyword argument 'exception'" (The nonexistent

Re: How to run

2017-12-11 Thread Peter van der Does
https://docs.djangoproject.com/en/2.0/#first-steps On 12/11/17 7:46 AM, Mukesh Jain wrote: > I download Django from git clone https://github.com/django/django.git > > But i want to know how to run this code > -- > You received this message because you are subscribed to the Google > Groups

Re: tutorial on mongodb and django

2017-12-11 Thread Genzo Vandervelden
I can't say I have experience in using Django and MongoDB but you can take a look at these: - https://django-mongodb-engine.readthedocs.io/en/latest/topics/setup.html - https://django-mongodb-engine.readthedocs.io/en/latest/tutorial.html -

Re: import error

2017-12-11 Thread Dylan Reinhold
It does not look like you have created an app yet in your project. You should create one say web [ manage.py startapp web ] Then move that views.py and the templates folder into that app folder web/ Then in your urls.py change the from .views import index to from web.views import index. In your

Re: import error

2017-12-11 Thread Dylan Reinhold
For your other error, are you are using passing the literal string Home, then enclose it in quotes. On Mon, Dec 11, 2017 at 8:03 PM, Dylan Reinhold wrote: > It does not look like you have created an app yet in your project. > > You should create one say web [ manage.py

import error

2017-12-11 Thread Rabin BK
Please help me with

Re: Please explain "TypeError: handle_404() got an unexpected keyword argument 'exception'"

2017-12-11 Thread Matemática A3K
On Mon, Dec 11, 2017 at 10:23 PM, Chris Seberino wrote: > I'm trying to get a 404 page to show instead of a 500 error when Django > app sees a nonexistent URL. > > I'm still getting 500 errors with this clue in logs but I don't know what > it means > > Please explain