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 "TypeError: handle_404() got an unexpected keyword argument
> 'exception'"
>

It means literally that "handle_404() got an unexpected keyword argument
'exception'", how are you calling handle_404()?


>
> (The nonexistent URL I tried was /aaa.)
>
> Internal Server Error: /aaa
> Traceback (most recent call last):
>   File 
> "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py",
> line 35, in inner
> response = get_response(request)
>   File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py",
> line 113, in _get_response
> resolver_match = resolver.resolve(request.path_info)
>   File "/usr/local/lib/python3.5/dist-packages/django/urls/resolvers.py",
> line 523, in resolve
> raise Resolver404({'tried': tried, 'path': new_path})
> django.urls.exceptions.Resolver404: {'path': 'aaa', 'tried':
> [[], [],
>  [], []]}
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File 
> "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py",
> line 99, in get_exception_response
> response = callback(request, **dict(param_dict, exception=exception))
> TypeError: handle_404() got an unexpected keyword argument 'exception'
>
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/c87198a3-327c-4dbf-a6d0-114a800fa560%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BFDnhJ9ZLjPb5vavucHxsOyKPpYVbukHtwjc6fgmA24F1EQMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 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 settings you will need to add wed to your INSTALLED_APPS.
>
> Dylan
>
> On Mon, Dec 11, 2017 at 4:25 PM, Rabin BK  wrote:
>
>>
>> 
>>
>>
>> 
>> Please help me with this. I have been trying for weeks, but have not
>> found a solution. I have highlighted the errors there.
>>
>> --
>> 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 django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/django-users/4fde6e60-fac3-46d1-a426-f0e972c41097%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHtg44DGajsJ4bg-7hSzK5uR%3D_LtVCaxw0PitNT8_BFfrDGm1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 settings you will need to add wed to your INSTALLED_APPS.

Dylan

On Mon, Dec 11, 2017 at 4:25 PM, Rabin BK  wrote:

>
> 
>
>
> 
> Please help me with this. I have been trying for weeks, but have not found
> a solution. I have highlighted the errors there.
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/4fde6e60-fac3-46d1-a426-f0e972c41097%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHtg44Aq9aZHPSy0U8JPZjfCqwod9zw4Bb5bx7khdihVNJchAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


import error

2017-12-11 Thread Rabin BK





Please help me with this. I have been trying for weeks, but have not found 
a solution. I have highlighted the errors there. 

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4fde6e60-fac3-46d1-a426-f0e972c41097%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 URL I tried was /aaa.)

Internal Server Error: /aaa
Traceback (most recent call last):
  File 
"/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py", 
line 35, in inner
response = get_response(request)
  File 
"/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 
113, in _get_response
resolver_match = resolver.resolve(request.path_info)
  File "/usr/local/lib/python3.5/dist-packages/django/urls/resolvers.py", 
line 523, in resolve
raise Resolver404({'tried': tried, 'path': new_path})
django.urls.exceptions.Resolver404: {'path': 'aaa', 'tried': [[], [],
 [], []]}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py", 
line 99, in get_exception_response
response = callback(request, **dict(param_dict, exception=exception))
TypeError: handle_404() got an unexpected keyword argument 'exception'


-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c87198a3-327c-4dbf-a6d0-114a800fa560%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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
   - https://github.com/django-nonrel/mongodb-engine

Note that the last commit was well over 2 years ago so the project isn't 
likely to be up to date with today's Django. 
I don't know the requirements of what you're building but Django works very 
well with relational databases, if you don't need NoSQL, I suggest using 
PostgreSQL or similar. Good luck!

On Sunday, 10 December 2017 22:34:18 UTC+1, Krishna Neupane wrote:
>
> Hey I am trying to learn Django and wanted to implement it with mongoDB. 
> Are there any pointers where I could learn- anything could help from 
> youtube videoes to tutorials.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/50712353-daac-4034-a5ec-29f2638bfe9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscr...@googlegroups.com
> .
> To post to this group, send email to django-users@googlegroups.com
> .
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ece06800-b4e5-4211-a2b2-269156bdbd0a%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.


