Delete app/__init__.py
Browse files- app/__init__.py +0 -15
app/__init__.py
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
from flask import Flask
|
2 |
-
from app.config import Config
|
3 |
-
import os
|
4 |
-
|
5 |
-
def create_app():
|
6 |
-
app = Flask(__name__)
|
7 |
-
app.config.from_object(Config)
|
8 |
-
|
9 |
-
# إنشاء مجلد للملفات المرفوعة
|
10 |
-
os.makedirs(os.path.join(app.instance_path, 'uploads'), exist_ok=True)
|
11 |
-
|
12 |
-
from app.routes import main
|
13 |
-
app.register_blueprint(main)
|
14 |
-
|
15 |
-
return app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|