mirror of https://github.com/snachodog/mybuddy.git
Rename project Baby Buddy.
This commit is contained in:
parent
2ca120b83f
commit
e45101b75c
|
@ -8,5 +8,5 @@
|
|||
*.pyc
|
||||
|
||||
# static files
|
||||
/babyblotter/static
|
||||
/babybuddy/static
|
||||
/static
|
||||
|
|
|
@ -4,7 +4,7 @@ from __future__ import unicode_literals
|
|||
from rest_framework.permissions import DjangoModelPermissions
|
||||
|
||||
|
||||
class BabyBlotterDjangoModelPermissions(DjangoModelPermissions):
|
||||
class BabyBuddyDjangoModelPermissions(DjangoModelPermissions):
|
||||
perms_map = {
|
||||
'GET': ['%(app_label)s.view_%(model_name)s'],
|
||||
'OPTIONS': [],
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
/* Baby Blotter
|
||||
*
|
||||
* Default namespace for the Baby Blotter app.
|
||||
*/
|
||||
if (typeof jQuery === 'undefined') {
|
||||
throw new Error('Baby Blotter requires jQuery.')
|
||||
}
|
||||
|
||||
var BabyBlotter = function () {
|
||||
var BabyBlotter = {};
|
||||
return BabyBlotter;
|
||||
}();
|
|
@ -1,9 +0,0 @@
|
|||
{% extends "admin/base.html" %}
|
||||
|
||||
{% block title %}{{ title }} | Baby Blotter Admin{% endblock %}
|
||||
|
||||
{% block branding %}
|
||||
<h1 id="site-name"><a href="{% url 'admin:index' %}">Baby Blotter Admin</a></h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block nav-global %}{% endblock %}
|
|
@ -35,7 +35,7 @@ class Command(BaseCommand):
|
|||
self.stdout.write(self.style.SUCCESS('Database flushed.'))
|
||||
|
||||
for config in apps.app_configs.values():
|
||||
if path.split(path.split(config.path)[0])[1] == 'babyblotter':
|
||||
if path.split(path.split(config.path)[0])[1] == 'babybuddy':
|
||||
migrate = Migrate()
|
||||
options['app_label'] = config.name
|
||||
options['migration_name'] = 'zero'
|
|
@ -15,7 +15,7 @@ BASE_DIR = os.path.dirname(
|
|||
|
||||
INSTALLED_APPS = [
|
||||
'api',
|
||||
'babyblotter',
|
||||
'babybuddy',
|
||||
'core',
|
||||
'dashboard',
|
||||
'reports',
|
||||
|
@ -48,7 +48,7 @@ MIDDLEWARE = [
|
|||
# URL dispatcher
|
||||
# https://docs.djangoproject.com/en/1.11/topics/http/urls/
|
||||
|
||||
ROOT_URLCONF = 'babyblotter.urls'
|
||||
ROOT_URLCONF = 'babybuddy.urls'
|
||||
|
||||
|
||||
# Templates
|
||||
|
@ -74,7 +74,7 @@ TEMPLATES = [
|
|||
# WGSI
|
||||
# https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
|
||||
|
||||
WSGI_APPLICATION = 'babyblotter.wsgi.application'
|
||||
WSGI_APPLICATION = 'babybuddy.wsgi.application'
|
||||
|
||||
|
||||
# Authentication
|
||||
|
@ -114,7 +114,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
|||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_PERMISSION_CLASSES': [
|
||||
'api.permissions.BabyBlotterDjangoModelPermissions'
|
||||
'api.permissions.BabyBuddyDjangoModelPermissions'
|
||||
],
|
||||
'DEFAULT_RENDERER_CLASSES': (
|
||||
'rest_framework.renderers.JSONRenderer',
|
|
@ -0,0 +1,12 @@
|
|||
/* Baby Buddy
|
||||
*
|
||||
* Default namespace for the Baby Buddy app.
|
||||
*/
|
||||
if (typeof jQuery === 'undefined') {
|
||||
throw new Error('Baby Buddy requires jQuery.')
|
||||
}
|
||||
|
||||
var BabyBuddy = function () {
|
||||
var BabyBuddy = {};
|
||||
return BabyBuddy;
|
||||
}();
|
|
@ -1,3 +1,3 @@
|
|||
@import '../../../node_modules/bootstrap/scss/functions';
|
||||
|
||||
// Baby Blotter site-wide custom functions.
|
||||
// Baby Buddy site-wide custom functions.
|
|
@ -1,4 +1,4 @@
|
|||
// Baby Blotter site-wide custom styles.
|
||||
// Baby Buddy site-wide custom styles.
|
||||
|
||||
// Temporary workaround. See: https://github.com/twbs/bootstrap/issues/23553
|
||||
.dropdown-menu-right {
|
|
@ -1,3 +1,3 @@
|
|||
@import '../../../node_modules/bootstrap/scss/mixins';
|
||||
|
||||
// Baby Blotter site-wide custom mixins.
|
||||
// Baby Buddy site-wide custom mixins.
|
|
@ -2,4 +2,4 @@
|
|||
@import '../../../node_modules/bootstrap/scss/variables';
|
||||
@import 'themes/blueorange';
|
||||
|
||||
// Baby Blotter site-wide variables.
|
||||
// Baby Buddy site-wide variables.
|
|
@ -0,0 +1,9 @@
|
|||
{% extends "admin/base.html" %}
|
||||
|
||||
{% block title %}{{ title }} | Baby Buddy Admin{% endblock %}
|
||||
|
||||
{% block branding %}
|
||||
<h1 id="site-name"><a href="{% url 'admin:index' %}">Baby Buddy Admin</a></h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block nav-global %}{% endblock %}
|
|
@ -6,13 +6,13 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>{% block title %}{% endblock %} | Baby Blotter</title>
|
||||
<title>{% block title %}{% endblock %} | Baby Buddy</title>
|
||||
{% if debug %}
|
||||
<link rel="stylesheet" href="{% static "babyblotter/css/app.css" %}" />
|
||||
<link rel="stylesheet" href="{% static "babyblotter/css/vendor.css" %}" />
|
||||
<link rel="stylesheet" href="{% static "babybuddy/css/app.css" %}" />
|
||||
<link rel="stylesheet" href="{% static "babybuddy/css/vendor.css" %}" />
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{% static "babyblotter/css/app.min.css" %}" />
|
||||
<link rel="stylesheet" href="{% static "babyblotter/css/vendor.min.css" %}" />
|
||||
<link rel="stylesheet" href="{% static "babybuddy/css/app.min.css" %}" />
|
||||
<link rel="stylesheet" href="{% static "babybuddy/css/vendor.min.css" %}" />
|
||||
{% endif %}
|
||||
</head>
|
||||
<body style="padding-top: 3rem;">
|
||||
|
@ -31,11 +31,11 @@
|
|||
{% block page %}{% endblock %}
|
||||
|
||||
{% if debug %}
|
||||
<script src="{% static "babyblotter/js/vendor.js" %}"></script>
|
||||
<script src="{% static "babyblotter/js/app.js" %}"></script>
|
||||
<script src="{% static "babybuddy/js/vendor.js" %}"></script>
|
||||
<script src="{% static "babybuddy/js/app.js" %}"></script>
|
||||
{% else %}
|
||||
<script src="{% static "babyblotter/js/vendor.min.js" %}"></script>
|
||||
<script src="{% static "babyblotter/js/app.min.js" %}"></script>
|
||||
<script src="{% static "babybuddy/js/vendor.min.js" %}"></script>
|
||||
<script src="{% static "babybuddy/js/app.min.js" %}"></script>
|
||||
{% endif %}
|
||||
|
||||
{% block javascript %}{% endblock %}
|
|
@ -1,9 +1,9 @@
|
|||
{% extends 'babyblotter/base.html' %}
|
||||
{% extends 'babybuddy/base.html' %}
|
||||
{% load timers %}
|
||||
|
||||
{% block nav %}
|
||||
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
|
||||
<a class="navbar-brand" href="/"><span class="text-info">Baby</span> Blotter</a>
|
||||
<a class="navbar-brand" href="/"><span class="text-info">Baby</span> Buddy</a>
|
||||
|
||||
<div class="d-lg-none d-md-none ml-auto p-0 mr-2">
|
||||
<a class="text-success mr-2" href="{% url 'timer-add-quick' %}"><i class="icon icon-2x icon-timer" aria-hidden="true"></i></a>
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/nav-dropdown.html' %}
|
||||
{% extends 'babybuddy/nav-dropdown.html' %}
|
||||
{% load static timers %}
|
||||
|
||||
{% block page %}
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "babyblotter/base.html" %}
|
||||
{% extends "babybuddy/base.html" %}
|
||||
{% load static widget_tweaks %}
|
||||
|
||||
{% block breadcrumb_nav %}{% endblock %}
|
||||
|
@ -6,7 +6,7 @@
|
|||
{% block page %}
|
||||
<div id="view-{{ request.resolver_match.view_name }}" class="container">
|
||||
<div class="text-center mb-4">
|
||||
<h1 class="display-3 mb-3"><span class="text-info">Baby</span> Blotter</h1>
|
||||
<h1 class="display-3 mb-3"><span class="text-info">Baby</span> Buddy</h1>
|
||||
</div>
|
||||
<div class="bg-light p-4 rounded text-dark">
|
||||
{% block content %}{% endblock %}
|
|
@ -2,6 +2,6 @@ import os
|
|||
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "babyblotter.settings")
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "babybuddy.settings")
|
||||
|
||||
application = get_wsgi_application()
|
|
@ -1,4 +1,4 @@
|
|||
/* Baby Blotter Timer
|
||||
/* Baby Buddy Timer
|
||||
*
|
||||
* Uses a supplied ID to run a timer. The element using the ID must have
|
||||
* three children with the following classes:
|
||||
|
@ -6,7 +6,7 @@
|
|||
* * timer-minutes
|
||||
* * timer-hours
|
||||
*/
|
||||
BabyBlotter.Timer = function ($) {
|
||||
BabyBuddy.Timer = function ($) {
|
||||
var runIntervalId = null;
|
||||
var timerElement = null;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load widget_tweaks %}
|
||||
|
||||
{% block title %}Delete a Child{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
|
||||
{% block title %}{{ object }}{% endblock %}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
|
||||
{% block title %}
|
||||
{% if object %}
|
||||
|
@ -24,7 +24,7 @@
|
|||
{% else %}
|
||||
<h1>Add a Child</h1>
|
||||
{% endif %}
|
||||
{% include 'babyblotter/form.html' %}
|
||||
{% include 'babybuddy/form.html' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascript %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load widget_tweaks %}
|
||||
|
||||
{% block title %}Children{% endblock %}
|
||||
|
@ -51,7 +51,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
{% include 'babyblotter/paginator.html' %}
|
||||
{% include 'babybuddy/paginator.html' %}
|
||||
</div>
|
||||
|
||||
{% if perms.core.add_child %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load widget_tweaks %}
|
||||
|
||||
{% block title %}Delete a Diaper Change{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
|
||||
{% block title %}
|
||||
{% if request.resolver_match.url_name == 'diaperchange-update' %}
|
||||
|
@ -23,7 +23,7 @@
|
|||
{% else %}
|
||||
<h1>Add a Diaper Change</h1>
|
||||
{% endif %}
|
||||
{% include 'babyblotter/form.html' %}
|
||||
{% include 'babybuddy/form.html' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascript %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load widget_tweaks %}
|
||||
{% load bootstrap %}
|
||||
|
||||
|
@ -56,7 +56,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
{% include 'babyblotter/paginator.html' %}
|
||||
{% include 'babybuddy/paginator.html' %}
|
||||
</div>
|
||||
|
||||
{% if perms.core.add_diaperchange %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load widget_tweaks %}
|
||||
|
||||
{% block title %}Delete a Feeding{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
|
||||
{% block title %}
|
||||
{% if request.resolver_match.url_name == 'feeding-update' %}
|
||||
|
@ -23,7 +23,7 @@
|
|||
{% else %}
|
||||
<h1>Add a Feeding</h1>
|
||||
{% endif %}
|
||||
{% include 'babyblotter/form.html' %}
|
||||
{% include 'babybuddy/form.html' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascript %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load widget_tweaks %}
|
||||
{% load duration %}
|
||||
|
||||
|
@ -62,7 +62,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
{% include 'babyblotter/paginator.html' %}
|
||||
{% include 'babybuddy/paginator.html' %}
|
||||
</div>
|
||||
|
||||
{% if perms.core.add_feeding %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load widget_tweaks %}
|
||||
|
||||
{% block title %}Delete a Note{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
|
||||
{% block title %}
|
||||
{% if request.resolver_match.url_name == 'note-update' %}
|
||||
|
@ -23,5 +23,5 @@
|
|||
{% else %}
|
||||
<h1>Add a Note</h1>
|
||||
{% endif %}
|
||||
{% include 'babyblotter/form.html' %}
|
||||
{% include 'babybuddy/form.html' %}
|
||||
{% endblock %}
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load widget_tweaks %}
|
||||
|
||||
{% block title %}Notes{% endblock %}
|
||||
|
@ -51,7 +51,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
{% include 'babyblotter/paginator.html' %}
|
||||
{% include 'babybuddy/paginator.html' %}
|
||||
</div>
|
||||
|
||||
{% if perms.core.add_note %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load widget_tweaks %}
|
||||
|
||||
{% block title %}Delete a Sleep Entry{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
|
||||
{% block title %}
|
||||
{% if request.resolver_match.url_name == 'sleep-update' %}
|
||||
|
@ -23,7 +23,7 @@
|
|||
{% else %}
|
||||
<h1>Add a Sleep Entry</h1>
|
||||
{% endif %}
|
||||
{% include 'babyblotter/form.html' %}
|
||||
{% include 'babybuddy/form.html' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascript %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load widget_tweaks %}
|
||||
{% load duration %}
|
||||
|
||||
|
@ -54,7 +54,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
{% include 'babyblotter/paginator.html' %}
|
||||
{% include 'babybuddy/paginator.html' %}
|
||||
</div>
|
||||
|
||||
{% if perms.core.add_sleep %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load widget_tweaks %}
|
||||
|
||||
{% block title %}Delete {{ object }}{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load duration timers %}
|
||||
|
||||
{% block title %}{{ object }}{% endblock %}
|
||||
|
@ -75,7 +75,7 @@
|
|||
{% block javascript %}
|
||||
{% if object.active %}
|
||||
<script type="application/javascript">
|
||||
BabyBlotter.Timer.run('timer-status');
|
||||
BabyBuddy.Timer.run('timer-status');
|
||||
</script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load duration %}
|
||||
|
||||
{% block title %}Timer{% endblock %}
|
||||
|
@ -19,5 +19,5 @@
|
|||
{% else %}
|
||||
<h1>Start Timer</h1>
|
||||
{% endif %}
|
||||
{% include 'babyblotter/form.html' %}
|
||||
{% include 'babybuddy/form.html' %}
|
||||
{% endblock %}
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load bootstrap duration widget_tweaks %}
|
||||
|
||||
{% block title %}Timers{% endblock %}
|
||||
|
@ -39,6 +39,6 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
{% include 'babyblotter/paginator.html' %}
|
||||
{% include 'babybuddy/paginator.html' %}
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load widget_tweaks %}
|
||||
|
||||
{% block title %}Delete a Tummy Time Entry{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
|
||||
{% block title %}
|
||||
{% if request.resolver_match.url_name == 'tummytime-update' %}
|
||||
|
@ -23,7 +23,7 @@
|
|||
{% else %}
|
||||
<h1>Add a Tummy Time Entry</h1>
|
||||
{% endif %}
|
||||
{% include 'babyblotter/form.html' %}
|
||||
{% include 'babybuddy/form.html' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascript %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load widget_tweaks %}
|
||||
{% load duration %}
|
||||
|
||||
|
@ -56,7 +56,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
{% include 'babyblotter/paginator.html' %}
|
||||
{% include 'babybuddy/paginator.html' %}
|
||||
</div>
|
||||
|
||||
{% if perms.core.add_tummytime %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load cards %}
|
||||
|
||||
{% block title %}Dashboard - {{ object }}{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
|
||||
{% block title %}Welcome!{% endblock %}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
var basePath = 'babyblotter/static/babyblotter/';
|
||||
var basePath = 'babybuddy/static/babybuddy/';
|
||||
|
||||
module.exports = {
|
||||
basePath: basePath,
|
||||
|
@ -29,7 +29,7 @@ module.exports = {
|
|||
'node_modules/plotly.js/dist/plotly-cartesian.js'
|
||||
],
|
||||
app: [
|
||||
'babyblotter/static_src/js/babyblotter.js',
|
||||
'babybuddy/static_src/js/babybuddy.js',
|
||||
'api/static_src/js/*.js',
|
||||
'core/static_src/js/*.js',
|
||||
'dashboard/static_src/js/*.js'
|
||||
|
@ -40,15 +40,15 @@ module.exports = {
|
|||
vendor: [
|
||||
'node_modules/tempusdominus-bootstrap-4/build/css/tempusdominus-bootstrap-4.css'
|
||||
],
|
||||
app: 'babyblotter/static_src/scss/babyblotter.scss',
|
||||
app: 'babybuddy/static_src/scss/babybuddy.scss',
|
||||
ignore: [
|
||||
'babyblotter.scss'
|
||||
'babybuddy.scss'
|
||||
]
|
||||
},
|
||||
watchConfig: {
|
||||
scriptsGlob: [
|
||||
'**/static_src/js/**/*.js',
|
||||
'!babyblotter/static/js/'
|
||||
'!babybuddy/static/js/'
|
||||
],
|
||||
stylesGlob: [
|
||||
'**/static_src/scss/**/*.scss'
|
||||
|
|
|
@ -3,7 +3,7 @@ import os
|
|||
import sys
|
||||
|
||||
if __name__ == "__main__":
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "babyblotter.settings")
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "babybuddy.settings")
|
||||
try:
|
||||
from django.core.management import execute_from_command_line
|
||||
except ImportError:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "babyblotter",
|
||||
"name": "babybuddy",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "babyblotter",
|
||||
"name": "babybuddy",
|
||||
"description": "Baby activities tracker application.",
|
||||
"version": "0.1.0",
|
||||
"devDependencies": {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'babybuddy/page.html' %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}{% endblock %}
|
||||
|
@ -17,8 +17,8 @@
|
|||
|
||||
{% block javascript %}
|
||||
{% if debug %}
|
||||
<script src="{% static "babyblotter/js/graph.js" %}"></script>
|
||||
<script src="{% static "babybuddy/js/graph.js" %}"></script>
|
||||
{% else %}
|
||||
<script src="{% static "babyblotter/js/graph.min.js" %}"></script>
|
||||
<script src="{% static "babybuddy/js/graph.min.js" %}"></script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Loading…
Reference in New Issue