Re: Pythonanywhere Hosting issue

2018-03-29 Thread James Farris
Where is your DNS records stored? Godaddy or pythonanywhere. It sounds like the dns records are coming from godaddy since that’s the page you see when you load the site. The way I was taught is you point your cname to an A record which points to the server where your doc root is. It sounds

Re: Django ORM Handling of Reverse Relationships and Multi-Value Relationships

2018-03-29 Thread Andrew Standley
So sorry everyone. I meant to post this to the development mailing list. Apparently I haven't had enough coffee today. Please disregard. On Thursday, March 29, 2018 at 2:15:33 PM UTC-7, Andrew Standley wrote: > > I have recently become acquainted with some ORM behaviour for reverse >

Re: New to Django, Tutiorial01 not working,

2018-03-29 Thread Marcin Bacławski
u probably run http://localhost:8000/ ,u should run http://localhost:8000/polls -- 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 ORM Handling of Reverse Relationships and Multi-Value Relationships

2018-03-29 Thread Andrew Standley
I have recently become acquainted with some ORM behaviour for reverse relationships that "makes no sense", and I'm hoping someone can explain the justification for the current behaviour. This specifically relates to `filter` behaviour referenced in 29271

Re: New to Django, Tutiorial01 not working,

2018-03-29 Thread prince gosavi
You need to use the following url *http://localhost:8000/polls/* as you have mentioned that you want to go under the "polls/" django parses through the urls to find "/polls/" and if it does not exists it will surely give an error as you are requesting things that it does not have. On Friday,

Decoupling Postgres database credentials in django for deployment.

2018-03-29 Thread prince gosavi
Hi, I have made a django project and want to deploy it on cloud. Before that i want to decouple all the private information. I want to decouple the database info too, like the username password etc. Any help is appreciated. -- You received this message because you are subscribed to the Google

New to Django, Tutiorial01 not working,

2018-03-29 Thread Bryan Zimmer
Hello all, I managed to get Django and mod_wsgi installed OK. I then followed through with tutorial01, but even though I tried it twice, on two different machines, I have come up blank. This is the output I am getting for the first cut of Tutorial 01. I am using Django 2.0.3 with python3.6

Re: Pythonanywhere Hosting issue

2018-03-29 Thread Jani Tiainen
Hi, This is not issue with Django nor has anything to do with it. You need to contact either pythonanywhere.com or godaddy about your DNS issues. On Thu, Mar 29, 2018 at 8:14 PM, yingi keme wrote: > Hello, > > my site is hosted on pythonanywhere.com. As per this tutorial

Re: Does Daphne of Django Channels send out a heartbeat to keep the connection alive?

2018-03-29 Thread Andrew Godwin
The underlying Daphne code will send PING requests to the client periodically, adjustable with --ping-interval. If it doesn't get a response back before --ping-timeout, it will close the connection. Heroku have their own loadbalancer, so it's possible that is changing how the sockets behave.

Pythonanywhere Hosting issue

2018-03-29 Thread yingi keme
Hello, my site is hosted on pythonanywhere.com. As per this tutorial https://help.pythonanywhere.com/pages/UsingANewDomainForExistingWebApp I have changed the previous configuration from username.pythonanywhere.com to www.mydomain.com. There was a CNAME value webapp-.pythonanywhere.com I

Re: Having ERROR running Django project !!!

2018-03-29 Thread Jamaldin Pro
Thank you! On Thursday, March 29, 2018 at 8:07:07 PM UTC+6, Jani Tiainen wrote: > > Yes. I managed to "fix" your code., > > https://github.com/XJoma/mk-center1/blob/master/home/views.py#L47 > > Firstm never, ever pass locals() anywhere it's best way to introduce a lot > of bugs. Also you have

Does Daphne of Django Channels send out a heartbeat to keep the connection alive?

2018-03-29 Thread lakeshow
Is this even done server side? Or does it need to be implemented with js for the client? I ask because it appears that my connection repeatedly before or during the attempt to connect. It only happens when uploaded to Heroku's servers as well. -- You received this message because

Re: How to upload and save excel data in database django

2018-03-29 Thread Jani Tiainen
Hi, there are few ways to do that, both represented in previous posts. Simpler one is to export data as CSV since it's simpler to read in Python (Python has built-in CSV reader/writer) Complex one is to use some library to read Excel files directly. See

Re: Having ERROR running Django project !!!

2018-03-29 Thread Jani Tiainen
Yes. I managed to "fix" your code., https://github.com/XJoma/mk-center1/blob/master/home/views.py#L47 Firstm never, ever pass locals() anywhere it's best way to introduce a lot of bugs. Also you have quite a good record of from foo import * which is as bad as well. But your problem is that

RE: how to hide filed use empty_value_display

2018-03-29 Thread Matthew Pava
Maybe you are looking for “empty_label=None”? https://docs.djangoproject.com/en/2.0/ref/forms/fields/#django.forms.ModelChoiceField.empty_label From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of shawn...@gmail.com Sent: Wednesday, March 28, 2018 6:09 AM To:

Re: How to upload and save excel data in database django

2018-03-29 Thread arvind yadav
how to use in django please explain On Thursday, March 29, 2018 at 5:51:17 PM UTC+5:30, Lei Zhao wrote: > > I think you use the library xlrd to extract data from the Excel file. > The documentation for the library can be found here at > http://xlrd.readthedocs.io/en/latest/ . > > > On Thursday,

Re: How to upload and save excel data in database django

2018-03-29 Thread Lei Zhao
I think you use the library xlrd to extract data from the Excel file. The documentation for the library can be found here at http://xlrd.readthedocs.io/en/latest/ . On Thursday, March 29, 2018 at 6:03:03 PM UTC+8, arvind yadav wrote: > > this is may data format > > >

Re: Having ERROR running Django project !!!

2018-03-29 Thread Jamaldin Pro
Can you help? -- 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

Re: How to upload and save excel data in database django

2018-03-29 Thread Julio Biason
Hi, I'd export the data to CSV (which is easier to parse), create a Django Command ( https://docs.djangoproject.com/en/2.0/howto/custom-management-commands/#module-django.core.management) that will open the CSV and then add the records. On Thu, Mar 29, 2018 at 7:03 AM, arvind yadav <

Re: models that are not tables but not abstract

2018-03-29 Thread Avraham Serour
Currently for things like this I create a view and serializer that are not related to any model. Of course I lose some introspection code that expect a model, but for the most part I'm able to make an API endpoint with data not from the ORM. Can you elaborate more on your use case? On Thu, Mar

models that are not tables but not abstract

2018-03-29 Thread Younes Ch
I have this recurrent need that I handle entities that are not tables but calculated entities from other models. Consider this example : an entity that I call task that is calculated using the model suggestion a task may be to approve a suggestion, to pilot a suggestion, to close a

How to upload and save excel data in database django

2018-03-29 Thread arvind yadav
this is may data format from django.db import models class RegisterMember(models.Model): GENDER_CHOICES = ( ('M', 'Male'), ('F', 'Female'), )