- Django Installation look at Installation Guide
- Creating Project: python django-admin.py startproject MYSITE
- Creating Module(Class): python manage.py startapp CLASSNAME
- Update DB: python manage.py syncdb
- Run Django Server: python manage.py runserver
- View Models in SQL: python manage.py sql MODELNAME
- Validate SQL Models: python manage.py validate
- Create tables in DB:run No.6 then No.4
- Shell Access: python manage.py shell
The Django Debug Toolbar is a configurable set of panels that display various debug information about the current request/response. It is a small toolbar that, when activated, situates itself in the top-right location of the browser window. When particular panels are clicked, more details about that panel's content are displayed. For Installation follow the steps below:
- Download the package from here
- Install python-profile from the Synaptic Package Manager
- Add the debug_toolbar directory to your Django python project directory.
- Add the following middleware to your project's settings.py file: 'debug_toolbar.middleware.DebugToolbarMiddleware',
- Add debug_toolbar to your INSTALLED_APPS setting so Django can find the template files associated with the Debug Toolbar.
- Run Django server
- Open your Django project URL e.g. http://localhost:8000/admin if your admin page is activated
A mini-framework for Django for creating RESTful APIs. Piston is a relatively small Django application that lets you create application programming interfaces (API) for your sites. For usage follow the steps:
Django Python Comment Code:
- # for one line comment
- """ code """ for whole set

No comments:
Post a Comment