Really (I mean *really*) simple index view
This commit is contained in:
		
							parent
							
								
									959197b8c7
								
							
						
					
					
						commit
						97a2191b1a
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		
							
								
								
									
										3
									
								
								urls.py
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								urls.py
									
										
									
									
									
								
							|  | @ -4,10 +4,13 @@ from django.conf.urls import patterns, url, include | |||
| from django.contrib import admin | ||||
| import re | ||||
| 
 | ||||
| import views | ||||
| 
 | ||||
| admin.autodiscover() | ||||
| 
 | ||||
| urlpatterns = patterns('', | ||||
|     url(r'^%s(?P<path>.*)$' % re.escape(settings.STATIC_URL.lstrip('/')), 'django.contrib.staticfiles.views.serve', {'insecure': True}), | ||||
|     url(r'^admin/', include(admin.site.urls)), | ||||
|     url(r'^$', views.index, name='index'), | ||||
|     url(r'', include('social_auth.urls')), | ||||
| ) | ||||
|  |  | |||
							
								
								
									
										5
									
								
								views.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								views.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| from django.shortcuts import render_to_response | ||||
| 
 | ||||
| 
 | ||||
| def index(request): | ||||
|     return render_to_response('login.html') | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue