Re: Django Migration File with Invalid import (import no longer exists)

2016-12-05 Thread Tim Graham
Hi Ray, Follow the advice at https://docs.djangoproject.com/en/stable/topics/migrations/#historical-models : "To remove old references, you can squash migrations or, if there aren’t many references, copy them

How to create static selection menu on the side of the page which the body of the page will display dynamic content based on user input?

2016-12-05 Thread mmbatayneh
I have an application that shows content and charts related to the content. It works this way: First, users select the the type of content they want to explore, and second, they provide input (via a form) which controls what parts of content will be viewed to the user. I am thinking of the

Re: Websocket connection failed in production with Django-Channels

2016-12-05 Thread Andrew Godwin
For future reference, this discussion is also happening here: https://github.com/django/channels/issues/445 On Mon, Dec 5, 2016 at 2:04 AM, yass45 wrote: > Hello, > > > I try to use Django Channels on my website developed with Django 1.10 and > Python 3.5. This website

Django Migration File with Invalid import (import no longer exists)

2016-12-05 Thread Ray Leyendecker
I recently update the oauth2 library I am using in my project. There are now import references in my (already run) migration files that no longer exist (as a result of the oauth2 upgrade). As a result the make migrations command fails. How is the best way to handle this problem? I am also

Problem with Django and python social auth

2016-12-05 Thread Alessandro Bispo dos Santos
Hello. I'm new in Django. Has anyone here worked with python-social-auth? I have an application here that was made using version 1.6 of Django, and I am trying to migrate to version 1.10. It turns out I'm going through some problems, and I'm not sure if it's because of differences between

Re: Issue with manage.py runserver

2016-12-05 Thread Antonis Christofides
Try apt-get install --reinstall python and see if it fixes the problem. If it doesn't, there are more drastic things you can do, but they can cripple your system. Antonis Christofides http://djangodeployment.com On 2016-12-05 18:12, ninos...@gmail.com wrote: > > Actually this isn't a virtual

Re: Django Security issue

2016-12-05 Thread 'Aaron C. de Bruyn' via Django users
It's a little un-clear how you are setting up your Django deployment, but the 'dev server' shouldn't be exposed directly to the internet. Have you read through the deployment guides? https://docs.djangoproject.com/en/1.10/howto/deployment/ -A On Sun, Dec 4, 2016 at 11:43 PM, deepak gupta

Re: Issue with manage.py runserver

2016-12-05 Thread ninosm12
Actually this isn't a virtual server. Reinstalling everything is not a good idea. So what should I do? Any "harmless" way to fix this stuff without loosing my files. Loosing python packages would not be a problem. So what should I do now. Could you please tell each step so I don't screw up

Re: Issue with manage.py runserver

2016-12-05 Thread Antonis Christofides
Apparently you have touched your system's Python installation, which is a bad idea. If this is a virtual server and you don't have anything else in it, your best bet would be to reinstall it from scratch. Antonis Christofides http://djangodeployment.com On 2016-12-05 17:14, ninos...@gmail.com

Re: Issue with manage.py runserver

2016-12-05 Thread ninosm12
Thanks for the dude but I think we have another problem. when I try to install it I get the following error : Reading package lists... Done Building dependency tree Reading state information... Done python-sqlite is already the newest version. The following packages were automatically

Re: Issue with manage.py runserver

2016-12-05 Thread Antonis Christofides
Install SQLite: apt install python-sqlite -- Antonis Christofides http://djangodeployment.com/ On Mon, 5 Dec 2016 03:28:34 -0800 (PST), ninos...@gmail.com wrote: > Hi, > I deleted that project file and made a new one. Now I got the following > error > Unhandled exception in thread started

Websocket connection failed in production with Django-Channels

2016-12-05 Thread yass45
Hello, I try to use Django Channels on my website developed with Django 1.10 and Python 3.5. This website is hosted on Webfaction. My problem is about the socket, the connection doesn't works, I have this error when I go to the home page of the website : WebSocket connection to

Re: wsgiref - When does the complexity of question require posting to the Developers or other forums?

2016-12-05 Thread NoviceSortOf
On 12/5/2016 7:44 AM, Derek wrote: > > This may be "off topic" - so feel free to disregard! - but why "blogs on porting from 1.1 to 1.6"? If you are in the process of upgrading, then why not keep going to at least 1.8, which is the oldest version still receiving patches and support? Not off

Re: Issue with manage.py runserver

2016-12-05 Thread ninosm12
Hi, I deleted that project file and made a new one. Now I got the following error Unhandled exception in thread started by Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 226, in wrapper fn(*args, **kwargs) File

Re: Accessing to objects of a dynamic way in django template

2016-12-05 Thread ludovic coues
You could write a custom filter to apply on the queryset. 2016-12-05 1:12 GMT+01:00 Bernardo Garcia : > I have the following class based view in which I perform to queryset: > > > class PatientDetail(LoginRequiredMixin, DetailView): > >model = PatientProfile > >