forked from eleyine/WearHacks-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanage.py
More file actions
18 lines (14 loc) · 645 Bytes
/
manage.py
File metadata and controls
18 lines (14 loc) · 645 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python
import os
import sys
from django.conf import settings
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wearhacks_website.settings")
# see wearhacks_website/settings/__init__.py
os.environ.setdefault("APP_ENV", "dev")
if settings.DEBUG:
error_code = os.system("lessc static/stylesheets/less/styles.less static/stylesheets/css/styles.css")
if error_code > 0:
print "Warning: Failed to compile LESS files. Make sure you have LESS CSS installed."
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)