Skip to content

Instantly share code, notes, and snippets.

View jasonferrier's full-sized avatar
👨‍💻

Jason Ferrier jasonferrier

👨‍💻
View GitHub Profile
@jasonferrier
jasonferrier / tnt migration
Created April 25, 2012 23:25
migration issue
[2168][jasonferrier.jlfMBP: tntsite][master]$ python manage.py migrate tnt
/Users/jasonferrier/Sites/transitandtrails/tntsite/tnt/migrations/0019_auto__add_field_userprofile_api_secret__add_field_userprofile_api_key.py:9: SyntaxWarning: import * only allowed at module level
def forwards(self, orm):
Running migrations for tnt:
- Migrating forwards to 0052_auto__del_field_campground_bathrooms__del_field_campground_county__del.
> tnt:0001_initial
FATAL ERROR - The following SQL query failed: SELECT AddGeometryColumn('tnt_trailhead', 'location', 4326, 'POINT', 2);
The error was: permission denied for relation spatial_ref_sys
CONTEXT: SQL statement "SELECT SRID FROM spatial_ref_sys WHERE SRID = new_srid"
PL/pgSQL function "addgeometrycolumn" line 75 at SQL statement
@jasonferrier
jasonferrier / gist:1944396
Created February 29, 2012 21:12
jQuery noConflict in *different namespace* in order to continue using one or more jQuery versions
<!-- Jquery for fancy things!-->
<script language="JavaScript" src="/js/public/jquery-latest.min.js" type="text/javascript"></script>
<script>
// to make fancy buttons. Uses noConflict just in case
var $jQ = jQuery.noConflict();
// Use jQuery via $j(...)
$jQ(document).ready(function(){