This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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' %}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.navbar { | |
background: rgba(76, 175, 80, 0.1); | |
} | |
.form-group { | |
margin-bottom: 25px; | |
} | |
.form-control { | |
background-color: transparent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var s = $("#status").val(); | |
if (s=='success'){ | |
$('#myModal').modal('show'); | |
} | |
function sendData(id){ | |
console.log(id); | |
$("#btn-delete").attr("href", "delete/"+id); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |