Skip to content

Instantly share code, notes, and snippets.

View FernandoEscher's full-sized avatar
🏠
Working from home

Fernando Irias Escher FernandoEscher

🏠
Working from home
  • Tegucigalpa, Honduras
View GitHub Profile
@matpowel
matpowel / tableless.rb
Created July 23, 2011 10:04
An ActiveRecord emulating Tableless model which works with Rails 3.1
class Tableless < ActiveRecord::Base
def self.column(name, sql_type = nil, default = nil, null = true)
columns << ActiveRecord::ConnectionAdapters::Column.new( name.to_s, default, sql_type.to_s, null )
end
def self.columns()
@columns ||= [];
end
WSGIPythonEggs /var/root/
<VirtualHost *:80>
ServerAdmin webmaster@localhost
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /home/ruta/a/proyecto/django.wsgi
WSGIPassAuthorization On
DocumentRoot /var/www
Alias /static/ /home/ruta/a/proyecto/static/
<Directory /home/ruta/a/proyecto/static>