I have modified Paint app using Django frame work. Only the back-end is changed other things remains same.
The URL configuration used in Django is url.py.
The URL configuration used in Django is url.py.
from django.conf.urls import patterns, include, url
from mysite.views import home,current_datetime,gallery,save,load
urlpatterns = patterns('',
url('^$', home),
url(r'^time/$', current_datetime),
url(r'^gallery/$', gallery),
url(r'^save/$', save),
url(r'^gallery/([^/]+)$', load),
)
Database used is PostgreSQL
The other important thing is views used in Django which renders the template ,respond to GET and POST request ,and also inserting and retrieving data into database. The code can be found here
No comments:
Post a Comment