We love designing and developing websites, but what really drives us is solving problems and cultivating strong relationships with our clients
Setting up your system to start with Django development on Ubuntu:
By : akshar
1>Being a Python web framework, Django requires Python. If you are on ubuntu, you probably have python installed on your system. If you don't have it installed, give the following command from the terminal:
sudo apt-get install python
This will install Python on your machine.
2>If you will be developing a database driven web application, you need to have a database setup on your system. I feel mysql is good and will tell you about installing mysql. It is pretty easy to install and use. You need to issue the following command from terminal:
sudo apt-get install mysql-server
While installing mysql, you will be prompted to enter a password which you will require when you try to use mysql. Give a password. This should install mysql on your system. To check whether mysql is properly installed or not, give this command from the terminal:
mysql -u root -p
This command would prompt you to enter the password. After entering the password you set earlier for mysql, you would be taken to mysql prompt. If you reach the mysql prompt, it means mysql is successfully installed onto your system. Now, give the command as "exit". This exits from mysql.
3>Installing mysqldb: To write Python scripts that connects to mysql, you need Python interface to mysql. MySQLdb is the python interface to mysql. Give the following command at the terminal:
sudo apt-get install python-mysqldb
If this command executes successfully, python can access the database server.If you want to test this, go to python interactive environment by typing "python" at the terminal: Inside python interactive environment, write the following statement:
import MySQLdb
If this statement excutes without giving an ImportError then you have successfully installed mysqldb and now your python program can interact with mysql.
4>Installing Django Go to this link: https://www.djangoproject.com/download/
I suggest to use option 1 as it worked easily for me
Now, you have django setup on your system and can start developing applications.
Comments
- Test Driven Development in Python
- Deploying Django apps on Heroku
- Developing android applications from command line
- Deploy Django App in 5 Easy Steps
- Project Management Tools for Start-Ups
- Generating a pdf from an image using PIL and django
- Dynamically attaching SITE_ID to Django Caching
- Screencast: How to deploy Django on Heroku
- Deploying Django apps on Heroku
- How to use pep8.py to write better Django code
- rails
- django
- linkroundup
- django opinion
- opinion
- business
- API
- appengine
- python
- satire
- startup
- Uncategorized
- marketing
- personal
- rambling
- search
- interviews
- seo-interviews
- 5startupideas
- ideas
- seo
- tips
- forms
- paypal
- utilities
- datetime
- web2.0
- Amazon
- algorithms
- presentations
- products
- pinax
- satchmo
- ecommerce
- microsoft
- yahoo
- book
- tutorial
- models
- aggreagtion
- meta
- India
- apps
- about
- CSS
- Design
- wordpress
- test slug
- vim
- urls
- reviews
- javascript
- xmpp
- emacs
- Typography
- Grid Theory
- Color Theory
- iphone
- android
- titanium
- mobile applications
- CSS3
- Browser Compatibility
- mobile
- jobs
- lamson
- django setup
- files
- upload
- jsTree
- hierarchical view
- web page
- Treeview
- coffeescript
- request
- response
- South
- django south
- django migration
- --fake
- screencasts
- django caching
- SITE_ID prefix
- review
- code hosting
- comparison
- unfuddle
- fogbugz
- assembla
- github
- project management
- ticketing system
- gunicorn
- deploy
- nginx
- ubuntu
- vps
- android terminal
- terminal
- programming
- TDD
- Test Driven
- Development
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- October 2011
- September 2011
- July 2011
- June 2011
- April 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- June 2010
- April 2010
- March 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- April 2009
- March 2009
- February 2009
- November 2008
- October 2008
- June 2008
- May 2008
- April 2008
http://www.42topics.com/forum/forum/1