-- 
*Peter van der Does
o: ***410-584-2500** **
m: 732-425-3102
*ONeil Interactive, Inc*
_oneilinteractive.com _
* *

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fd9d50d7-9b26-ddb7-46d0-a922a53633ec%40oneilinteractive.com.
For more options, visit https://groups.google.com/d/optout.


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 could learn- anything could help from 
> youtube videoes to tutorials.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dd8d7840-021d-4e18-8130-7df281defb18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 django-livestore, a fork of the Satchmo
> framework.
> See: https://bitbucket.org/tkadm30/livestore
>
> Best regards,
>
> Etienne
>
>
> Le 2017-12-09 à 14:33, chaitanya goud a écrit :
>
> Hey I would like to know about
> Where to download a e-commerce website in django and how run it
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CA%2BkSnu5ytKSOhk_kqGzUFs4UjXd17HpkcwsmzF_Ckq8%
> 2BL-Qz-Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Etienne Robillardtkadm30@yandex.comhttps://www.isotopesoftware.ca/
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/39853fdf-8529-5d10-2faa-2770f4b20e98%40yandex.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



--

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPCf-y7Z6FiyV7pK%2BYTcq0ncybm5WsEGNENBjQTTFRs87VjYig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 editor.  In the process, 
I learned that my query takes way too long to run (about 5 minutes).

As you requested, I added a message to the django-developers mailing list on 
that particular thread.


From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
Behalf Of Simon Charette
Sent: Monday, December 11, 2017 1:35 PM
To: Django users
Subject: Re: PRIMARY KEY in view PostgreSQL

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 should be rolled back.

I think you're a great example of a user who hit this issue from starting to 
use Django
< 2.0 that is not taken into account by one of the user argument to favor 
rolling back
the patch[2].

The more I think of it the more I feel like we should just close the ticket 
until the
ORM gains enough introspection power to determine whether or not we should be
using the optimization on unmanaged model.

Here's the Trac ticket for reference[2].

Cheers,
Simon

[0] 
https://github.com/django/django/commit/daf2bd3efe53cbfc1c9fd00222b8315708023792
[1] https://groups.google.com/forum/#!topic/django-developers/lx3ZSq-W9X4
[2| https://groups.google.com/d/msg/django-developers/lx3ZSq-W9X4/yh4I2CsoBwAJ
[3] https://code.djangoproject.com/ticket/28107


Le lundi 11 décembre 2017 10:43:34 UTC-5, Matthew Pava a écrit :
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 function.”

Upon further investigation, it appears that I need a PRIMARY KEY in the backend 
to avoid having to include columns in a GROUP BY clause, but PostgreSQL does 
not allow for such constraints to be added to a VIEW.  The “id” column is just 
a row_number().

I was wondering how anyone else handled this issue.
Thanks!
--
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 
django-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f89fa330-0c6b-43eb-ae86-7926b67669ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ca01c5114c6e474e8f303bfb2be00c17%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.


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 ~^(www\.)?domainname\.(org|com)$;
> listen  80;
> return  301 https://domainname.org$request_uri;
> }
>
> server {
> server_name ~^(www\.)?domainname\.com$;
> listen  443 ssl http2;
> ssl_certificate /etc/letsencrypt/live/
> domainname.org/fullchain.pem;
> ssl_certificate_key /etc/letsencrypt/live/
> domainname.org/privkey.pem;
> return  301 https://domainname.org$request_uri;
> }
>
> server {
> server_name ~^(www\.)?domainname.org$;
> listen  443 ssl http2;
> ssl_certificate /etc/letsencrypt/live/
> domainname.org/fullchain.pem;
> ssl_certificate_key /etc/letsencrypt/live/
> domainname.org/privkey.pem;
> root/home/cs/Ws/domainname.org/nginx;
>
> location / {
> location /static {
> }
>
> include/etc/nginx/uwsgi_params;
> uwsgi_pass localhost:8000;
> }
> }
>
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b51ffc57-ca28-412f-bcc7-1c4e4fba4522%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 should be rolled back.

I think you're a great example of a user who hit this issue from starting 
to use Django
< 2.0 that is not taken into account by one of the user argument to favor 
rolling back
the patch[2].

