File tree 4 files changed +173
-156
lines changed
4 files changed +173
-156
lines changed Original file line number Diff line number Diff line change 1
1
# Final-Project-Michael-Buntarman-PBD-Sanbercode-Batch-40
2
2
Python Backend Development (Batch 40) Final Project
3
+
4
+ This project is live at http://micbun.pythonanywhere.com
5
+ Feel free to check it out!
Original file line number Diff line number Diff line change 2
2
from flask import Flask
3
3
from flask_jwt_extended import JWTManager
4
4
from flask_restx import Api
5
- # from flask_restplus import Api
6
5
from flask_sqlalchemy import SQLAlchemy
7
6
8
-
9
7
env = dotenv_values (".env" )
10
8
11
9
@@ -27,11 +25,6 @@ class Config:
27
25
order_space = rest_app .namespace ('Order' , description = "CRUD Order" )
28
26
database_space = rest_app .namespace ('Database' , description = "Database" )
29
27
user_space = rest_app .namespace ('Users' , description = "CRUD User" )
30
- # rest_app.add_namespace(user_space)
31
- # rest_app.add_namespace(product_space)
32
- # rest_app.add_namespace(order_space)
33
- # rest_app.add_namespace(database_space)
34
- # rest_app.add_namespace(main_space)
35
28
db = SQLAlchemy (app )
36
29
jwt = JWTManager (app )
37
30
from router import *
Original file line number Diff line number Diff line change 1
- from dotenv import dotenv_values
2
-
3
1
import app
4
2
5
3
db = app .db
@@ -35,6 +33,7 @@ def to_dict(self):
35
33
"password" : self .password
36
34
}
37
35
36
+
38
37
class Product (db .Model ):
39
38
__tablename__ = 'products'
40
39
id = db .Column (db .Integer , primary_key = True , autoincrement = True )
You can’t perform that action at this time.
0 commit comments