Thursday, February 4, 2016

Installing DJANGO in CentOS release 6.7 (Final)

You need internet connection in your server.

# cd /opt/
# wget http://mirrors.nl.eu.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -Uvh epel-release-6-8.noarch.rpm

# rm epel-release-6-8.noarch.rpm -f

Now install python but most of CENTOS has installed python by default
# yum install python
# yum install Django

Now this is how to check the version after you successfully installed it.

# python
>>> import django
>>> print djnago.get_version()

You may now create a project
# django-admin startproject mysite
# cd mysite/

# python manage.py runserver

by default this will run in port 8000
If you want to run in other port and by IP you may type this.

# python manage.py runserver 192.168.1.85:8001

 

Done! :)

No comments:

Post a Comment