python - how to run the django server on hostname? -


i wanted run django server on hostname in local system. django has own server ... runs on localhost:8000 want run on

cpanel-django.django-project.com:8000 

i tried using:

python manage.py runserver cpanel-django.django-project.com:8000 

i getting error:

validating models...  0 errors found march 06, 2014 - 06:21:24 django version 1.6.2, using settings 'moclient.settings' starting development server @ http://cpanel-django.django-project.com:8383/ quit server control-c. error: [errno -5] no address associated hostname 

you need edit hosts file , rename localhost cpanel-django.django-project.com.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

angularjs - ng-repeat duplicating items after page reload -