Bubaa001 commited on
Commit
ea35a76
·
verified ·
1 Parent(s): 397ea66

Upload 6 files

Browse files
Files changed (6) hide show
  1. .env +3 -0
  2. .gitignore +9 -0
  3. README.md +9 -11
  4. create_admin.py +13 -0
  5. requirements.txt +72 -0
  6. wsgi.py +6 -0
.env ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ SECRET_KEY=your-secure-secret-key
2
+ MAIL_USERNAME=egliszaratus@gmail.com
3
+ MAIL_PASSWORD=xwzd nogw tavi qgtg
.gitignore ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Virtual environment
2
+ venv/
3
+ env/
4
+
5
+ # Python cache files
6
+ __pycache__/
7
+ *.pyc
8
+ *.pyo
9
+ *.pyd
README.md CHANGED
@@ -1,11 +1,9 @@
1
- ---
2
- title: Web1.5
3
- emoji: 👁
4
- colorFrom: blue
5
- colorTo: indigo
6
- sdk: docker
7
- pinned: false
8
- short_description: school web
9
- ---
10
-
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
+ # SchoolTemplate Flask App
2
+ A Flask-based web application for school management.
3
+
4
+ ## Setup
5
+ 1. Clone the repo: `git clone https://github.com/bubaa001/schooltemplate.git`
6
+ 2. Create a virtual environment: `python -m venv venv`
7
+ 3. Activate it: `venv\Scripts\activate`
8
+ 4. Install dependencies: `pip install -r requirements.txt`
9
+ 5. Run the app: `python run.py`
 
 
create_admin.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # create_admin.py
2
+ from app import create_app, db
3
+ from app.models import Admin
4
+
5
+ app = create_app()
6
+
7
+ with app.app_context():
8
+ db.create_all()
9
+ admin = Admin(username='admin1')
10
+ admin.set_password('emoji3')
11
+ db.session.add(admin)
12
+ db.session.commit()
13
+ print("Admin user created successfully!")
requirements.txt ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ alembic==1.15.2
2
+ antiorm==1.2.1
3
+ BareNecessities==0.2.8
4
+ blinker==1.9.0
5
+ CacheControl==0.14.2
6
+ cachetools==5.5.2
7
+ certifi==2025.1.31
8
+ cffi==1.17.1
9
+ chardet==5.2.0
10
+ charset-normalizer==3.4.1
11
+ click==8.1.8
12
+ colorama==0.4.6
13
+ config==0.5.1
14
+ cryptography==44.0.2
15
+ db==0.1.1
16
+ distlib==0.3.9
17
+ filelock==3.17.0
18
+ firebase-admin==6.6.0
19
+ Flask==3.1.0
20
+ Flask-Login==0.6.3
21
+ Flask-Mail==0.10.0
22
+ Flask-Migrate==4.1.0
23
+ Flask-SQLAlchemy==3.1.1
24
+ Flask-WTF==1.2.2
25
+ gitdb==4.0.12
26
+ GitPython==3.1.44
27
+ google-api-core==2.24.2
28
+ google-api-python-client==2.163.0
29
+ google-auth==2.38.0
30
+ google-auth-httplib2==0.2.0
31
+ google-cloud-core==2.4.3
32
+ google-cloud-firestore==2.20.1
33
+ google-cloud-storage==3.1.0
34
+ google-crc32c==1.6.0
35
+ google-resumable-media==2.7.2
36
+ googleapis-common-protos==1.69.1
37
+ greenlet==3.1.1
38
+ grpcio==1.71.0
39
+ grpcio-status==1.71.0
40
+ gunicorn==23.0.0
41
+ httplib2==0.22.0
42
+ idna==3.10
43
+ itsdangerous==2.2.0
44
+ Jinja2==3.1.6
45
+ Mail==2.1.0
46
+ Mako==1.3.10
47
+ MarkupSafe==3.0.2
48
+ msgpack==1.1.0
49
+ packaging==24.2
50
+ pillow==11.2.1
51
+ platformdirs==4.3.6
52
+ proto-plus==1.26.1
53
+ protobuf==5.29.3
54
+ psycopg2-binary==2.9.10
55
+ pyasn1==0.6.1
56
+ pyasn1_modules==0.4.1
57
+ pycparser==2.22
58
+ PyJWT==2.10.1
59
+ pyparsing==3.2.1
60
+ python-dotenv==1.1.0
61
+ reportlab==4.3.1
62
+ requests==2.32.3
63
+ rsa==4.9
64
+ smmap==5.0.2
65
+ SQLAlchemy==2.0.40
66
+ stripe==12.0.0
67
+ typing_extensions==4.13.2
68
+ uritemplate==4.1.1
69
+ urllib3==2.3.0
70
+ virtualenv==20.29.2
71
+ Werkzeug==3.1.3
72
+ WTForms==3.2.1
wsgi.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from app import create_app
2
+
3
+ app = create_app()
4
+
5
+ if __name__ == "__main__":
6
+ app.run()