datasparkri / profiles Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
dropdb $1
createdb -T template_postgis $1
bootstrap expects an argument. What argument should I give it?
An example of what I mean can be viewed here
The indicators
variable is commented out, but still being used in the if else statement of data_domain
and none of the GET parameters are actually being used.
Is it necessary to continue to use the if/else statement? Could something like this work instead?
def data_domain(request, geo_level_slug, geo_record_slug, data_domain_slug):
""" Overview of a data domain for a geo record """
level = get_object_or_404(GeoLevel, slug=geo_level_slug)
try:
record = GeoRecord.objects.defer('mappings', 'components', 'parent').get(level=level, slug=geo_record_slug)
except GeoRecord.DoesNotExist:
raise Http404
filter_key = ''
if level.related_within:
geoids = json.loads(record.geo_id_segments)
sum_lev = level.related_within.summary_level
filter_key = geoids[sum_lev]
domain = get_object_or_404(DataDomain, slug=data_domain_slug)
levels = get_levels_as_list()
return render_to_response('profiles/data_domain.html',
{
'geo_level': level,
'geo_record': record,
'data_domain': domain,
'level_json':json.dumps({'id':level.id, 'name':level.lev_name, 'slug':level.slug, 'sumlev':level.summary_level}),
'levels': json.dumps(levels),
'rec_json':json.dumps({'id':record.id, 'name': record.name, 'slug':record.slug, 'geom_id':record.get_geom_id(), 'geo_id':record.geo_id}),
'filter_key': filter_key,
},
context_instance=RequestContext(request))
Most browsers block loading of non-https resources on sites served over https.
The Feedback feature has to be commented out of /communityprofiles/templates/profiles/data_domain.html
if you enable SSL on your Profiles instance.
Hi --
Some researchers asked if I could help them set up this system, but for Ohio, and then load in slightly different data.
Has anyone used this system for any other regions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.