diff --git a/README.md b/README.md index 211bc880..448d75d7 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Instructions for setting please are slightly different. 1. create an ubuntu ec2 instance (e.g, go http://alestic.com/ to find various ubuntu images) 1. `sudo aptitude update` 1. `sudo aptitude upgrade` -1. `sudo aptitude install git-core apache libapache2-mod-wsgi mysql-client python-virtualenv python-mysqldb redis-server python-lxml postfix` +1. `sudo aptitude install git-core apache libapache2-mod-wsgi mysql-client python-virtualenv python-mysqldb redis-server python-lxml postfix python-dev` 1. `sudo mkdir /opt/regluit` 1. `sudo chown ubuntu:ubuntu /opt/regluit` 1. `cd /opt` @@ -78,7 +78,8 @@ Instructions for setting please are slightly different. 1. `sudo chmod 755 /etc/init.d/celeryd` 1. `sudo cp deploy/celeryd.conf /etc/default/celeryd` 1. `sudo mkdir /var/log/celery` -1. `sudo chown celery:celery /var/log/celery` +1. `sudo mkdir /var/run/celery` +1. `sudo chown celery:celery /var/log/celery /var/run/celery` 1. `sudo /etc/init.d/celeryd start` 1. `sudo cp deploy/celerybeat /etc/init.d/celerybeat` 1. `sudo chmod 755 /etc/init.d/celerybeat` diff --git a/core/models.py b/core/models.py index 63618da9..b6fed369 100755 --- a/core/models.py +++ b/core/models.py @@ -103,7 +103,7 @@ class Campaign(models.Model): created = models.DateTimeField(auto_now_add=True) name = models.CharField(max_length=500, null=True, blank=False) description = models.TextField(null=True, blank=False) - details = models.TextField(null=True, blank=False) + details = models.TextField(null=True, blank=True) target = models.DecimalField(max_digits=14, decimal_places=2, null=True, blank=False) license = models.CharField(max_length=255, choices = LICENSE_CHOICES, default='CC BY-NC-ND') left = models.DecimalField(max_digits=14, decimal_places=2, null=True, blank=False) diff --git a/deploy/emit_notices.sh b/deploy/emit_notices.sh old mode 100644 new mode 100755 diff --git a/frontend/templates/manage_campaign.html b/frontend/templates/manage_campaign.html index a5a342b4..f5fa5e92 100644 --- a/frontend/templates/manage_campaign.html +++ b/frontend/templates/manage_campaign.html @@ -52,11 +52,9 @@ Or, go back to rights holder tools page.End Date: {{ campaign.deadline|date:"M d, Y" }}

Campaign status: {{ campaign.status }}

- {% ifequal campaign.status 'INITIALIZED' %}
Preview This Campaign
- {% endifequal %}

Description of the work offered for ungluing

{% csrf_token %} @@ -72,7 +70,7 @@ Or, go back to rights holder tools page.will display as the Internet Archive.

Copy-paste the code above and substitute your own values. You will find the link address in the location bar of your browser.

-
  • Anything especially appealing about the work or author: awards, embedded video (460px max), etc. (How do I embed video?) +
  • Anything especially appealing about the work or author: awards, embedded video (445px max), etc. (How do I embed video?)

    To embed a video from YouTube:

    Go to the page where you watch the video. Under the video, click "Share".

    @@ -88,17 +86,13 @@ Or, go back to rights holder tools page.Make it concise and emotionally appealing. The point here is not to tell ungluers everything about your book; it's to remind them why they love it.

    {{ form.description.errors }}{{ form.description }}

    Offer details

    -

    This will be displayed on the Details tab for your work. It gives additional information for the highly curious. It should include:

    -
      -
    • Details about the edition being offered.
    • -
    • Hyperlinks for the author(s), publisher making the offer, or for the work itself.
    • -
    +

    This will be displayed on the Details tab for your work. It's the fine print for your offer. For example, if your unglued edition will exclude certain illustrations due to rights issues, or otherwise differ from existing editions, this is the place to disclose that. If your offer doesn't have any fine print, you can leave this blank.

    {{ form.details.errors }}{{ form.details }}

    Target Price

    This is the target price for your campaign. Once you launch the campaign, you won't be able to increase it.

    {{ form.target.errors }}{{ form.target }}

    License being offered

    -

    This is the license you are offering to use once the campaign succeeds. For more info on the licenses you can use, see Creative Commons

    +

    This is the license you are offering to use once the campaign succeeds. For more info on the licenses you can use, see Creative Commons: About the Licenses.

    {{ form.license.errors }}{{ form.license }}

    Ending date

    This is the ending date of your campaign. Once you launch the campaign, you won't be able to change it. @@ -110,6 +104,8 @@ The ending date can't be more than six months away- that's a practical limit for

    If your campaign succeeds, the funds raised (less commission and fees) will be deposited in a paypal account bearing this email address.

    {{ form.paypal_receiver.errors }}{{ form.paypal_receiver }}

    +

    We recommend that you save and then preview your campaign before launch. If it doesn't look exactly the way you like, we're happy to help; please email Amanda (amecke@gluejar.com) or Andromeda (andromeda@gluejar.com).

    + {% ifequal campaign.status 'ACTIVE' %} {% else %} diff --git a/frontend/templates/work.html b/frontend/templates/work.html index 681920fc..fd1324f9 100644 --- a/frontend/templates/work.html +++ b/frontend/templates/work.html @@ -182,8 +182,7 @@ $j(document).ready(function(){ diff --git a/settings/prod.py b/settings/prod.py index 22581914..a4514b03 100644 --- a/settings/prod.py +++ b/settings/prod.py @@ -23,6 +23,7 @@ DATABASES = { 'PASSWORD': 'unglue1t', 'HOST': 'production.cboagmr25pjs.us-east-1.rds.amazonaws.com', 'PORT': '', + 'TEST_CHARSET': 'utf8', } } @@ -124,4 +125,4 @@ STATIC_ROOT = '/var/www/static' # Amazon credentials (for fps) AWS_ACCESS_KEY = '' -AWS_SECRET_ACCESS_KEY = '' \ No newline at end of file +AWS_SECRET_ACCESS_KEY = ''