Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-02 Thread James Schneider
On Sep 2, 2017 11:17 PM, "Derek Zeng" wrote: Hi, Today I tried to install my django project on a new mac computer. I used virutalenv to setup the packages. After I start the app by running './mange.py runserver' and access the home page I got the error from django.utils.six.moves import range,

from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-02 Thread Derek Zeng
Hi, Today I tried to install my django project on a new mac computer. I used virutalenv to setup the packages. After I start the app by running './mange.py runserver' and access the home page I got the error from django.utils.six.moves import range, ImportError: cannot import name > 'range'

Re: deploying django project

2017-09-02 Thread Andréas Kühne
You will have to specify your problem more if you want any more help. It's hard to help you troubleshoot without any more information :-) Regards, Andréas 2017-09-02 14:17 GMT+02:00 k2527806 : > I tried this but my problem was not resolved > > On Saturday, September 2, 2017 at 1:44:50 PM UTC+4:

Re: deploying django project

2017-09-02 Thread k2527806
I tried this but my problem was not resolved On Saturday, September 2, 2017 at 1:44:50 PM UTC+4:30, Andréas Kühne wrote: > > You could also check out the tutorial at digitalocean: > > > https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu

Re: deploying django project

2017-09-02 Thread Andréas Kühne
You could also check out the tutorial at digitalocean: https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04 Regards, Andréas 2017-09-02 10:51 GMT+02:00 Antonis Christofides < anto...@djangodeployment.com>: > Hello, > > Deploymen

Re: deploying django project

2017-09-02 Thread Antonis Christofides
Hello, Deployment is such a big thing it can't easily be summarized in small step-by-step guides. This is why people are so often frustrated over such guides and can't get them to work. It's as if a person with zero Python knowledge says "give me a step-by-step guide on how to build a blog with Dj

Re: Render Javascript code

2017-09-02 Thread Antonis Christofides
You probably also need to use the "safe" filter, {{variable_name|safe}}. Antonis Christofides http://djangodeployment.com On 2017-09-02 09:28, James Schneider wrote: > > > On Sep 1, 2017 5:05 PM, "Ahmed Ablak" > wrote: > > Hello,  > > I am using Django and h