Use Class-based view
Replace hard-coded urls with nameed ones in templates.