Skip to content

Instantly share code, notes, and snippets.

View ridoansaleh's full-sized avatar
🎯
Focusing

RSN ridoansaleh

🎯
Focusing
  • Indonesia
View GitHub Profile
{% load staticfiles %}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Music App</title>
<link rel="stylesheet" href="{% static 'music/bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'music/font-awesome/css/font-awesome.min.css' %}">
<link rel="stylesheet" href="{% static 'music/app.css' %}">
{% extends "music/index.html" %}
{% block content %}
<div class="row cs-section-header">
<div class="col-lg-12"><h2>Edit \ {{ song_title }}</h2></div>
</div>
<div class="row cs-form-edit">
{% include "music/song_form.html" %}
{% load widget_tweaks %}
<div class="col-lg-6">
<form method="post">
{% csrf_token %}
{% for field in form.visible_fields %}
<div class="form-group row">
<label for="{{ field.id_for_label }}" class="col-lg-3 col-form-label cs-label-field">{{ field.label }}</label>
<div class="col-lg-9">
{% render_field field class='form-control' %}
.navbar {
background: rgba(76, 175, 80, 0.1);
}
.form-group {
margin-bottom: 25px;
}
.form-control {
background-color: transparent;
var s = $("#status").val();
if (s=='success'){
$('#myModal').modal('show');
}
function sendData(id){
console.log(id);
$("#btn-delete").attr("href", "delete/"+id);
}
{% load staticfiles %}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Django & Heroku</title>
<link rel="stylesheet" href="{% static 'jual/bootstrap.min.css' %}">
<style type="text/css">
.box {
"""
Django settings for app project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
from .base import *
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
from .base import *
import dj_database_url
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
MIDDLEWARE_CLASSES = (
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
import React, { Component } from 'react';
import ProductDetail from './ProductDetail';
import '../../node_modules/bootstrap/dist/css/bootstrap.min.css';
import '../../node_modules/font-awesome/css/font-awesome.min.css';
import '../assets/Custom.css';
class App extends Component {
constructor(props){
super(props);
this.state = { show : 0 };