Fixed database connection issue
This commit is contained in:
		
							
								
								
									
										0
									
								
								ref-test/app/modules/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								ref-test/app/modules/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										2
									
								
								ref-test/app/modules/bootstrap.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								ref-test/app/modules/bootstrap.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
from flask_bootstrap import Bootstrap
 | 
			
		||||
bootstrap = Bootstrap()
 | 
			
		||||
							
								
								
									
										2
									
								
								ref-test/app/modules/csrf.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								ref-test/app/modules/csrf.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
from flask_wtf.csrf import CSRFProtect
 | 
			
		||||
csrf = CSRFProtect()
 | 
			
		||||
							
								
								
									
										2
									
								
								ref-test/app/modules/db.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								ref-test/app/modules/db.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
from flask_sqlalchemy import SQLAlchemy
 | 
			
		||||
db = SQLAlchemy()
 | 
			
		||||
							
								
								
									
										2
									
								
								ref-test/app/modules/login_manager.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								ref-test/app/modules/login_manager.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
from flask_login import LoginManager
 | 
			
		||||
login_manager = LoginManager()
 | 
			
		||||
							
								
								
									
										2
									
								
								ref-test/app/modules/mail.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								ref-test/app/modules/mail.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
from flask_mail import Mail
 | 
			
		||||
mail = Mail()
 | 
			
		||||
		Reference in New Issue
	
	Block a user