some cleanup
This commit is contained in:
@ -38,7 +38,8 @@ To start developing:
|
|||||||
3. Copy `secret_settings.template` to `secret_settings.py`
|
3. Copy `secret_settings.template` to `secret_settings.py`
|
||||||
4. Configure preferred database backend in `secret_settings.py`, default is sqlite
|
4. Configure preferred database backend in `secret_settings.py`, default is sqlite
|
||||||
5. Run migrations with `manage.py migrate`
|
5. Run migrations with `manage.py migrate`
|
||||||
6. Start development server with `manage.py runserver`
|
6. Create a first user with `manage.py createsuperuser`
|
||||||
|
7. Start development server with `manage.py runserver`
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
Pull Requests and ideas are welcome, feel free to contribute in any way.
|
Pull Requests and ideas are welcome, feel free to contribute in any way.
|
||||||
|
@ -1,100 +0,0 @@
|
|||||||
# Generated by Django 2.0.5 on 2018-05-25 13:11
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
import django.db.models.deletion
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
initial = True
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Category',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('name', models.CharField(max_length=64, unique=True)),
|
|
||||||
('icon', models.CharField(blank=True, max_length=1, null=True)),
|
|
||||||
('description', models.TextField(blank=True, default='')),
|
|
||||||
('created_by', models.IntegerField(default=0)),
|
|
||||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
||||||
('updated_at', models.DateTimeField(auto_now=True)),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Keyword',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('name', models.CharField(max_length=64, unique=True)),
|
|
||||||
('icon', models.CharField(blank=True, max_length=1, null=True)),
|
|
||||||
('description', models.TextField(blank=True, default='')),
|
|
||||||
('created_by', models.IntegerField(default=0)),
|
|
||||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
||||||
('updated_at', models.DateTimeField(auto_now=True)),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Recipe',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('name', models.CharField(max_length=128)),
|
|
||||||
('path', models.CharField(default='', max_length=512)),
|
|
||||||
('link', models.CharField(default='', max_length=512)),
|
|
||||||
('created_by', models.IntegerField(default=0)),
|
|
||||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
||||||
('updated_at', models.DateTimeField(auto_now=True)),
|
|
||||||
('category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='cookbook.Category')),
|
|
||||||
('keywords', models.ManyToManyField(blank=True, to='cookbook.Keyword')),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='RecipeImport',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('name', models.CharField(max_length=128)),
|
|
||||||
('path', models.CharField(default='', max_length=512)),
|
|
||||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Storage',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('name', models.CharField(max_length=128)),
|
|
||||||
('method', models.CharField(choices=[('DB', 'Dropbox')], default='DB', max_length=128)),
|
|
||||||
('username', models.CharField(blank=True, max_length=128, null=True)),
|
|
||||||
('password', models.CharField(blank=True, max_length=128, null=True)),
|
|
||||||
('token', models.CharField(blank=True, max_length=512, null=True)),
|
|
||||||
('url', models.URLField(blank=True, null=True)),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Sync',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('path', models.CharField(default='', max_length=512)),
|
|
||||||
('last_checked', models.DateTimeField()),
|
|
||||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
||||||
('updated_at', models.DateTimeField(auto_now=True)),
|
|
||||||
('storage', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='cookbook.Storage')),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='SyncLog',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('status', models.CharField(max_length=32)),
|
|
||||||
('msg', models.TextField(default='')),
|
|
||||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
||||||
('monitor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cookbook.Sync')),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='recipe',
|
|
||||||
name='storage',
|
|
||||||
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='cookbook.Storage'),
|
|
||||||
),
|
|
||||||
]
|
|
@ -1,18 +0,0 @@
|
|||||||
# Generated by Django 2.0.5 on 2018-05-25 13:58
|
|
||||||
|
|
||||||
from django.db import migrations
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('cookbook', '0001_initial'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.RenameField(
|
|
||||||
model_name='synclog',
|
|
||||||
old_name='monitor',
|
|
||||||
new_name='sync',
|
|
||||||
),
|
|
||||||
]
|
|
@ -1,20 +0,0 @@
|
|||||||
# Generated by Django 2.0.5 on 2018-05-25 14:05
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
import django.db.models.deletion
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('cookbook', '0002_auto_20180525_1558'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='recipeimport',
|
|
||||||
name='storage',
|
|
||||||
field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.PROTECT, to='cookbook.Storage'),
|
|
||||||
preserve_default=False,
|
|
||||||
),
|
|
||||||
]
|
|
@ -23,7 +23,3 @@ DATABASES = {
|
|||||||
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Dropbox API access token
|
|
||||||
# see https://www.dropbox.com/developers/documentation/http/documentation for more info
|
|
||||||
DROPBOX_API_KEY = ""
|
|
||||||
|
Reference in New Issue
Block a user