Further switch to relative imports
This commit is contained in:
		
							parent
							
								
									47a30a750a
								
							
						
					
					
						commit
						15ce31eedb
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -1,10 +1,10 @@ | ||||||
| from django.shortcuts import render | from django.shortcuts import render | ||||||
| 
 | 
 | ||||||
| import conservancy | from ... import ParameterValidator | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def index(request): | def index(request): | ||||||
|     with conservancy.ParameterValidator(request.GET, 'upgrade_id') as validator: |     with ParameterValidator(request.GET, 'upgrade_id') as validator: | ||||||
|         try: |         try: | ||||||
|             amount_param = float(request.GET['upgrade']) |             amount_param = float(request.GET['upgrade']) | ||||||
|         except (KeyError, ValueError): |         except (KeyError, ValueError): | ||||||
|  |  | ||||||
|  | @ -4,7 +4,7 @@ import os.path | ||||||
| from django.http import HttpResponse | from django.http import HttpResponse | ||||||
| from django.template.response import TemplateResponse | from django.template.response import TemplateResponse | ||||||
| 
 | 
 | ||||||
| from conservancy.local_context_processors import fundgoal_lookup | from ..local_context_processors import fundgoal_lookup | ||||||
| 
 | 
 | ||||||
| STATIC_ROOT = os.path.abspath(os.path.dirname(__file__)) | STATIC_ROOT = os.path.abspath(os.path.dirname(__file__)) | ||||||
| FILESYSTEM_ENCODING = 'utf-8' | FILESYSTEM_ENCODING = 'utf-8' | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue