Skip to content

Commit

Permalink
Merge pull request #10 from andela-ijubril/feature-effects
Browse files Browse the repository at this point in the history
Feature effects
  • Loading branch information
Issa Jubril committed Jan 14, 2016
2 parents 124ac25 + 37b21c1 commit 71ffd89
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 4 deletions.
2 changes: 0 additions & 2 deletions djangogram/circle.yml → circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ dependencies:
- pip install --upgrade pip
- pip install -r requirements.txt
- pip install coveralls
- npm install bower
test:
override:
- bower install
- python djangogram/manage.py collectstatic --noinput --settings=djangogram.settings.test
- python djangogram/manage.py test djangogram --settings=djangogram.settings.test
- coverage run djangogram/manage.py test djangogram --settings=djangogram.settings.test
Expand Down
2 changes: 1 addition & 1 deletion djangogram/djangogram/settings/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
if not os.getenv('TRAVIS') and not os.getenv('HEROKU'):
if not os.getenv('CI') and not os.getenv('HEROKU'):
from django_envie.workroom import convertfiletovars
convertfiletovars()
from development import *
Expand Down
3 changes: 2 additions & 1 deletion djangogram/djangogram/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"""

import os
from ..config import *

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Expand Down Expand Up @@ -143,6 +142,8 @@

STATIC_URL = '/static/'

STATIC_ROOT = os.path.join(BASE_DIR, 'static')

SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {
'fields': 'id,name,email',
}
Expand Down
39 changes: 39 additions & 0 deletions djangogram/photoeditor/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-23 08:42
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import photoeditor.models


class Migration(migrations.Migration):

initial = True

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
migrations.CreateModel(
name='Filter',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('image', models.ImageField(upload_to=photoeditor.models.get_upload_file_name)),
('name', models.CharField(max_length=100)),
('created', models.DateTimeField(auto_now_add=True)),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='UserProfile',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('social_id', models.CharField(max_length=100, unique=True)),
('profile_pics', models.TextField()),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
]
32 changes: 32 additions & 0 deletions djangogram/photoeditor/migrations/0002_auto_20160109_0108.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-09 01:08
from __future__ import unicode_literals

from django.db import migrations, models
import photoeditor.models


class Migration(migrations.Migration):

dependencies = [
('photoeditor', '0001_initial'),
]

operations = [
migrations.CreateModel(
name='Photo',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('image', models.ImageField(upload_to=photoeditor.models.get_upload_file_name)),
('name', models.CharField(blank=True, max_length=100)),
('created', models.DateTimeField(auto_now_add=True)),
],
),
migrations.RemoveField(
model_name='filter',
name='user',
),
migrations.DeleteModel(
name='Filter',
),
]

0 comments on commit 71ffd89

Please sign in to comment.