-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Python3 support - Django #144
Changes from 10 commits
6dd11b3
d0bfaa8
2cf458b
b2df0ce
3c3e4a3
9926ead
f8d500f
d967608
4fa36e2
834358b
ca4d483
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
*.swp | ||
*.~ | ||
*.py[co] | ||
__pycache__/ | ||
.idea/ | ||
nohup.out | ||
.gcloudignore | ||
cloud_sql_proxy | ||
.vscode/ | ||
.fuse_hidden* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[submodule "sympy"] | ||
path = sympy | ||
url = git://github.com/sympy/sympy.git | ||
url = https://github.com/sympy/sympy.git | ||
[submodule "mpmath"] | ||
path = mpmath | ||
url = https://github.com/fredrik-johansson/mpmath | ||
[submodule "static"] | ||
path = static | ||
url = git@github.com:sympy/sympy-web-static.git | ||
url = https://github.com/sympy/sympy-web-static.git |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
indexes: | ||
|
||
# AUTOGENERATED | ||
|
||
# This index.yaml is automatically updated whenever the dev_appserver | ||
# detects that a new type of query is run. If you want to manage the | ||
# index.yaml file manually, remove the above marker line (the line | ||
# saying "# AUTOGENERATED"). If you want to manage some indexes | ||
# manually, move them above the marker line. The index.yaml file is | ||
# automatically uploaded to the admin console when you next deploy | ||
# your application using appcfg.py. | ||
|
||
- kind: Searches | ||
properties: | ||
- name: private | ||
- name: timestamp | ||
direction: desc | ||
|
||
- kind: Searches | ||
properties: | ||
- name: user_id | ||
- name: timestamp | ||
direction: desc | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env python | ||
"""Django's command-line utility for administrative tasks.""" | ||
import os | ||
import sys | ||
|
||
|
||
def main(): | ||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sympy_live.settings') | ||
try: | ||
from django.core.management import execute_from_command_line | ||
except ImportError as exc: | ||
raise ImportError( | ||
"Couldn't import Django. Are you sure it's installed and " | ||
"available on your PYTHONPATH environment variable? Did you " | ||
"forget to activate a virtual environment?" | ||
) from exc | ||
execute_from_command_line(sys.argv) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Django==3.0.4 | ||
django-cors-headers==3.2.1 | ||
gunicorn==20.0.4 | ||
matplotlib==3.2.0 | ||
mysqlclient==1.4.6 | ||
numpy==1.18.1 | ||
scipy==1.4.1 | ||
Comment on lines
+6
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where do we use these? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They were to be used in case we make SymPy Live more generic. I think I should remove them and address that issue separately. |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of these? I highly doubt that it is supported in Python3 runtime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was automatically generated while running dev_appserver for Python2 local testing. I think it should be removed.