Romain J 2 years ago
parent
commit
e894a37e15
  1. 5
      apps/tuxbot_gnous_eu/apps.py
  2. 0
      apps/tuxbot_gnous_eu/static/images/favicon.ico
  3. 2
      apps/tuxbot_gnous_eu/views.py
  4. 2
      manage.py
  5. 3
      requirements.txt
  6. 0
      tuxWeb/__init__.py
  7. 2
      tuxWeb/asgi.py
  8. 10
      tuxWeb/settings.py
  9. 3
      tuxWeb/urls.py
  10. 2
      tuxWeb/wsgi.py

5
apps/tuxbot_gnous_eu/apps.py

@ -1,5 +1,10 @@ @@ -1,5 +1,10 @@
from django.apps import AppConfig
from suit.apps import DjangoSuitConfig
class GnousEuConfig(AppConfig):
name = 'apps.tuxbot_gnous_eu'
class SuitConfig(DjangoSuitConfig):
layout = 'vertical'

0
apps/tuxbot_gnous_eu/static/images/tux.ico → apps/tuxbot_gnous_eu/static/images/favicon.ico

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

2
apps/tuxbot_gnous_eu/views.py

@ -59,7 +59,7 @@ class UsersView: @@ -59,7 +59,7 @@ class UsersView:
@staticmethod
def edit(request: WSGIRequest, *args, **kwargs) -> HttpResponse:
try:
data_user = Users.objects.get(user_id=args[0])
data_user = Users.objects.get(user_id=kwargs.get('user_id'))
except Users.DoesNotExist:
return HttpResponseNotFound("Question does not exist")

2
manage.py

@ -5,7 +5,7 @@ import sys @@ -5,7 +5,7 @@ import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gnousEU.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tuxWeb.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:

3
requirements.txt

@ -3,11 +3,12 @@ bleach==3.1.0 @@ -3,11 +3,12 @@ bleach==3.1.0
certifi==2019.11.28
chardet==3.0.4
Django==3.0.2
django-grappelli==2.13.3
django-markdownify==0.8.0
django-suit==2.0a1
idna==2.8
Markdown==3.1.1
mysqlclient==1.4.6
oauthlib==3.1.0
pytz==2019.3
requests==2.22.0
six==1.14.0

0
gnousEU/__init__.py → tuxWeb/__init__.py

2
gnousEU/asgi.py → tuxWeb/asgi.py

@ -11,6 +11,6 @@ import os @@ -11,6 +11,6 @@ import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gnousEU.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tuxWeb.settings')
application = get_asgi_application()

10
gnousEU/settings.py → tuxWeb/settings.py

@ -36,13 +36,13 @@ INSTALLED_APPS = [ @@ -36,13 +36,13 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'grappelli',
'django.contrib.admin',
'markdownify',
'apps.tuxbot_gnous_eu',
'apps.tuxbot_gnous_eu.templatetags',
'apps.tuxbot_gnous_eu.apps.SuitConfig',
'django.contrib.admin',
]
MIDDLEWARE = [
@ -55,7 +55,7 @@ MIDDLEWARE = [ @@ -55,7 +55,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'gnousEU.urls'
ROOT_URLCONF = 'tuxWeb.urls'
TEMPLATES = [
{
@ -74,7 +74,7 @@ TEMPLATES = [ @@ -74,7 +74,7 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = 'gnousEU.wsgi.application'
WSGI_APPLICATION = 'tuxWeb.wsgi.application'
# Database
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases

3
gnousEU/urls.py → tuxWeb/urls.py

@ -17,8 +17,7 @@ from django.contrib import admin @@ -17,8 +17,7 @@ from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('grappelli/', include('grappelli.urls')), # grappelli URLS
path('admin/', admin.site.urls), # admin site
path('admin/', admin.site.urls),
path('', include('apps.tuxbot_gnous_eu.urls', namespace='tuxbot_gnous_eu')),
]

2
gnousEU/wsgi.py → tuxWeb/wsgi.py

@ -11,6 +11,6 @@ import os @@ -11,6 +11,6 @@ import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gnousEU.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tuxWeb.settings')
application = get_wsgi_application()
Loading…
Cancel
Save