Started from scratch and failed
Issue with register_blueprint
This commit is contained in:
		
							
								
								
									
										0
									
								
								ref-test/app/quiz/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								ref-test/app/quiz/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										29
									
								
								ref-test/app/quiz/views/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								ref-test/app/quiz/views/__init__.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
from flask import Blueprint
 | 
			
		||||
 | 
			
		||||
quiz = Blueprint(
 | 
			
		||||
    name='quiz',
 | 
			
		||||
    import_name=__name__,
 | 
			
		||||
    template_folder='templates',
 | 
			
		||||
    static_folder='static'
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@quiz.route('/')
 | 
			
		||||
@quiz.route('/home/')
 | 
			
		||||
def _home():
 | 
			
		||||
    return 'Quiz Home Page'
 | 
			
		||||
 | 
			
		||||
@quiz.route('/instructions/')
 | 
			
		||||
def _instructions():
 | 
			
		||||
    return 'Instructions'
 | 
			
		||||
 | 
			
		||||
@quiz.route('/start/')
 | 
			
		||||
def _start():
 | 
			
		||||
    return 'Start Quiz'
 | 
			
		||||
 | 
			
		||||
@quiz.route('/quiz/')
 | 
			
		||||
def _quiz():
 | 
			
		||||
    return 'Quiz Console'
 | 
			
		||||
 | 
			
		||||
@quiz.route('/result/')
 | 
			
		||||
def _result():
 | 
			
		||||
    return 'Quiz Result'
 | 
			
		||||
		Reference in New Issue
	
	Block a user