Self hosted FLOSS fitness/workout, nutrition and weight tracker
Unify format of urls files
Roland Geider8efd43b66a82
diff --git a/wger/config/urls.py b/wger/config/urls.pyindex db8e4d29c..bb9729e4f 100644--- a/wger/config/urls.py+++ b/wger/config/urls.py@@ -1,3 +1,20 @@+# -*- coding: utf-8 -*-++# This file is part of wger Workout Manager.+#+# wger Workout Manager is free software: you can redistribute it and/or modify+# it under the terms of the GNU Affero General Public License as published by+# the Free Software Foundation, either version 3 of the License, or+# (at your option) any later version.+#+# wger Workout Manager is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU Affero General Public License+# along with Workout Manager. If not, see <http://www.gnu.org/licenses/>.+from django.conf.urls import patterns, urlfrom wger.config.views import languagesdiff --git a/wger/core/urls.py b/wger/core/urls.pyindex e830dc331..4d6555921 100644--- a/wger/core/urls.py+++ b/wger/core/urls.py@@ -18,14 +18,12 @@from django.conf.urls import patterns, urlfrom django.views.generic import TemplateViewfrom django.contrib.auth import views--from wger.config.views import languages-from wger.config.views import language_configfrom django.core.urlresolvers import reverse_lazyfrom wger.core.views import userfrom wger.core.views import misc+urlpatterns = patterns('',# The landing pagediff --git a/wger/exercises/urls.py b/wger/exercises/urls.pyindex 98d881400..060c94877 100644--- a/wger/exercises/urls.py+++ b/wger/exercises/urls.py@@ -1,3 +1,20 @@+# -*- coding: utf-8 -*-++# This file is part of wger Workout Manager.+#+# wger Workout Manager is free software: you can redistribute it and/or modify+# it under the terms of the GNU Affero General Public License as published by+# the Free Software Foundation, either version 3 of the License, or+# (at your option) any later version.+#+# wger Workout Manager is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU Affero General Public License+# along with Workout Manager. If not, see <http://www.gnu.org/licenses/>.+from django.conf.urls import patterns, urlfrom django.contrib.auth.decorators import login_requireddiff --git a/wger/manager/urls.py b/wger/manager/urls.pyindex 2aea7b4b6..79b1c3728 100644--- a/wger/manager/urls.py+++ b/wger/manager/urls.py@@ -1,3 +1,20 @@+# -*- coding: utf-8 -*-++# This file is part of wger Workout Manager.+#+# wger Workout Manager is free software: you can redistribute it and/or modify+# it under the terms of the GNU Affero General Public License as published by+# the Free Software Foundation, either version 3 of the License, or+# (at your option) any later version.+#+# wger Workout Manager is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU Affero General Public License+# along with Workout Manager. If not, see <http://www.gnu.org/licenses/>.+from django.conf.urls import patterns, urlfrom django.contrib.auth.decorators import login_requireddiff --git a/wger/nutrition/urls.py b/wger/nutrition/urls.pyindex 403f9b231..24dbbaa4a 100644--- a/wger/nutrition/urls.py+++ b/wger/nutrition/urls.py@@ -1,3 +1,20 @@+# -*- coding: utf-8 -*-++# This file is part of wger Workout Manager.+#+# wger Workout Manager is free software: you can redistribute it and/or modify+# it under the terms of the GNU Affero General Public License as published by+# the Free Software Foundation, either version 3 of the License, or+# (at your option) any later version.+#+# wger Workout Manager is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU Affero General Public License+# along with Workout Manager. If not, see <http://www.gnu.org/licenses/>.+from django.conf.urls import patterns, urlfrom django.contrib.auth.decorators import login_requireddiff --git a/wger/urls.py b/wger/urls.pyindex 2287ece08..035f1eebc 100644--- a/wger/urls.py+++ b/wger/urls.py@@ -1,17 +1,34 @@+# -*- coding: utf-8 -*-++# This file is part of wger Workout Manager.+#+# wger Workout Manager is free software: you can redistribute it and/or modify+# it under the terms of the GNU Affero General Public License as published by+# the Free Software Foundation, either version 3 of the License, or+# (at your option) any later version.+#+# wger Workout Manager is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU Affero General Public License+# along with Workout Manager. If not, see <http://www.gnu.org/licenses/>.++from tastypie.api import Api+from django.conf.urls import include, urlfrom django.conf.urls.i18n import i18n_patternsfrom django.conf.urls.i18n import patterns-from wger.core.api.resources import UserProfileResource, LanguageResourcefrom wger.exercises.sitemap import ExercisesSitemap+from wger.exercises.api import resources as exercises_apifrom wger.nutrition.sitemap import NutritionSitemap+from wger.nutrition.api import resources as nutrition_apifrom wger.utils.generic_views import TextTemplateViewfrom wger.utils.generic_views import WebappManifestView--from tastypie.api import Api-from wger.exercises.api import resources as exercises_api-from wger.nutrition.api import resources as nutrition_apifrom wger.manager.api import resources as manager_api+from wger.core.api.resources import UserProfileResource, LanguageResourcefrom wger.weight.api import resources as weight_api#diff --git a/wger/weight/urls.py b/wger/weight/urls.pyindex 453df8c01..857b9feae 100644--- a/wger/weight/urls.py+++ b/wger/weight/urls.py@@ -1,3 +1,20 @@+# -*- coding: utf-8 -*-++# This file is part of wger Workout Manager.+#+# wger Workout Manager is free software: you can redistribute it and/or modify+# it under the terms of the GNU Affero General Public License as published by+# the Free Software Foundation, either version 3 of the License, or+# (at your option) any later version.+#+# wger Workout Manager is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU Affero General Public License+# along with Workout Manager. If not, see <http://www.gnu.org/licenses/>.+from django.conf.urls import patterns, urlfrom django.contrib.auth.decorators import login_required