Skip to content

Instantly share code, notes, and snippets.

@adeleinr
Created April 16, 2010 05:43
Show Gist options
  • Save adeleinr/368069 to your computer and use it in GitHub Desktop.
Save adeleinr/368069 to your computer and use it in GitHub Desktop.
Django Setup Cheatsheet on Ubuntu
Django Setup Cheatsheet on Ubuntu
$ sudo apt-get install python-django
$ sudo apt-get install mysql-server
$ sudo apt-get install python-mysqldb
$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.51a-3ubuntu5.1 (Ubuntu)
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.
mysql> CREATE DATABASE django_db;
Query OK, 1 row affected (0.01 sec)
mysql> GRANT ALL ON django_db.* TO ‘djangouser’@’localhost’ IDENTIFIED BY ‘mypassword’;
Query OK, 0 rows affected (0.03 sec)
mysql> quit
Other Essential Tools
Subversion General
http://artis.imag.fr/~Xavier.Decoret/resources/svn/index.html
import [PATH] URL
Path is what you want to import, URL is where you want to import to.
it was: *svn import /home/svn/myrepo/ file:///home/ben/test -m “initial
import”*
it must be: *svn import /home/ben/test file:///home/svn/myrepo/testfile
-m “initial import” *
svnserve -d -r repospath
svnserve -d -r /var/svn
svn checkout svn://host.example.com/project1 (if a repository is located at /var/svn/project1)
My Instructions
1) svnadmin create /home/bellatrix/webdev/humanexperience_repos
2) svn import /home/bellatrix/webdev/HumanExperience file:///home/bellatrix/webdev/humanexperience_repos/trunk -m “Initial import”
3) cd .. out of the /home/bellatrix/webdev/humanexperience_repos folder
4) svn checkout file:///home/bellatrix/webdev/humanexperience_repos
5) cd /home/bellatrix/webdev/humanexperience_repos/trunk (thats where the checked out files are)
Aptana and PyDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment