Fakultas Ilmu Komputer UI

Commit f006a678 authored by Usman Sidiq's avatar Usman Sidiq
Browse files

Fix database Heroku

parent 14e0ffb1
#!/bin/bash
python manage.py makemigrations
python manage.py migrate
from django.test import TestCase
from django.http import HttpRequest
from .views import helloworld
class HelloWorldTest(TestCase):
def test_donation_url_exist(self):
response = helloworld(HttpRequest())
html_response = response.content.decode('utf8')
self.assertIn("Hello World1",html_response)
# Generated by Django 2.1.5 on 2020-04-10 01:25
# Generated by Django 2.1.5 on 2020-04-17 10:26
from django.conf import settings
from django.db import migrations, models
......@@ -24,8 +24,8 @@ class Migration(migrations.Migration):
('like', models.IntegerField(default=0)),
('dislike', models.IntegerField(default=0)),
('rating', models.IntegerField(default=3)),
('tag', multiselectfield.db.fields.MultiSelectField(choices=[('KR', 'Kursi Roda'), ('LF', 'Lift Disabilitas'), ('TD', 'Toilet Disabilitas'), ('MM', 'Masjid/Mushola'), ('GB', 'Guiding Block'), ('BM', 'Bidang Miring'), ('CP', 'Teman Disabilitas'), ('JI', 'Juru Bahasa Isyarat'), ('TN', 'Tongkat Disabilitas Netra'), ('KD', 'Kursi Umum Disabilitas'), ('PK', 'Tempat Parkir Disabilitas'), ('RT', 'Running Text')], max_length=35, null=True)),
('image', models.ImageField(null=True, upload_to='static/img')),
('tag', multiselectfield.db.fields.MultiSelectField(choices=[('KR', 'Kursi Roda'), ('LF', 'Lift Disabilitas'), ('TD', 'Toilet Disabilitas'), ('MM', 'Masjid/Mushola'), ('GB', 'Guiding Block'), ('BM', 'Bidang Miring'), ('CP', 'Teman Disabilitas'), ('JI', 'Juru Bahasa Isyarat'), ('TN', 'Tongkat Disabilitas Netra'), ('KD', 'Kursi Umum Disabilitas'), ('PK', 'Tempat Parkir Disabilitas'), ('RT', 'Running Text'), ('TB', 'Tempat Parkir Biasa')], default=None, max_length=38, null=True)),
('image', models.ImageField(default=None, null=True, upload_to='static/img')),
('is_verified', models.BooleanField(default=False)),
],
),
......
# Generated by Django 2.1.5 on 2020-04-10 10:21
from django.db import migrations, models
import multiselectfield.db.fields
class Migration(migrations.Migration):
dependencies = [
('informasi_fasilitas', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='fasilitas',
name='image',
field=models.ImageField(default=None, null=True, upload_to='static/img'),
),
migrations.AlterField(
model_name='fasilitas',
name='tag',
field=multiselectfield.db.fields.MultiSelectField(choices=[('KR', 'Kursi Roda'), ('LF', 'Lift Disabilitas'), ('TD', 'Toilet Disabilitas'), ('MM', 'Masjid/Mushola'), ('GB', 'Guiding Block'), ('BM', 'Bidang Miring'), ('CP', 'Teman Disabilitas'), ('JI', 'Juru Bahasa Isyarat'), ('TN', 'Tongkat Disabilitas Netra'), ('KD', 'Kursi Umum Disabilitas'), ('PK', 'Tempat Parkir Disabilitas'), ('RT', 'Running Text')], default=None, max_length=35, null=True),
),
]
# Generated by Django 2.1.5 on 2020-04-13 05:07
from django.db import migrations
import multiselectfield.db.fields
class Migration(migrations.Migration):
dependencies = [
('informasi_fasilitas', '0002_auto_20200410_1721'),
]
operations = [
migrations.AlterField(
model_name='fasilitas',
name='tag',
field=multiselectfield.db.fields.MultiSelectField(choices=[('KR', 'Kursi Roda'), ('LF', 'Lift Disabilitas'), ('TD', 'Toilet Disabilitas'), ('MM', 'Masjid/Mushola'), ('GB', 'Guiding Block'), ('BM', 'Bidang Miring'), ('CP', 'Teman Disabilitas'), ('JI', 'Juru Bahasa Isyarat'), ('TN', 'Tongkat Disabilitas Netra'), ('KD', 'Kursi Umum Disabilitas'), ('PK', 'Tempat Parkir Disabilitas'), ('RT', 'Running Text'), ('TB', 'Tempat Parkir Biasa')], default=None, max_length=38, null=True),
),
]
......@@ -41,7 +41,6 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.auth.hashers',
'helloworld',
'login',
'registrasi',
'informasi_fasilitas',
......
# Generated by Django 2.1.5 on 2020-04-10 10:05
# Generated by Django 2.1.5 on 2020-04-17 10:27
from django.conf import settings
from django.db import migrations, models
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment