We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5f1001 commit 0945162Copy full SHA for 0945162
wolframwebengine/examples/djangoapp/manage.py
@@ -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