Skip to content

Instantly share code, notes, and snippets.

Problem installing fixture '/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/fixtures/test_location_level.json': Traceback (most recent call last):
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 174, in handle
obj.save(using=using)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/serializers/base.py", line 165, in save
models.Model.save_base(self.object, using=using, raw=True)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/base.py", line 553, in save_base
result = manager._insert(values, return_id=update_pk, using=using)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/manager.py", line 195, in _insert
return insert_query(self.model, values, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-p
@reverocean
reverocean / stacktrack
Created May 4, 2012 08:58
Following error
ERROR: test_should_render_alldata_view_if_logged_in (datawinners.alldata.tests.test_alldata.TestAllData)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/alldata/tests/test_alldata.py", line 16, in test_should_render_alldata_view_if_logged_in
response = self.client.get('/alldata/')
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 229, in get
return self.request(**r)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
@reverocean
reverocean / gist:2601514
Created May 5, 2012 10:50
When we run: python manage.py test, we have the following fails
======================================================================
FAIL: test_should_render_home_view (datawinners.home.tests.test_home.TestHome)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/home/tests/test_home.py", line 14, in test_should_render_home_view
self.assertEquals(response.status_code,200)
AssertionError: 404 != 200
======================================================================
FAIL: test_should_render_link_to_trial_registration (datawinners.home.tests.test_home.TestHome)
<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
metadata-complete="true">
<servlet>
<servlet-name>bookstore</servlet-name>
<servlet-class> org.springframework.web.servlet.DispatcherServlet
</servlet-class> <load-on-startup>1</load-on-startup>
public class Foo {
private int value;
private final static String constant = "Test";
private static int money = 12;
public Foo(int value){
this.value = value;
}
public void foo(){
@reverocean
reverocean / DYLD_LIBRARY_PATH
Created February 22, 2019 05:09 — forked from Brideau/DYLD_LIBRARY_PATH
Install GDAL with Java bindings on macOS High Sierra
export DYLD_LIBRARY_PATH=/usr/local/opt/gdal2/lib:$DYLD_LIBRARY_PATH
0x87DCd1B9C06ab87d4f8cB3af741C67c96f980F8f