Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
osp
tools.ethertoff
Commits
2b0bf092
Commit
2b0bf092
authored
Jun 12, 2018
by
svilayphiou
Browse files
renamed 'relearn' folder into 'ethertoff'
parent
7116b337
Changes
106
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
2b0bf092
...
...
@@ -51,7 +51,7 @@ First create and install a virtual environment [1]. Then:
# Or use cloning over ssh (requires account):
# git@gitlab.constantvzw.org:osp/tools.ethertoff.git
cd tools.ethertoff # [2]
cd
relearn
cd
ethertoff
cp local_settings.py.example local_settings.py
# Change database details in local_settings.py
cd ..
...
...
@@ -120,23 +120,19 @@ to the group you just created
Go back to the admin home, and then create an Etherpad Group based upon the group and the server you just created.
Etherpadlite > Groups > Add
Now
relearn
is served at http://127.0.0.1:8000/ locally, or on your domain
Now
Ethertoff
is served at http://127.0.0.1:8000/ locally, or on your domain
name on a server.
You can set the site name, that appears on the header, in the ‘sites’ app in the admin.
- - -
[1] Something like:
[
^
1
]
:
Something
like:
mkdir -p ~/venvs/
cd ~/venvs/
virtualenv relearn
source ~/venvs/relearn/bin/activate
[2] For those running the Virtual Machine from the relearn summer school:
cd ~/relearn/relearn.be/
virtualenv ethertoff
source ~/venvs/ethertoff/bin/activate
- - -
...
...
@@ -173,10 +169,10 @@ folder /static/.
pip install gunicorn
cd /etc/nginx/sites-available/
# (edit nginx config file)
sudo vim
relearn/
sudo vim
ethertoff.conf
cd ../sites-enabled/
sudo ln -s ../sites-available/
relearn
cd
relearn
_directory/
sudo ln -s ../sites-available/
ethertoff
cd
ethertoff
_directory/
# (edit gunicorn config file)
vim run.sh
chmod +x run.sh
...
...
etherpadlite/models.py
View file @
2b0bf092
...
...
@@ -8,7 +8,7 @@ from django.utils.translation import ugettext_lazy as _
from
py_etherpad
import
EtherpadLiteClient
from
relearn
.templatetags.wikify
import
dewikify
from
ethertoff
.templatetags.wikify
import
dewikify
import
string
import
random
...
...
@@ -174,7 +174,7 @@ class Pad(models.Model):
return
self
.
display_slug
def
get_absolute_url
(
self
):
return
reverse
(
'
relearn
.views.xhtml'
,
args
=
[
self
.
display_slug
.
replace
(
'.md'
,
''
)])
return
reverse
(
'
ethertoff
.views.xhtml'
,
args
=
[
self
.
display_slug
.
replace
(
'.md'
,
''
)])
@
property
def
padid
(
self
):
...
...
relearn
/__init__.py
→
ethertoff
/__init__.py
View file @
2b0bf092
File moved
relearn
/context_processors.py
→
ethertoff
/context_processors.py
View file @
2b0bf092
...
...
@@ -4,7 +4,7 @@ import sys
from
datetime
import
datetime
from
relearn
.settings
import
MEDIA_ROOT
from
ethertoff
.settings
import
MEDIA_ROOT
from
etherpadlite.models
import
Pad
,
PadAuthor
,
PadServer
from
django.contrib.auth.models
import
AnonymousUser
from
django.contrib.sites.models
import
get_current_site
...
...
relearn
/forms.py
→
ethertoff
/forms.py
View file @
2b0bf092
File moved
relearn
/local_settings.py.example
→
ethertoff
/local_settings.py.example
View file @
2b0bf092
...
...
@@ -33,5 +33,5 @@ MEDIA_ROOT = ''
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/var/www/example.com/static/"
STATIC_ROOT = '/home/osp/static-
relearn
-collected/'
STATIC_ROOT = '/home/osp/static-
ethertoff
-collected/'
relearn
/management/__init__.py
→
ethertoff
/management/__init__.py
View file @
2b0bf092
File moved
relearn
/management/commands/__init__.py
→
ethertoff
/management/commands/__init__.py
View file @
2b0bf092
File moved
relearn
/management/commands/backup.py
→
ethertoff
/management/commands/backup.py
View file @
2b0bf092
...
...
@@ -18,7 +18,7 @@ from django.core.management.base import BaseCommand, CommandError
# Django Apps import
from
etherpadlite.models
import
Pad
,
PadAuthor
from
relearn
.settings
import
BACKUP_DIR
from
ethertoff
.settings
import
BACKUP_DIR
class
Command
(
BaseCommand
):
args
=
''
...
...
relearn
/management/commands/index.py
→
ethertoff
/management/commands/index.py
View file @
2b0bf092
...
...
@@ -23,7 +23,7 @@ from django.template.loader import render_to_string
from
django.contrib.sites.models
import
Site
from
etherpadlite.models
import
Pad
,
PadAuthor
from
relearn
.settings
import
BACKUP_DIR
from
ethertoff
.settings
import
BACKUP_DIR
"""
We scrape all the pages, construct a graph, and ask the RDF store to return us all the metadata.
...
...
relearn
/middleware.py
→
ethertoff
/middleware.py
View file @
2b0bf092
...
...
@@ -2,7 +2,7 @@ from django.http import HttpResponseServerError
from
django.template
import
Context
,
Template
,
loader
from
urllib2
import
URLError
from
relearn
.context_processors
import
EthertoffError
from
ethertoff
.context_processors
import
EthertoffError
from
etherpadlite.models
import
Pad
,
PadAuthor
,
PadServer
from
html5lib
import
HTMLParser
,
serializer
,
treebuilders
,
treewalkers
...
...
relearn
/public/README.txt
→
ethertoff
/public/README.txt
View file @
2b0bf092
File moved
relearn
/settings.py
→
ethertoff
/settings.py
View file @
2b0bf092
# Django settings for
relearn
project.
# Django settings for
ethertoff
project.
import
os
import
django.conf.global_settings
as
DEFAULT_SETTINGS
...
...
@@ -78,9 +78,9 @@ TEMPLATE_LOADERS = (
)
MIDDLEWARE_CLASSES
=
(
'
relearn
.middleware.ErrorHandlingMiddleware'
,
'
ethertoff
.middleware.ErrorHandlingMiddleware'
,
'django.middleware.common.CommonMiddleware'
,
'
relearn
.middleware.TidyMiddleware'
,
'
ethertoff
.middleware.TidyMiddleware'
,
'django.contrib.sessions.middleware.SessionMiddleware'
,
'django.middleware.csrf.CsrfViewMiddleware'
,
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
...
...
@@ -89,22 +89,22 @@ MIDDLEWARE_CLASSES = (
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
ROOT_URLCONF
=
'
relearn
.urls'
ROOT_URLCONF
=
'
ethertoff
.urls'
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION
=
'
relearn
.wsgi.application'
WSGI_APPLICATION
=
'
ethertoff
.wsgi.application'
TEMPLATE_DIRS
=
(
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
os
.
path
.
join
(
PROJECT_DIR
,
'
relearn
/templates'
),
os
.
path
.
join
(
PROJECT_DIR
,
'
ethertoff
/templates'
),
)
TEMPLATE_CONTEXT_PROCESSORS
=
DEFAULT_SETTINGS
.
TEMPLATE_CONTEXT_PROCESSORS
+
(
"
relearn
.context_processors.site_name"
,
"
relearn
.context_processors.pads"
,
"
relearn
.context_processors.local"
,
"
ethertoff
.context_processors.site_name"
,
"
ethertoff
.context_processors.pads"
,
"
ethertoff
.context_processors.local"
,
)
INSTALLED_APPS
=
(
...
...
@@ -120,7 +120,7 @@ INSTALLED_APPS = (
# 'django.contrib.admindocs',
'etherpadlite'
,
'example_theme'
,
'
relearn
'
,
'
ethertoff
'
,
'south'
)
...
...
relearn
/static/css/fonts.css
→
ethertoff
/static/css/fonts.css
View file @
2b0bf092
File moved
relearn
/static/css/laser.css
→
ethertoff
/static/css/laser.css
View file @
2b0bf092
File moved
relearn
/static/css/progress.css
→
ethertoff
/static/css/progress.css
View file @
2b0bf092
File moved
relearn
/static/css/reset.css
→
ethertoff
/static/css/reset.css
View file @
2b0bf092
File moved
relearn
/static/css/screen.css
→
ethertoff
/static/css/screen.css
View file @
2b0bf092
File moved
relearn
/static/css/slidy.css
→
ethertoff
/static/css/slidy.css
View file @
2b0bf092
File moved
relearn
/static/fonts/NotCourierSans-Bold-webfont.eot
→
ethertoff
/static/fonts/NotCourierSans-Bold-webfont.eot
View file @
2b0bf092
File moved
Prev
1
2
3
4
5
6
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment