forked from cooperdk/YAPO-e-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manage.py
34 lines (31 loc) · 1.31 KB
/
manage.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env python
import os
import sys
from videos import *
import YAPO.settings
import os
x=0
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "YAPO.settings")
from videos import apps
from YAPO import pagination
a = apps
a = pagination
os.system('cls' if os.name == 'nt' else 'clear')
if x == 0:
print("")
print("____ ____ ___ ______ ______ _______ ")
print("\ \ / / / \ | _ \ / __ \ | ____| _ ")
print(" \ \/ / / ^ \ | |_) | | | | | | |__ _| |_ ")
print(" \_ _/ / /_\ \ | ___/ | | | | | __| |_ _|")
print(" | | / _____ \ | | | `--' | | |____ |_| ")
print(" |__| /__/ \__\ | _| \______/ |_______| ")
print("")
print(" For changes to the main branch, please consult the guide.")
print("=================================================================")
print("")
print("Static files dir is: {}".format(YAPO.settings.STATIC_ROOT))
print("Media files dir is: {}".format(YAPO.settings.MEDIA_ROOT))
from django.core.management import execute_from_command_line
x = x + 1
execute_from_command_line(sys.argv)