Skip to content

anandu/django_examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Hello World Project
To setup, Please follow below instructions
#-----------------------------------------#
1. yum install gcc httpd-devel python-pip mod_wsgi
2. pip install Django==1.4 django-annoying
3. cd /var/www/
4. git clone https://github.com/anandu/django_examples.git
5. cd django_examples/django_hello_world
6. python manage.py syncdb
7. python manage.py test hello
8. Create vhost.conf
vim  /etc/httpd/conf.d/vhost.conf
WSGIScriptAlias / /var/www/django_examples/django_hello_world/wsgi.py

<Directory /var/www/django_examples/django_hello_world>
    Order allow,deny
    Allow from all
</Directory>
9. Restart apache
10. vim setting.py , remark line no.15 and uncomment line 16
     15         'NAME': 'hello.sqlite3',                      # Or path to database file if using sqlite3.
     16        # 'NAME': '/var/www/django_examples/django_hello_world/hello.sqlite3',  
/etc/init.d/httpd restart

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%