Skip to content

armgit / wger

Public Imported from GitHub
0

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.py
index 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, url
from wger.config.views import languages
diff --git a/wger/core/urls.py b/wger/core/urls.py
index e830dc331..4d6555921 100644
--- a/wger/core/urls.py
+++ b/wger/core/urls.py
@@ -18,14 +18,12 @@
from django.conf.urls import patterns, url
from django.views.generic import TemplateView
from django.contrib.auth import views
-
-from wger.config.views import languages
-from wger.config.views import language_config
from django.core.urlresolvers import reverse_lazy
from wger.core.views import user
from wger.core.views import misc
+
urlpatterns = patterns('',
# The landing page
diff --git a/wger/exercises/urls.py b/wger/exercises/urls.py
index 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, url
from django.contrib.auth.decorators import login_required
diff --git a/wger/manager/urls.py b/wger/manager/urls.py
index 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, url
from django.contrib.auth.decorators import login_required
diff --git a/wger/nutrition/urls.py b/wger/nutrition/urls.py
index 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, url
from django.contrib.auth.decorators import login_required
diff --git a/wger/urls.py b/wger/urls.py
index 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, url
from django.conf.urls.i18n import i18n_patterns
from django.conf.urls.i18n import patterns
-from wger.core.api.resources import UserProfileResource, LanguageResource
from wger.exercises.sitemap import ExercisesSitemap
+from wger.exercises.api import resources as exercises_api
from wger.nutrition.sitemap import NutritionSitemap
+from wger.nutrition.api import resources as nutrition_api
from wger.utils.generic_views import TextTemplateView
from 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_api
from wger.manager.api import resources as manager_api
+from wger.core.api.resources import UserProfileResource, LanguageResource
from wger.weight.api import resources as weight_api
#
diff --git a/wger/weight/urls.py b/wger/weight/urls.py
index 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, url
from django.contrib.auth.decorators import login_required