Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!


Pretty Urls System

Why we need it:

Offers and hubs have a long url. If you want to enter URL on the mobile device - be reserved by patience.

How it works:

Open in your browser this page: http://t/ (“t” page) Copy some long URL and paste in the “Url” field at the “t” page. Click “Add url!”. New url will be added to the top of urls list. Remember number, left of the link. Take your mobile device and open the page “t/go/{number}”. Example: t/go/5 .

Running a python dev server:


  • python 2.6
  • pip
  • virtualenv
  • mongodb

the flow:

$ cd /path/to/cloned/project/
$ virtualenv --no-site-packages env
$ source env/bin/activate
[env]$ pip install -r deps.txt
[env]$ ./

Deploy using uwsgi:


  • Apache2 web server compiled with mod_proxy
  • uwsgi (
  • mongodb

The flow:

  • add/uncomment this lines in https's config:
LoadModule              proxy_module            modules/
LoadModule              proxy_http_module       modules/
  • add new virtual host into httpd's config:
<VirtualHost *:80>
ServerName t
ProxyPass / http://localhost:3031/
  • modify uwsgi.ini file to your needs (change paths)
  • run uwsgi instanse like so:
$ /usr/bin/uwsgi --pidfile /var/run/ -d --ini /var/www/urlz/uwsgi.ini

or look for your linux distribution prefrered run method (init.d/rc.d scripts and so on)

Recent activity

Maxim Molvinskih

Commits by Maxim Molvinskih were pushed to cf8/PrettyUrls

641d2be - refactoring, t/<id> route added

Commits by cf8 were pushed to cf8/PrettyUrls

b36df5d - gitignore modified again : *.iml files added, leftover index.html removed
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.