Fakultas Ilmu Komputer UI

Commit 866e6802 authored by Bimo Iman Smartadi's avatar Bimo Iman Smartadi
Browse files

[CHORES] Deleted unused app (helloworld and login). Edited on settings.py

parent aa6c4570
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class HelloworldConfig(AppConfig):
name = 'helloworld'
from django.db import models
# Create your models here.
<!DOCTYPE html>
<html>
<head>
<title>Konnichihello</title>
</head>
<body>
Hello World1
</body>
</html>
\ No newline at end of file
from django.conf.urls import url
from django.urls import path
from .views import helloworld
from . import views
app_name = "helloworld"
urlpatterns = [
path('', views.helloworld, name='helloworld'),
]
\ No newline at end of file
from django.shortcuts import render
# Create your views here.
def helloworld(request):
return render(request, 'helloworld.html')
# Generated by Django 2.1.5 on 2020-04-17 10:26
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import multiselectfield.db.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Fasilitas',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('date_time', models.DateTimeField(auto_now_add=True)),
('deskripsi', models.TextField()),
('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'), ('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)),
],
),
migrations.CreateModel(
name='Komentar',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('date_time', models.DateTimeField(auto_now_add=True)),
('deskripsi', models.TextField()),
('fasilitas', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='informasi_fasilitas.Fasilitas')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='Lokasi',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50)),
('latitude', models.FloatField()),
('longitude', models.FloatField()),
('alamat', models.CharField(max_length=100)),
('no_telp', models.CharField(max_length=16)),
('image', models.ImageField(null=True, upload_to='static/img')),
],
),
migrations.AddField(
model_name='fasilitas',
name='lokasi',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='informasi_fasilitas.Lokasi'),
),
migrations.AddField(
model_name='fasilitas',
name='user',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
]
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class LoginConfig(AppConfig):
name = 'login'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.shortcuts import render
# Create your views here.
......@@ -40,8 +40,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.auth.hashers',
'login',
'django.contrib.auth.hashers'
'registrasi',
'informasi_fasilitas',
'new_rest_api',
......
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