This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from editorsnotes/improved-setup
Improved setup
- Loading branch information
Showing
63 changed files
with
491 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ build | |
dev.db | ||
include | ||
lib | ||
local | ||
secret.txt | ||
settings_local.py | ||
settings-*.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## Installation | ||
Editors' Notes requires Python 2.7 and PostgreSQL. | ||
|
||
To set up a local development environment, install [Fabric](http://fabfile.org/) | ||
and make sure you have the following dependencies | ||
|
||
* libxml2 | ||
* libxslt | ||
* psycopg2 | ||
* [Xapian](http://xapian.org/download) with Python bindings | ||
|
||
1. Run the command `fab setup` inside the project directory | ||
2. Edit the generated "editorsnotes/settings\_local.py" file with your database information | ||
3. Run `fab sync_database` | ||
4. Start the development server with `fab runserver` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
###################### | ||
# Required variables # | ||
###################### | ||
|
||
SECRET_KEY = '' | ||
POSTGRES_DB = { | ||
'NAME': '', | ||
'USER': '', | ||
'PASSWORD': '', | ||
'HOST': '', | ||
'PORT': '' | ||
} | ||
SITE_URL = '127.0.0.1' | ||
|
||
DEBUG = True | ||
TEMPLATE_DEBUG = DEBUG | ||
|
||
ADMINS = ( | ||
('My Name', '[email protected]'), | ||
) | ||
MANAGERS = ADMINS | ||
|
||
|
||
############# | ||
# Overrides # | ||
############# | ||
|
||
# TIME_ZONE = '' | ||
# LANGUAGE_CODE = '' | ||
# DATETIME_FORMAT = '' | ||
# USE_L10N = True | ||
# USE I18N = True | ||
|
||
|
||
# Edit STORAGE_PATH to change where uploads, static files, and search indexes | ||
# will be stored, or change each of the settings individually. | ||
# STORAGE_PATH = '' | ||
|
||
# MEDIA_ROOT = '' | ||
# STATIC_ROOT = '' | ||
# HAYSTACK_XAPIAN_PATH = '' | ||
|
||
|
||
###################### | ||
# Optional variables # | ||
###################### | ||
|
||
# Set the following variables to connect to an instance of Open Refine and | ||
# enable clustering topics and documents. | ||
GOOGLE_REFINE_HOST = '127.0.0.1' | ||
GOOGLE_REFINE_PORT = '3333' | ||
|
||
# Set the following to be able to write all Zotero data to a central library. | ||
ZOTERO_API_KEY = '' | ||
ZOTERO_LIBRARY = '' | ||
|
||
# Define locally installed apps here | ||
LOCAL_APPS = ( | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.