The more I think of it the more I feel like we should just close the ticket 
until the
ORM gains enough introspection power to determine whether or not we should 
be
using the optimization on unmanaged model.

Here's the Trac ticket for reference[2].

Cheers,
Simon

[0] 
https://github.com/django/django/commit/daf2bd3efe53cbfc1c9fd00222b8315708023792
[1] https://groups.google.com/forum/#!topic/django-developers/lx3ZSq-W9X4
[2| 
https://groups.google.com/d/msg/django-developers/lx3ZSq-W9X4/yh4I2CsoBwAJ
[3] https://code.djangoproject.com/ticket/28107


Le lundi 11 décembre 2017 10:43:34 UTC-5, Matthew Pava a écrit :
>
> 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 function.”
>
>  
>
> Upon further investigation, it appears that I need a PRIMARY KEY in the 
> backend to avoid having to include columns in a GROUP BY clause, but 
> PostgreSQL does not allow for such constraints to be added to a VIEW.  The 
> “id” column is just a row_number().
>
>  
>
> I was wondering how anyone else handled this issue.
>
> Thanks!
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f89fa330-0c6b-43eb-ae86-7926b67669ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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
> To: django-users@googlegroups.com
>
> No, I would not think of the my_first_django folder as the main app.
> If you have common stuff create a new app named common or base and put your 
> stuff in there.
>
> Dylan
>
> On Sun, Dec 10, 2017 at 7:37 AM, Marsanghas  wrote:
>
>> Hi all!
>>
>> Started with Django a few days ago (version 2.0, Python 3.6.3). As a noob 
>> (no experience with Python and Django, and very little with MVC (sorry, MTV 
>> ;-) ), I have a little question that wasn't really clear to me from the 
>> tutorial.
>>
>> When creating a project, for example 'my_first_django' and creating the 
>> polls app, my directory structure would be:
>>
>> my_first_django
>> \_ my_first_django
>> \_ polls
>>
>> Those 2 (\_ my_first_django and \_ polls) are both apps, right? 
>> my_first_django being the 'main' app, with the projects' settings.py. I 
>> didn't really get that from the tutorial.
>> My confusion comes from the fact that I want to create a site project and it 
>> feels more logical to start with the 'main' app and build modules (apps) 
>> next to it. The tutorial doesn't start there.
>>
>> What is the common practice? Don't use the 'main' app ( my_first_djano in 
>> this case ) as an app at all, only just for some global settings, or use it 
>> as the main app and create other apps as 'modules' that can be used from 
>> within the main? Maybe a silly question. Sorry about that.
>>
>> I am also asking because I want to use template inheritence in the polls 
>> app. I got it working by putting a base.html in 
>> /my_first_django/my_first_django/templates , in 
>> /my_first_django/my_first_django/apps.py I put:
>>
>> from django.apps import AppConfig
>>
>> class MainConfig(AppConfig):
>> name = 'my_first_django'
>>
>> And set that in the settings.py [INSTALLED_APPS] section ( 
>> 'my_first_django.apps.MainConfig', ). (I probably shouldn't have used 
>> MainConfig but MyFirstDjangoConfig, right?)
>>
>> Now I can call the base.html template from the template in the polls app:
>>
>> {% extends "base.html" %}
>>
>> Is this the correct way to go about it?
>>
>> Thanx for any help!
>>
>> Regards,
>> Marcel
>>
>> --
>> 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 django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> [https://groups.google.com/d/msgid/django-users/H7r0YWfmP5B1qPCxVIbx-5Hwe6x4OfdwV7zrAxjOdgDkFjNMI1DCWfm3EpB23eXP-Y0-pVzlrNSXsuU6rKODJQ%3D%3D%40i-am-b.org](https://groups.google.com/d/msgid/django-users/H7r0YWfmP5B1qPCxVIbx-5Hwe6x4OfdwV7zrAxjOdgDkFjNMI1DCWfm3EpB23eXP-Y0-pVzlrNSXsuU6rKODJQ%3D%3D%40i-am-b.org?utm_medium=email&utm_source=footer).
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> [https://groups.google.com/d/msgid/django-users/CAHtg44CGrOcVJQOWPzk35gpWTMjSWR%3Dq_eX3rroxeSk30asaqA%40mail.gmail.com](https://groups.google.com/d/msgid/django-users/CAHtg44CGrOcVJQOWPzk35gpWTMjSWR%3Dq_eX3rroxeSk30asaqA%40mail.gmail.com?utm_medium=email&utm_source=footer).
> For more options, visit https://groups.google.com/d/optout.

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/pF1EaVtc6B2zlJGahNOSmfUO9l2aUTMWqxt788b4p3es3hxhCTo3MkFouyusoToOL-BANedgKtJ4bhkQWZo_Qw%3D%3D%40i-am-b.org.
For more options, visit https://groups.google.com/d/optout.


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 function."

Upon further investigation, it appears that I need a PRIMARY KEY in the backend 
to avoid having to include columns in a GROUP BY clause, but PostgreSQL does 
not allow for such constraints to be added to a VIEW.  The "id" column is just 
a row_number().

I was wondering how anyone else handled this issue.
Thanks!

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/32e312a8f0284745855651d683e3c499%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.


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 trying to learn Django and wanted to implement it with mongoDB. 
> Are there any pointers where I could learn- anything could help from 
> youtube videoes to tutorials.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/31adc9c6-2986-42ff-b079-a6bd40411066%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 blossom in the first place.
>
> Dear Larry,
> Please read what you just wrote.  On the one hand, you asked Etienne not to 
> share political rhetoric, and then you called Etienne's act one of 
> irresponsible scaremongering.  And then you had to have the last word in this 
> discussion by sharing your own political rhetoric about the topic.  That's 
> not right, and I'm not going to sit by and let that happen.
>
> The better way to handle it would have been a personal message to Etienne 
> asking that user not to post political rhetoric (in a nicer way than you just 
> did) and not make that message public.
>
> So here's an article about Net Neutrality:
> https://www.savetheinternet.com/net-neutrality-what-you-need-know-now

That article is from freepress.net, a very far left, statist group,
that feels the government should regulate, control and tax every
aspect of your lives. We do not need more government regulation, we
need less. A free market is always better. Net Neutrality is
censorship, and it's crony capitalism.

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACwCsY4ZgWEiKvdiAx%2B%2BCiVc6Wvj8%2BwX9-p-OpG9AxKqvq70TA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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...


---
 % more wsgi.py 

import django.core.wsgi
import os

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
application = django.core.wsgi.get_wsgi_application()


---
% more nginx.conf

server {
server_name ~^(www\.)?domainname\.(org|com)$;
listen  80;
return  301 https://domainname.org$request_uri;
}

server {
server_name ~^(www\.)?domainname\.com$;
listen  443 ssl http2;
ssl_certificate
 /etc/letsencrypt/live/domainname.org/fullchain.pem;
ssl_certificate_key 
/etc/letsencrypt/live/domainname.org/privkey.pem;
return  301 https://domainname.org$request_uri;
}

server {
server_name ~^(www\.)?domainname.org$;
listen  443 ssl http2;
ssl_certificate
 /etc/letsencrypt/live/domainname.org/fullchain.pem;
ssl_certificate_key 
/etc/letsencrypt/live/domainname.org/privkey.pem;
root/home/cs/Ws/domainname.org/nginx;

location / {
location /static {
}

include/etc/nginx/uwsgi_params;
uwsgi_pass localhost:8000;
}
}

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/45f769d1-4ee0-4662-abe2-fa55ad8bf485%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 one hand, you asked Etienne not to 
share political rhetoric, and then you called Etienne's act one of 
irresponsible scaremongering.  And then you had to have the last word in this 
discussion by sharing your own political rhetoric about the topic.  That's not 
right, and I'm not going to sit by and let that happen.

The better way to handle it would have been a personal message to Etienne 
asking that user not to post political rhetoric (in a nicer way than you just 
did) and not make that message public.

So here's an article about Net Neutrality:
https://www.savetheinternet.com/net-neutrality-what-you-need-know-now

How would it affect Django and GitHub?  Well, ISPs could potentially charge 
extra money to be able to access the Django website, GitHub website, and other 
development package websites.  Put simply, fewer users could have access to 
these tools.

But, I agree, this is not really the mailing list to discuss these matters.


-Original Message-
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
Behalf Of Larry Martell
Sent: Sunday, December 10, 2017 5:35 PM
To: django-users@googlegroups.com
Subject: Re: [OT] Is Trump planning to break the Internet?

On Sun, Dec 10, 2017 at 5:24 PM, Etienne Robillard  wrote:
> Hey all,
>
> On December 14, the FCC will vote to repeal net neutrality and 
> possibly rig the Internet. This means that major corporations could 
> pay to have their content delivered faster while independent websites 
> traffic would be throttled. I think this is a outrageous move and 
> could seriously harm independent websites and communities from 
> reaching their key audience. We must not let this happen!
>
> Please share the word with your peers. It is imperative that we must 
> unite and act together to fight for our freedom of speech and prevent 
> the Internet from becoming obsolete. The Internet is a brilliant 
> technology allowing billions of people to share their knowledge 
> independently. We must defend at all costs its very own foundations 
> and protect it from censorship and tyranny!

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.

--
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACwCsY6xLxfMMLA1te%2Bn0WD8AurqO-fQzp3j%2B-irasaT7EVY-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b2a5e621368848e384a0a8191285e737%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.


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 explain a lot.

Regrads,

Andréas

2017-12-11 13:46 GMT+01:00 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/ece06800-b4e5-4211-a2b2-269156bdbd0a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCdEKKs2uvy2_54DtOuxQ2kVkMPDMXkWqKq2cYuMhbnrKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 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 2.0. I was not able to find that anything changed with 
> request.path in 2.0
> Here is the template snippet:
>
>
> {% url 'profile' as profile_url %} {% if request.path == profile_url %}
>> > onClick="javascript:history.go(-1);">{% user_display user %}
>> {% else %} 
>> {% 
>> user_display user %}
>> {% endif %}
>>
>
>
> What it does is, change a button, depending on the current URL. In 
> practice:
> The button is locate in a ever present nav bar. 
> If you are on your profile (/profile) than the button will be in active 
> state, and a click will go one back (sort of)
> If not, the buttin not active and will on klick send you to your profile
>
> Currently is will never be in the if true situation.
>
> I hope you can help me
> Thanks
> Regards
> Michael
>
> p.s.: I thought I already posted this, but could not find it, so here as a 
> repost. If it shows up twice, I am very sorry and will punish my browser 
> thoroughly ;-)
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1a41f20b-7eef-4255-b829-eee3076842fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ece06800-b4e5-4211-a2b2-269156bdbd0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, i.e. in whatever program it
is that runs Django.

For more information, you need to show us your nginx configuration and your wsgi
server configuration.

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com


On 2017-12-10 18:42, Chris Seberino wrote:
> I cannot track down why 404 page isn't being used.  I can't get any help from
> syslog or Nginx log files.
> I tried adding DEBUG=True to settings.py and still no clues.
> I only get "Server Error 500".
>
> Here is settings.py
>
> TEMPLATES        = [{"BACKEND" :
>                         "django.template.backends.django.DjangoTemplates",
>                      "DIRS"    : [VIEWS.format(e) for e in APPS],
>                      "OPTIONS" :
>                         {"context_processors" :
>                          ["django.template.context_processors.debug",
>                           "django.template.context_processors.request"]}}]
> MIDDLEWARE       = ["django.middleware.security.SecurityMiddleware",
>                     "django.contrib.sessions.middleware.SessionMiddleware",
>                     "django.middleware.common.CommonMiddleware",
>                     "django.middleware.csrf.CsrfViewMiddleware",
>                     "django.contrib.auth.middleware.AuthenticationMiddleware",
>                     "django.contrib.messages.middleware.MessageMiddleware",
>                     "django.middleware.clickjacking.XFrameOptionsMiddleware"]
> WSGI_APPLICATION = "nginx.wsgi.application"
> INSTALLED_APPS   = APPS + ["django.contrib.admin",
>                            "django.contrib.auth",
>                            "django.contrib.contenttypes",
>                            "django.contrib.messages",
>                            "django.contrib.sessions",
>                            "django.contrib.staticfiles"]
> -- 
> 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 django-users+unsubscr...@googlegroups.com
> .
> To post to this group, send email to django-users@googlegroups.com
> .
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/977652c4-f86e-491c-a5af-ccbba38dc733%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b01b12c2-91c4-086c-c290-bc6ad46727b4%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.


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 2.0. I was not able to find that anything changed with 
request.path in 2.0
Here is the template snippet:


{% url 'profile' as profile_url %} {% if request.path == profile_url %}
>  onClick="javascript:history.go(-1);">{% user_display user %}
> {% else %} 
> {% 
> user_display user %}
> {% endif %}
>


What it does is, change a button, depending on the current URL. In practice:
The button is locate in a ever present nav bar. 
If you are on your profile (/profile) than the button will be in active 
state, and a click will go one back (sort of)
If not, the buttin not active and will on klick send you to your profile

Currently is will never be in the if true situation.

I hope you can help me
Thanks
Regards
Michael

p.s.: I thought I already posted this, but could not find it, so here as a 
repost. If it shows up twice, I am very sorry and will punish my browser 
thoroughly ;-)

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/06194bfc-2ca7-4bf2-8bb9-08827e2c7739%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 mysql-python, but it doesn't works.I'm using Win10, Xampp, Python 3.How can I install it?Thanks!!--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 anemail to django-users+unsubscr...@googlegroups.com.To post to this group, send email to django-users@googlegroups.com.Visit this group at https://groups.google.com/group/django-users.To view this discussion on the web visithttps://groups.google.com/d/msgid/django-users/510fd5bd-1e89-4550-bbe5-45d36264db92%40email.android.com.For more options, visit https://groups.google.com/d/optout.-- Kind Regards, Egor Smolyakov.-- 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 django-users+unsubscr...@googlegroups.com.To post to this group, send email to django-users@googlegroups.com.Visit this group at https://groups.google.com/group/django-users.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACL14xqimS7rbnsbcwJHTQsrLa5CpxgNVdL_%2Bv45fObNz7GfdQ%40mail.gmail.com.For more options, visit https://groups.google.com/d/optout.
 



-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1867401167.56074.1512987281836%40email.1and1.es.
For more options, visit https://groups.google.com/d/optout.


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 part in the changes or documentation that it should work any 
different now.
Here is the short code snippet:


{% url 'profile' as profile_url %} {% if request.path == profile_url %}
>  onClick="javascript:history.go(-1);">{% user_display user %}
> {% else %} 
> {% 
> user_display user %}
> {% endif %}
>


What it did was changing a button (primarily the active state or css of 
it). So if you are currently on the profile page, the buttin will be lit 
and a klick will bring you back (sort of), if not the buttin will be normal 
and bring you to your profile.
Why? Because that button is in the NAV bar.

I hope someone can help me out here.
Thank
Regards
Michael

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fcfdfd0c-b154-4d1b-81cd-3a022d4bf612%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 trying to install pip install mysql-python, but it doesn't works.I'm using Win10, Xampp, Python 3.How can I install it?Thanks!!--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 anemail to django-users+unsubscr...@googlegroups.com.To post to this group, send email to django-users@googlegroups.com.Visit this group at https://groups.google.com/group/django-users.To view this discussion on the web visithttps://groups.google.com/d/msgid/django-users/510fd5bd-1e89-4550-bbe5-45d36264db92%40email.android.com.For more options, visit https://groups.google.com/d/optout.-- Kind Regards, Egor Smolyakov.-- 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 django-users+unsubscr...@googlegroups.com.To post to this group, send email to django-users@googlegroups.com.Visit this group at https://groups.google.com/group/django-users.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACL14xqimS7rbnsbcwJHTQsrLa5CpxgNVdL_%2Bv45fObNz7GfdQ%40mail.gmail.com.For more options, visit https://groups.google.com/d/optout.
 



-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1058431135.54869.1512986204913%40email.1and1.es.
For more options, visit https://groups.google.com/d/optout.