Use this to determine what different elements in your markup will look like.
This idea stolen from Dave Shea.
| set :application, "yoursite_com" | |
| set :user, "you" | |
| set :scm_username, user | |
| set :repository, "[email protected]:#{scm_username}/#{application}.git" | |
| set :deploy_to, "/home/#{user}/public_html/#{application}" | |
| set :scm, :git | |
| set :django_location, "/home/#{user}/sources/django/trunk" | |
| set :django_admin_media, "/django/contrib/admin/media" | |
| set :domain, "example.com" |
| <VirtualHost *:80> | |
| ServerName example.com | |
| ServerAlias www.example.com | |
| # - If you want to serve media files from the same server, you need to | |
| # define `DocumentRoot` and the extra `Location` for the static folder. | |
| # - If you also want to have your media folder inside your Django project, | |
| # a `public/` folder is probably not a bad idea. | |
| DocumentRoot /home/username/public_html/project_name/public/ |
| INSTALLED_APPS = ( | |
| 'your_app', | |
| 'django.contrib.admin', | |
| 'django.contrib.admindocs', | |
| ... | |
| ) | |
| <script src="http://www.google.com/jsapi" type="text/javascript"></script> | |
| <script type="text/javascript">google.load("jquery", "1.2.6");</script> | |
| <script src="/js/load.js" type="text/javascript"></script> |
| a:link { color: blue; } | |
| a:visited { color: purple; } | |
| a:hover { color: purple; } | |
| a:active { color: red; } |
Use this to determine what different elements in your markup will look like.
This idea stolen from Dave Shea.
| from django import forms | |
| from myapp.models import Mymodel | |
| class MyForm(forms.ModelForm): | |
| class Meta: | |
| model=Mymodel | |
| <!-- Download: http://jquery.khurshid.com/ifixpng.php --> | |
| <script src="/js/jquery.ifixpng.js" type="text/javascript"></script> | |
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v2.0 | 20110126 | |
| License: none (public domain) */ | |
| html, body, div, span, applet, object, iframe, | |
| h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
| a, abbr, acronym, address, big, cite, code, | |
| del, dfn, em, img, ins, kbd, q, s, samp, | |
| small, strike, strong, sub, sup, tt, var, | |
| b, u, i, center, |
| # http://emmby.blogspot.com/2008/05/installing-python-pil-on-mac-os-x-1052.html | |
| sudo port install py25-pil | |
| # In ~/.bash_login | |
| export PYTHONPATH="/opt/local/lib/python2.5/site-packages:$PYTHONPATH" | |