--- /dev/null
+import datetime
+
+from django.db import models
+
+import django_filepicker
+
+class IntakeDoc(models.Model):
+ fp_note = django_filepicker.models.FPFileField(upload_to='queue/%Y/%m/%j/',
+ help_text=u"An uploaded file reference from Filepicker.io")
+ form = models.TextField(max_length=1024,
+ help_text=u"A serilized version of the note data form")
+ ip = models.IPAddressField(blank=True, null=True,
+ help_text=u"IP address of the uploader")
+
+ uploaded_at = models.DateTimeField(null=True, default=datetime.datetime.utcnow)
+
+ class Meta:
+ """ Sort files most recent first """
+ ordering = ['-uploaded_at']
+
+
+ def __unicode__(self):
+ return u"{0} @ {1}".format(self.ip, self.uploaded_at)
+
+ def convert_to_note(self):
+ """ polymorph this object into a note.models.Note object """
+ pass
--- /dev/null
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
+
+Replace this with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+
+class SimpleTest(TestCase):
+ def test_basic_addition(self):
+ """
+ Tests that 1 + 1 always equals 2.
+ """
+ self.assertEqual(1 + 1, 2)
--- /dev/null
+# Create your views here.
LANGUAGE_CODE = 'en-us'
# See: https://docs.djangoproject.com/en/dev/ref/settings/#site-id
-SITE_ID = 1
+SITE_ID = 2
# See: https://docs.djangoproject.com/en/dev/ref/settings/#use-i18n
USE_I18N = True
'karmaworld.apps.notes',
'karmaworld.apps.courses',
'karmaworld.apps.ajaxuploader',
+ 'karmaworld.apps.document_upload',
)
# See: https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
Django>=1.4.0,<=1.4.9
-django-celery==3.0.11
+django-celery==3.0.21
django-compressor==1.2
Fabric==1.5.3
South==0.7.6
Sphinx==1.1.3
supervisor==3.0b1
-git+git://github.com/FinalsClub/django-taggit.git
oauth2client==1.0
urllib3==1.5
google-api-python-client==1.0
django-grappelli==2.4.3
lxml==3.1.0
+git+https://github.com/FinalsClub/django-taggit.git
+django-filepicker==0.1.4