-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
176 changed files
with
1,468 additions
and
2,027 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#### Title | ||
<!-- A short description of what needs to be done. --> | ||
|
||
#### Description | ||
<!-- Why is it needed? Does it help the team go faster or is it a dependency that could cause problems in the codebase if it’s not done? --> | ||
|
||
<!-- Note: Every story title should include the word ‘should’ as opposed to ‘can’. e.g. It’s unclear whether the story “User can delete comment” is a feature or a bug. “User should be able to delete comment” or “User should not be able to delete comment” are much clearer: the former is a feature, the latter a bug. --> | ||
|
||
|
||
#### Type of change | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
|
||
- [ ] New feature (non-breaking change which adds functionality) | ||
|
||
|
||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
|
||
|
||
- [ ] This change requires a documentation update | ||
|
||
|
||
#### How Has This Been Tested? | ||
|
||
#### Acceptance Criteria: | ||
<!-- THis section is applicable to tasks --> | ||
<!-- These should include conditions that must be met for the chore to be accepted. --> | ||
|
||
#### Checklist: | ||
|
||
|
||
#### PT stories |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
from django.core.management import execute_from_command_line | ||
|
||
from tasks import ( | ||
setup_django_environment, | ||
get_user_config_path | ||
) | ||
|
||
if __name__ == "__main__": | ||
|
||
# If user passed the settings flag ignore the default wger settings | ||
if not any('--settings' in s for s in sys.argv): | ||
setup_django_environment(get_user_config_path('wger', 'settings.py')) | ||
|
||
# Alternative to above | ||
# os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") | ||
|
||
execute_from_command_line(sys.argv) | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wger.settings") | ||
try: | ||
from django.core.management import execute_from_command_line | ||
except ImportError: | ||
# The above import may fail for some other reason. Ensure that the | ||
# issue is really that Django is missing to avoid masking other | ||
# exceptions on Python 2. | ||
try: | ||
import django | ||
except ImportError: | ||
raise ImportError( | ||
"Couldn't import Django. Are you sure it's installed and " | ||
"available on your PYTHONPATH environment variable? Did you " | ||
"forget to activate a virtual environment?" | ||
) | ||
raise | ||
execute_from_command_line(sys.argv) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,6 @@ | |
-r requirements.txt | ||
|
||
# Development packages | ||
pep8 | ||
pycodestyle | ||
django-debug-toolbar | ||
coverage |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,37 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
# Generated by Django 2.2.1 on 2019-05-29 07:29 | ||
|
||
from django.db import models, migrations | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('gym', '0001_initial'), | ||
('core', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='GymConfig', | ||
name='LanguageConfig', | ||
fields=[ | ||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), | ||
('default_gym', models.ForeignKey(blank=True, to='gym.Gym', help_text='Select the default gym for this installation. This will assign all new registered users to this gym and update all existing users without a gym.', null=True, verbose_name='Default gym')), | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('item', models.CharField(choices=[('1', 'Exercises'), ('2', 'Ingredients')], editable=False, max_length=2)), | ||
('show', models.BooleanField(default=1)), | ||
('language', models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, related_name='language_source', to='core.Language')), | ||
('language_target', models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, related_name='language_target', to='core.Language')), | ||
], | ||
options={ | ||
'ordering': ['item', 'language_target'], | ||
}, | ||
bases=(models.Model,), | ||
), | ||
migrations.CreateModel( | ||
name='LanguageConfig', | ||
name='GymConfig', | ||
fields=[ | ||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), | ||
('item', models.CharField(max_length=2, editable=False, choices=[(b'1', 'Exercises'), (b'2', 'Ingredients')])), | ||
('show', models.BooleanField(default=1)), | ||
('language', models.ForeignKey(related_name='language_source', editable=False, to='core.Language')), | ||
('language_target', models.ForeignKey(related_name='language_target', editable=False, to='core.Language')), | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('default_gym', models.ForeignKey(blank=True, help_text='Select the default gym for this installation. This will assign all new registered users to this gym and update all existing users without a gym.', null=True, on_delete=django.db.models.deletion.CASCADE, to='gym.Gym', verbose_name='Default gym')), | ||
], | ||
options={ | ||
'ordering': ['item', 'language_target'], | ||
}, | ||
bases=(models.Model,), | ||
), | ||
] |
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
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
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
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
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
Oops, something went wrong.