Monday, November 4, 2013

Deploying Django application.

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/
WSGIPythonPath /home/notroot/django_tut/helloworld/
<Directory /home/notroot/django_tut/helloworld/>
Order deny,allow
Require all granted
Satisfy Any

3. reload apache2 "service apache2 reload"

4. access url/view from the browser example :

Saturday, November 2, 2013

Database relationships are very well explained.
  • One to One Relationships
  • One to Many and Many to One Relationships
  • Many to Many Relationships
  • Self Referencing Relationships