Skip to content

Commit

Permalink
django project name changed to sympy_live
Browse files Browse the repository at this point in the history
  • Loading branch information
prshnt19 committed Mar 16, 2020
1 parent f8d500f commit d967608
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion app.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
runtime: python37
entrypoint: gunicorn -b :8080 sympy_live_django.wsgi
entrypoint: gunicorn -b :8080 sympy_live.wsgi

handlers:
# redirect Sphinx extension
Expand Down
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sympy_live_django.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sympy_live.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down
52 changes: 26 additions & 26 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
asgiref==3.2.3
bitarray==1.2.1
cachetools==4.0.0
certifi==2019.11.28
chardet==3.0.4
cycler==0.10.0
# asgiref==3.2.3
# bitarray==1.2.1
# cachetools==4.0.0
# certifi==2019.11.28
# chardet==3.0.4
# cycler==0.10.0
Django==3.0.2
django-cors-headers==3.2.1
google-api-core==1.16.0
google-auth==1.11.0
google-cloud==0.34.0
google-cloud-core==1.2.0
google-cloud-storage==1.25.0
google-resumable-media==0.5.0
googleapis-common-protos==1.51.0
# google-api-core==1.16.0
# google-auth==1.11.0
# google-cloud==0.34.0
# google-cloud-core==1.2.0
# google-cloud-storage==1.25.0
# google-resumable-media==0.5.0
# googleapis-common-protos==1.51.0
gunicorn==20.0.4
idna==2.8
kiwisolver==1.1.0
# idna==2.8
# kiwisolver==1.1.0
matplotlib==3.1.2
mysqlclient==1.4.6
numpy==1.18.1
protobuf==3.11.2
pyasn1==0.4.8
pyasn1-modules==0.2.8
pyparsing==2.4.6
python-dateutil==2.8.1
pytz==2019.3
requests==2.22.0
rsa==4.0
six==1.14.0
sqlparse==0.3.0
urllib3==1.25.8
# protobuf==3.11.2
# pyasn1==0.4.8
# pyasn1-modules==0.2.8
# pyparsing==2.4.6
# python-dateutil==2.8.1
# pytz==2019.3
# requests==2.22.0
# rsa==4.0
# six==1.14.0
# sqlparse==0.3.0
# urllib3==1.25.8
16 changes: 8 additions & 8 deletions shell/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

import numpy

from sympy_live_django.settings import BASE_DIR, DEBUG
from sympy_live.settings import BASE_DIR, DEBUG
from . import rlcompleter
from .models import Searches, User

Expand Down Expand Up @@ -211,7 +211,7 @@ def set_global(session, name, value):
"""
# We need to disable the pickling optimization here in order to get the
# correct values out.

# blob = b64encode(fast_dumps(value, 1)).decode('utf-8')
blob = b64encode(pickle.dumps(value, 1)).decode('utf-8')

Expand Down Expand Up @@ -399,7 +399,7 @@ def complete(self, statement, session):
"""Autocomplete the statement in the session's globals."""

statement_module = types.ModuleType('__main__')
import builtins
# import builtins
# statement_module.__builtin__ = __builtins__
statement_module.__builtins__ = __builtins__

Expand Down Expand Up @@ -485,7 +485,7 @@ def evaluate(self, statement, session, printer=None, stream=None):

# use this request's __builtin__, since it changes on each request.
# this is needed for import statements, among other things.
import builtins
# import builtins
statement_module.__builtins__ = __builtins__

# create customized display hook
Expand Down Expand Up @@ -795,13 +795,13 @@ def evaluate(request):
live = Live()
session = request.session
session.set_expiry(6000)
if not ('unpicklables' in session):
if not 'unpicklables' in session:
session['unpicklables'] = [line for line in INITIAL_UNPICKLABLES]
if not ('global_names' in session):
if not 'global_names' in session:
session['global_names'] = []
if not ('globals' in session):
if not 'globals' in session:
session['globals'] = []
if not ('unpicklable_names' in session):
if not 'unpicklable_names' in session:
session['unpicklable_names'] = []

# session.modified = True
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions sympy_live_django/asgi.py → sympy_live/asgi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
ASGI config for sympy_live_django project.
ASGI config for sympy_live project.
It exposes the ASGI callable as a module-level variable named ``application``.
Expand All @@ -11,6 +11,6 @@

from django.core.asgi import get_asgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sympy_live_django.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sympy_live.settings')

application = get_asgi_application()
6 changes: 3 additions & 3 deletions sympy_live_django/settings.py → sympy_live/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Django settings for sympy_live_django project.
Django settings for sympy_live project.
Generated by 'django-admin startproject' using Django 3.0.3.
Expand Down Expand Up @@ -53,7 +53,7 @@
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'sympy_live_django.urls'
ROOT_URLCONF = 'sympy_live.urls'

TEMPLATES = [
{
Expand All @@ -71,7 +71,7 @@
},
]

WSGI_APPLICATION = 'sympy_live_django.wsgi.application'
WSGI_APPLICATION = 'sympy_live.wsgi.application'


# Database
Expand Down
2 changes: 1 addition & 1 deletion sympy_live_django/urls.py → sympy_live/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""sympy_live_django URL Configuration
"""sympy_live URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Expand Down
4 changes: 2 additions & 2 deletions sympy_live_django/wsgi.py → sympy_live/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
WSGI config for sympy_live_django project.
WSGI config for sympy_live project.
It exposes the WSGI callable as a module-level variable named ``application``.
Expand All @@ -11,6 +11,6 @@

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sympy_live_django.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sympy_live.settings')

application = get_wsgi_application()

0 comments on commit d967608

Please sign in to comment.