Skip to content

Commit 0945162

Browse files
committed
adding a manage file for the example app
1 parent e5f1001 commit 0945162

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
from __future__ import absolute_import, print_function, unicode_literals
2+
3+
import sys
4+
5+
6+
def main():
7+
try:
8+
from django.core.management import execute_from_command_line
9+
from django.conf import settings
10+
except ImportError as exc:
11+
raise ImportError(
12+
"Couldn't import Django. Are you sure it's installed and "
13+
"available on your PYTHONPATH environment variable? Did you "
14+
"forget to activate a virtual environment?"
15+
) from exc
16+
17+
settings.configure(
18+
ROOT_URLCONF="wolframwebengine.examples.djangoapp.urls", ALLOWED_HOSTS="*", DEBUG=True
19+
)
20+
21+
execute_from_command_line(sys.argv)
22+
23+
24+
if __name__ == "__main__":
25+
main()

0 commit comments

Comments
 (0)