Monday, November 4, 2013

Deploying Django application. http://tinyurl.com/odz9hfx

1. Install libapache2-mod-wsgi using apt-get utility.

2. Add below lines to /etc/conf/apache2.conf

WSGIScriptAlias / /home/notroot/django_tut/helloworld/helloworld/wsgi.py
WSGIPythonPath /home/notroot/django_tut/helloworld/
<Directory /home/notroot/django_tut/helloworld/>
<Files wsgi.py>
Order deny,allow
Require all granted
Satisfy Any
</Files>
</Directory>

3. reload apache2 "service apache2 reload"

4. access url/view from the browser example : http://127.0.0.1/helloworld

Saturday, November 2, 2013

Database relationships are very well explained. http://tinyurl.com/yktcdlm
  • One to One Relationships
  • One to Many and Many to One Relationships
  • Many to Many Relationships
  • Self Referencing Relationships