davidtran999 commited on
Commit
4e5d83f
·
verified ·
1 Parent(s): 0ade73a

Upload backend/hue_portal/manage.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. backend/hue_portal/manage.py +17 -0
backend/hue_portal/manage.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ import os
3
+ import sys
4
+ from pathlib import Path
5
+
6
+ # Add parent directory to Python path
7
+ BASE_DIR = Path(__file__).resolve().parent.parent
8
+ if str(BASE_DIR) not in sys.path:
9
+ sys.path.insert(0, str(BASE_DIR))
10
+
11
+ def main():
12
+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hue_portal.hue_portal.settings")
13
+ from django.core.management import execute_from_command_line
14
+ execute_from_command_line(sys.argv)
15
+ if __name__ == "__main__":
16
+ main()
17
+