localhost do ALLOWED_HOSTS
This commit is contained in:
		
							parent
							
								
									81ef3a8f53
								
							
						
					
					
						commit
						6eaa174d87
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -31,6 +31,7 @@ TEMPLATES[0]['OPTIONS']['debug'] = True | ||||||
| from ipaddress import ip_network | from ipaddress import ip_network | ||||||
| ALLOWED_HOSTS = [str(ip) for ip in ip_network('192.168.0.0/16')] | ALLOWED_HOSTS = [str(ip) for ip in ip_network('192.168.0.0/16')] | ||||||
| ALLOWED_HOSTS.append('127.0.0.1') | ALLOWED_HOSTS.append('127.0.0.1') | ||||||
|  | ALLOWED_HOSTS.append('localhost') | ||||||
| 
 | 
 | ||||||
| # Database | # Database | ||||||
| # https://docs.djangoproject.com/en/1.7/ref/settings/#databases | # https://docs.djangoproject.com/en/1.7/ref/settings/#databases | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue